Files
DocsGPT/application/graphrag/__init__.py
T
Alex b4c465e608 feat(graphrag): config.graph sub-model + settings + pgvector availability gate
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.
2026-06-23 00:39:27 +01:00

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"