Spaces:
Running
Running
| # Copy to .env and fill in. Never commit a real .env (it is gitignored). | |
| # Backend selection: "gemini" | "ollama" | |
| EXTRACTION_BACKEND=gemini | |
| # Gemini (free tier via Google AI Studio key; no card required) | |
| GEMINI_API_KEY= | |
| GEMINI_MODEL=gemini-flash-latest # identifier is config, not hardcoded | |
| # Ollama (local) | |
| OLLAMA_HOST=http://localhost:11434 | |
| OLLAMA_MODEL=qwen2.5:7b | |
| # Image handling: "vision_direct" | "ocr_then_text" | |
| IMAGE_STRATEGY=vision_direct # vision_direct requires a multimodal backend | |
| # Routing (see README: 0.50 from SROIE eval; arithmetic validation, not this | |
| # score, gates auto-accept precision since Gemini exposes no per-field confidence) | |
| CONFIDENCE_THRESHOLD=0.50 | |
| # Paths (batch mode) | |
| INBOX_DIR=./data/inbox | |
| PROCESSED_DIR=./data/processed | |
| REVIEW_DIR=./data/review | |
| EXPORT_DIR=./data/exports | |
| DB_PATH=./data/agent.db | |