refactor(GraphRAG): refine config usage and fix some bug. (#2392)

Co-authored-by: 秉翟 <lyusonglin.lsl@antgroup.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: yyhhyyyyyy <95077259+yyhhyyyyyy@users.noreply.github.com>
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
SonglinLyu
2025-03-06 03:09:10 +08:00
committed by GitHub
parent d5a2a0bf3b
commit 3bd75d8de2
5 changed files with 82 additions and 69 deletions

View File

@@ -96,7 +96,7 @@ class VectorStoreConnector:
def __rewrite_index_store_type(self, index_store_type):
# Rewrite Knowledge Graph Type
if self.app_config.rag.graph_community_summary_enabled:
if self.app_config.rag.storage.graph.get("enable_summary").lower() == "true":
if index_store_type == "KnowledgeGraph":
return "CommunitySummaryKnowledgeGraph"
return index_store_type