Files
fegger 7e706793fa Initial scaffold: local invoice OCR pipeline with Ollama, classifier branches, structured extraction, review, and Odoo XML export
- Add AGENTS.md and project-specific Zed skills (odoo-ocr-pipeline, odoo-xml-import, local-vlm-client).
- Implement Pydantic schemas for documents, invoices, review results, and VLM responses.
- Add unified BaseVLMClient with Ollama implementation and llama.cpp stub.
- Build pipeline stages: loader, classifier, digital_pdf/scanned_print/handwritten/mixed_unknown branches, extractor, reviewer, xml_builder.
- Add CLI entry point  with sidecar JSON and confidence-gated XML output.
- Include prompts for classifier, OCR, extraction, and review models.
- Add tests with FakeVLMClient; pytest, ruff, and mypy all pass.
2026-08-21 14:04:42 +02:00

32 lines
634 B
YAML

# Default configuration for odoo_ocr.
# Override with environment variables (OLLAMA_BASE_URL, MODELS__OCR, etc.).
ollama_base_url: "http://localhost:11434"
models:
classifier: "qwen2.5-vl:3b"
ocr: "glm-ocr"
extraction: "qwen2.5-vl:7b"
review: "qwen2.5-vl:7b"
review:
high_confidence_threshold: 0.90
min_confidence_threshold: 0.75
xml:
default_currency: "EUR"
target: "vendor_bill"
preprocessing:
target_dpi: 300
max_image_dimension: 2048
jpeg_quality: 85
cache:
enabled: true
dir: "~/.cache/odoo_ocr/llm_cache"
logging:
level: "INFO"
format: "%(asctime)s | %(levelname)s | %(name)s | %(message)s"