- Problem
- OCR: insurance agents retyped 17 fields from every vehicle registration certificate into the policy form. RAG, earlier: drafting technical expert reports depended on finding the right passages in years of earlier reports and reference material.
- Approach
- OCR: a vision model (GPT-4o) reads the registration certificate and pre-fills the 17 fields, with national ID numbers checked against their checksum. RAG: the assistant combined PostgreSQL + pgvector semantic search with Postgres full-text search, merged and reranked the results with Cohere down to the top four passages, and used a structure-aware chunker, covered by 27 tests, so every passage kept its section heading.
- Result
- OCR: in use in the production insurance platform. RAG: a solo product that was built, deployed with Docker Compose on a VPS with TLS and nightly backups, and run in production by one engineer.