Merge remote-tracking branch 'origin/main' into dev-webui

This commit is contained in:
ArnoChen
2025-02-24 19:00:06 +08:00
4 changed files with 121 additions and 9 deletions

View File

@@ -22,6 +22,6 @@ def create_graph_routes(rag, api_key: Optional[str] = None):
@router.get("/graphs", dependencies=[Depends(optional_api_key)])
async def get_knowledge_graph(label: str):
"""Get knowledge graph for a specific label"""
return await rag.get_knowledge_graph(nodel_label=label, max_depth=100)
return await rag.get_knowledge_graph(node_label=label, max_depth=3)
return router