fix typo
This commit is contained in:
@@ -1413,7 +1413,7 @@ def create_app(args):
|
||||
# query all graph
|
||||
@app.get("/graphs")
|
||||
async def get_graphs(label: str):
|
||||
return await rag.get_graps(nodel_label=label, max_depth=100)
|
||||
return await rag.get_graphs(nodel_label=label, max_depth=100)
|
||||
|
||||
# Add Ollama API routes
|
||||
ollama_api = OllamaAPI(rag)
|
||||
|
@@ -320,7 +320,7 @@ class LightRAG:
|
||||
text = await self.chunk_entity_relation_graph.get_all_labels()
|
||||
return text
|
||||
|
||||
async def get_graps(self, nodel_label: str, max_depth: int):
|
||||
async def get_graphs(self, nodel_label: str, max_depth: int):
|
||||
return await self.chunk_entity_relation_graph.get_knowledge_graph(
|
||||
node_label=nodel_label, max_depth=max_depth
|
||||
)
|
||||
|
Reference in New Issue
Block a user