diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index 23507dd1..9374153d 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -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) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 6b925be3..11b9c1b0 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -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 )