# Core DB # DB_CONNECTION_URL=postgresql://user:pass@localhost:5432/dbname # ── Text-to-SQL LLM ────────────────────────────────────────────── # Recommended: HF Inference API (same as the Hugging Face Spaces deployment). # Set USE_HF_CLOUD=1 to force cloud-only. With USE_HF_CLOUD=0 the local Ollama # model is still preferred, but if it is not installed and HF_API_TOKEN is set, # the worker auto-falls back to HF Inference automatically. USE_HF_CLOUD=1 HF_API_TOKEN= HF_LLM_MODEL=Qwen/Qwen2.5-Coder-7B-Instruct # Cloud VQA via Groq (free tier) GROQ_API_KEY= GROQ_VISION_MODEL=qwen/qwen3.8-27b # Local Ollama (optional — only when models are installed locally) # USE_HF_CLOUD=0 # OLLAMA_BASE_URL=http://localhost:11434 # OLLAMA_MODEL_NAME=qwen2.5-coder:1.5b # GRANITE_MODEL_PATH=qwen3.5:2b # OLLAMA_OCR_QA_MODEL=gemma3:1b-it-qat # GRANITE_MODEL=qwen3.5:2b # Workers/timeouts WORKER_PORT=8700 MCP_PORT=8701 OCR_QA_TIMEOUT=45 INVARIANTS_BASE_TIMEOUT=180