mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-20 00:54:43 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user