Skip to content

Commit 7a8d531

Browse files
committed
fix: update flowsetting
1 parent 4ed668d commit 7a8d531

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flowsettings.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
except Exception:
2626
KH_APP_VERSION = "local"
2727

28-
KH_ENABLE_FIRST_SETUP = True
28+
KH_ENABLE_FIRST_SETUP = config("KH_ENABLE_FIRST_SETUP", default=False, cast=bool)
2929
KH_DEMO_MODE = config("KH_DEMO_MODE", default=False, cast=bool)
3030
KH_OLLAMA_URL = config("KH_OLLAMA_URL", default="http://localhost:11434/v1/")
3131

@@ -303,9 +303,12 @@
303303

304304
USE_NANO_GRAPHRAG = config("USE_NANO_GRAPHRAG", default=False, cast=bool)
305305
USE_LIGHTRAG = config("USE_LIGHTRAG", default=True, cast=bool)
306+
USE_MS_GRAPHRAG = config("USE_MS_GRAPHRAG", default=False, cast=bool)
306307

307-
GRAPHRAG_INDEX_TYPES = ["ktem.index.file.graph.GraphRAGIndex"]
308+
GRAPHRAG_INDEX_TYPES = []
308309

310+
if USE_MS_GRAPHRAG:
311+
GRAPHRAG_INDEX_TYPES.append("ktem.index.file.graph.GraphRAGIndex")
309312
if USE_NANO_GRAPHRAG:
310313
GRAPHRAG_INDEX_TYPES.append("ktem.index.file.graph.NanoGraphRAGIndex")
311314
if USE_LIGHTRAG:

0 commit comments

Comments
 (0)