yangdx
commited on
Commit
·
cfdc80c
1
Parent(s):
a7fb63b
Set default max_depth to 3 for knowledge graph retrieval
Browse files- lightrag/base.py +1 -1
- lightrag/lightrag.py +1 -1
lightrag/base.py
CHANGED
@@ -204,7 +204,7 @@ class BaseGraphStorage(StorageNameSpace, ABC):
|
|
204 |
|
205 |
@abstractmethod
|
206 |
async def get_knowledge_graph(
|
207 |
-
self, node_label: str, max_depth: int =
|
208 |
) -> KnowledgeGraph:
|
209 |
"""Retrieve a subgraph of the knowledge graph starting from a given node."""
|
210 |
|
|
|
204 |
|
205 |
@abstractmethod
|
206 |
async def get_knowledge_graph(
|
207 |
+
self, node_label: str, max_depth: int = 3
|
208 |
) -> KnowledgeGraph:
|
209 |
"""Retrieve a subgraph of the knowledge graph starting from a given node."""
|
210 |
|
lightrag/lightrag.py
CHANGED
@@ -506,7 +506,7 @@ class LightRAG:
|
|
506 |
async def get_knowledge_graph(
|
507 |
self,
|
508 |
node_label: str,
|
509 |
-
max_depth: int,
|
510 |
min_degree: int = 0,
|
511 |
inclusive: bool = False,
|
512 |
) -> KnowledgeGraph:
|
|
|
506 |
async def get_knowledge_graph(
|
507 |
self,
|
508 |
node_label: str,
|
509 |
+
max_depth: int = 3,
|
510 |
min_degree: int = 0,
|
511 |
inclusive: bool = False,
|
512 |
) -> KnowledgeGraph:
|