mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-03 20:12:55 +00:00
11 lines
331 B
Python
11 lines
331 B
Python
"""GraphRAG feature package (flag-gated, pgvector-only)."""
|
|
|
|
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."""
|
|
return settings.GRAPHRAG_ENABLED and settings.VECTOR_STORE == "pgvector"
|