LLM Extraction with Evals: Know When to Trust the Output
Goal: Extracts invoice fields with Claude or Gemini, keeps the exact text behind every value, scores each field and sends doubtful documents to a person.
Impact: Shows why field accuracy alone misleads: a regex baseline gets 86% of fields right but only 25% of documents.
- Python
- Claude (structured outputs)
- Gemini
- Pydantic
- pytest
- GitHub Actions