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

Method embed_nodes

LightRAG/lightrag/kg/oracle_impl.py:411–415  ·  view source on GitHub ↗

为节点生成向量

(self, algorithm: str)

Source from the content-addressed store, hash-verified

409 # self._graph.add_edge(source_node_id, target_node_id, **edge_data)
410
411 async def embed_nodes(self, algorithm: str) -> tuple[np.ndarray, list[str]]:
412 """为节点生成向量"""
413 if algorithm not in self._node_embed_algorithms:
414 raise ValueError(f"Node embedding algorithm {algorithm} not supported")
415 return await self._node_embed_algorithms[algorithm]()
416
417 async def _node2vec_embed(self):
418 """为节点生成向量"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected