MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / get_embedding_dim

Function get_embedding_dim

LightRAG/examples/lightrag_api_oracle_demo..py:75–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75async def get_embedding_dim():
76 test_text = ["This is a test sentence."]
77 embedding = await embedding_func(test_text)
78 embedding_dim = embedding.shape[1]
79 return embedding_dim
80
81
82async def init():

Callers 1

initFunction · 0.70

Calls 1

embedding_funcFunction · 0.70

Tested by

no test coverage detected