mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-05 14:14:39 +00:00
GraphConfig (extraction_model?, max_chunks?, gleanings=0; extra=forbid) on SourceConfig; settings GRAPHRAG_EXTRACTION_MODEL (None=instance default) + GRAPHRAG_MAX_CHUNKS_FOR_EXTRACTION; graphrag_available() = GRAPHRAG_ENABLED and VECTOR_STORE==pgvector (D27-D32 foundation). Unit G1.
11 lines
345 B
Python
11 lines
345 B
Python
"""GraphRAG feature package (flag-gated, pgvector-only per D29)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from application.core.settings import settings
|
|
|
|
|
|
def graphrag_available() -> bool:
|
|
"""Return True when GraphRAG is enabled and the store is pgvector (D29)."""
|
|
return settings.GRAPHRAG_ENABLED and settings.VECTOR_STORE == "pgvector"
|