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

Class EmbeddingFunc

LightRAG/lightrag/utils.py:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38@dataclass
39class EmbeddingFunc:
40 embedding_dim: int
41 max_token_size: int
42 func: callable
43
44 async def __call__(self, *args, **kwargs) -> np.ndarray:
45 return await self.func(*args, **kwargs)
46
47
48def locate_json_string_body_from_string(content: str) -> Union[str, None]:

Callers 15

test.pyFile · 0.90
initFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected