A pipeline that turns claim forms, hospital bills, claim emails and policy schedules into validated, structured claim data — and flags the ones a human should check.
Policy number, insured, dates, amounts, diagnosis, hospital or garage — typed in by hand from scans, phone photos and email threads.
A wrong policy number, date or amount means a claim paid outside cover, a duplicate, or a stuck file that delays a genuine customer.
OCR gives you a wall of text. You still need someone to find the fields, check them against the policy and decide whether to trust them.
Four steps, each one inspectable. The model never gets the last word on its own: every value is checked against the policy rules and against the document it came from.
OCR with Tesseract. Digital PDFs, scans and phone photos all become text — page by page.
An LLM fills a fixed claims schema with structured, schema-constrained output. No free text, no invented keys.
Rule checks — claim date inside the policy period, claimed ≤ sum insured, loss before claim, required fields per document type — plus grounding: is each value actually in the document?
Clean claim JSON out, with a needs_review flag and the reasons. Clean ones go straight through; the rest go to a person.
The same pipeline runs on a local open model (Qwen2.5 on a plain CPU — documents never leave the box) or on a Claude API model. Swap the model, keep the schema, the rules and the eval.
Evaluated on 75 documents: 45 synthetic Indian claim documents — claim forms, hospital bills, policy schedules, photographed and scanned — plus 30 real-world-style claim emails from the public Cleanlab insurance-claims-extraction dataset. Key fields are policy number, insured name, claim and loss dates, and claimed amount — the fields that move money.
| Model | Where it runs | All fields | Key fields | Claim emails (Cleanlab) | $ / 1,000 pages | Wrong docs that skipped review |
|---|---|---|---|---|---|---|
| Qwen2.5-3B | Local CPU | 90.2% | 94.3% | 73.9% | $1.93 (VM time) | 3 |
| Qwen2.5-1.5B | Local CPU | 90.8% | 95.8% | 75.5% | $1.14 (VM time) | 8 |
| Claude Haiku 5.5best value | API | 96.1% | 98.4% | 89.4% | $0.48 | 0 |
| Claude Sonnet 5.5 | API | 96.3% | 98.7% | 89.8% | $6.56 | 0 |
| Claude Opus 5.5 | API | 97.5% | 99.0% | 93.1% | $14.49 | 0 |
Claude Haiku reads a page for about a twentieth of a cent — $0.48 per 1,000 pages — at 96.1% field accuracy and 98.4% on key fields.
With every Claude model, no document with a wrong value slipped past the review flag. Errors happened; they were caught.
About half of documents pass every check and need no human touch. The other half arrive pre-filled, with the reason they were flagged.
When documents can’t leave your infrastructure, the open model on CPU still gets ~95% of key fields — with a person checking more of them.
We went through every miss from the best run (Opus). Most aren't reading errors — they're questions of convention. That's exactly what a production rollout tunes.
The model wrote “Water damage from burst/cracked plumbing pipe” where the label code is “burst_pipe_flood”. Both describe the loss; only one matches the codes. Giving it the client’s code list fixes most of these.
The model picks up a sender or signature name where the ground truth left the field empty. A per-channel rule on which name counts settles it.
“Yesterday evening” in an email sent near midnight, or a timestamp in another timezone. Anchoring relative dates to the received time in your system closes the gap.
Pick one of the synthetic samples or drop in your own test document. You get the same output a claims system would: the fields, a confidence for each, and a review verdict with reasons.
Demo runs the Claude Haiku 5.5 pipeline on AWS Lambda (Mumbai). Files are processed in memory and deleted; nothing is stored. Max 4 MB, 3 pages; limited runs per day. Please don't upload real customer documents.
The demo shows the core. A rollout wraps it around your documents, your rules and your people.
Your claim forms, TPA formats and loss / diagnosis code lists — not a generic schema.
We score the pipeline on a sample of your past claims before anything goes live, so you see accuracy on your data.
Reads from your inbox, DMS or queue; writes into your claims platform via API, with an audit trail per document.
Reviewers see the document, the extracted value and why it was flagged — fix it in one click, and the fix feeds the eval set.
Run an open model on your own servers when documents can’t leave your infrastructure.
Accuracy and review rates tracked over time, with alerts when a new form layout or insurer starts slipping.
Send us a handful of anonymised samples. We'll tell you what accuracy to expect on them — and what it would take to get there.