MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / EmbeddingFunc

Class EmbeddingFunc

tools/_utils.py:222–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220# Utils types -----------------------------------------------------------------------
221@dataclass
222class EmbeddingFunc:
223 embedding_dim: int
224 max_token_size: int
225 func: callable
226
227 async def __call__(self, *args, **kwargs) -> np.ndarray:
228 return await self.func(*args, **kwargs)
229
230
231# Decorators ------------------------------------------------------------------------

Callers 1

final_decroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected