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

Function embedding_func

LightRAG/examples/lightrag_api_oracle_demo..py:66–72  ·  view source on GitHub ↗
(texts: list[str])

Source from the content-addressed store, hash-verified

64
65
66async def embedding_func(texts: list[str]) -> np.ndarray:
67 return await openai_embedding(
68 texts,
69 model=EMBEDDING_MODEL,
70 api_key=APIKEY,
71 base_url=BASE_URL,
72 )
73
74
75async def get_embedding_dim():

Callers 1

get_embedding_dimFunction · 0.70

Calls 1

openai_embeddingFunction · 0.90

Tested by

no test coverage detected