Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Appointat committed Oct 30, 2024
1 parent 7e3c3c7 commit 0c263bf
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions dbgpt/storage/knowledge_graph/community_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,15 @@ def __init__(self, config: CommunitySummaryKnowledgeGraphConfig):
config.community_score_threshold,
)
)
self._document_graph_enabled = bool(
(
os.environ["DOCUMENT_GRAPH_ENABLED"].lower() == "true"
if "DOCUMENT_GRAPH_ENABLED" in os.environ
else config.document_graph_enabled
)
self._document_graph_enabled = (
os.environ["DOCUMENT_GRAPH_ENABLED"].lower() == "true"
if "DOCUMENT_GRAPH_ENABLED" in os.environ
else config.document_graph_enabled
)
self._triplet_graph_enabled = bool(
(
os.environ["TRIPLET_GRAPH_ENABLED"].lower() == "true"
if "TRIPLET_GRAPH_ENABLED" in os.environ
else config.triplet_graph_enabled
)
self._triplet_graph_enabled = (
os.environ["TRIPLET_GRAPH_ENABLED"].lower() == "true"
if "TRIPLET_GRAPH_ENABLED" in os.environ
else config.triplet_graph_enabled
)
self._knowledge_graph_chunk_search_top_size = int(
os.getenv(
Expand Down

0 comments on commit 0c263bf

Please sign in to comment.