Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: parameter error. (#5641)

Kevin Hu02c955babb1b
diff --git a/graphrag/general/extractor.py b/graphrag/general/extractor.py
index 5576101c70..c2a9bf127b 100644
--- a/graphrag/general/extractor.py
+++ b/graphrag/general/extractor.py
@@ -186,7 +186,7 @@ class Extractor:
src_id: str,
tgt_id: str,
edges_data: list[dict],
- all_relationships_data
+ all_relationships_data=None
):
if not edges_data:
return
@@ -229,7 +229,8 @@ class Extractor:
source_id=source_id
)
self._set_relation_(src_id, tgt_id, edge_data)
- all_relationships_data.append(edge_data)
+ if all_relationships_data is not None:
+ all_relationships_data.append(edge_data)
async def _handle_entity_relation_summary(
self,