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

Method _node2vec_embed

LightRAG/lightrag/storage.py:300–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298
299 # @TODO: NOT USED
300 async def _node2vec_embed(self):
301 from graspologic import embed
302
303 embeddings, nodes = embed.node2vec_embed(
304 self._graph,
305 **self.global_config["node2vec_params"],
306 )
307
308 nodes_ids = [self._graph.nodes[node_id]["id"] for node_id in nodes]
309 return embeddings, nodes_ids

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected