add pre-built graph viewer files

format

a

a
This commit is contained in:
ArnoChen
2025-02-13 18:04:23 +08:00
parent 464042f2c0
commit 6896d4ab21
6 changed files with 1008 additions and 25 deletions

View File

@@ -386,7 +386,9 @@ class LightRAG:
text = await self.chunk_entity_relation_graph.get_all_labels()
return text
async def get_knowledge_graph(self, nodel_label: str, max_depth: int) -> KnowledgeGraph:
async def get_knowledge_graph(
self, nodel_label: str, max_depth: int
) -> KnowledgeGraph:
return await self.chunk_entity_relation_graph.get_knowledge_graph(
node_label=nodel_label, max_depth=max_depth
)