factory-rag / scripts /_cpu_overrides.py
ML Assistant
feat(scripts): adversarial hard-PDF suite builder + CPU test overrides
66b146f
Raw History Blame Contribute Delete
492 Bytes
"""CPU-suite runtime overrides.
Import this module BEFORE the ingest/eval entrypoints. config.py reads no
env vars for its feature flags, so the flags are patched on the imported
config module (module-level import of config everywhere means call sites
see the override).
NEVER import this from app code -- it is test/CI-only.
"""
import config
config.ENABLE_VISION_ENRICHMENT = False # needs Ollama VLM (GPU tier)
config.ENABLE_QUERY_ENHANCEMENT = False # needs Ollama LLM (GPU tier)