From 6574dfb7ead4373507eae477da4d9498e15d9c5d Mon Sep 17 00:00:00 2001 From: Ken Chen Date: Sat, 28 Jun 2025 11:40:39 +0800 Subject: [PATCH] Fix accidentally hardcode max depth in searching upstream nodes --- lightrag/kg/mongo_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/mongo_impl.py b/lightrag/kg/mongo_impl.py index 10018826..65db885e 100644 --- a/lightrag/kg/mongo_impl.py +++ b/lightrag/kg/mongo_impl.py @@ -817,7 +817,7 @@ class MongoGraphStorage(BaseGraphStorage): "connectFromField": "source_node_id", "connectToField": "target_node_id", "as": "connected_edges", - "maxDepth": 3, + "maxDepth": max_depth, "depthField": "depth", } },