refactor: the document structure of GraphRAG (#2084)

This commit is contained in:
Appointat
2024-10-21 18:05:55 +08:00
committed by GitHub
parent 584f090847
commit 6d6667812b
15 changed files with 401 additions and 284 deletions

View File

@@ -128,7 +128,7 @@ class VectorStoreConnector:
def __rewrite_index_store_type(self, index_store_type):
# Rewrite Knowledge Graph Type
if CFG.ENABLE_GRAPH_COMMUNITY_SUMMARY:
if CFG.GRAPH_COMMUNITY_SUMMARY_ENABLED:
if index_store_type == "KnowledgeGraph":
return "CommunitySummaryKnowledgeGraph"
return index_store_type