File size: 1,055 Bytes
6c4e218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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