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

Function embedding_func

LightRAG/examples/lightrag_siliconcloud_demo.py:28–34  ·  view source on GitHub ↗
(texts: list[str])

Source from the content-addressed store, hash-verified

26
27
28async def embedding_func(texts: list[str]) -> np.ndarray:
29 return await siliconcloud_embedding(
30 texts,
31 model="netease-youdao/bce-embedding-base_v1",
32 api_key=os.getenv("SILICONFLOW_API_KEY"),
33 max_token_size=512,
34 )
35
36
37# function test

Callers 1

test_funcsFunction · 0.70

Calls 1

siliconcloud_embeddingFunction · 0.90

Tested by 1

test_funcsFunction · 0.56