// CASE STUDY · DOCUMENT AIlive demo

Insurance claims, read in seconds.

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.

97.5%
field accuracy (best model)
99.0%
on the fields that move money
~3–4 s
per document
$0.48
per 1,000 pages (Haiku)
Try the live demo ↓See the eval →
// THE PROBLEM

Claims intake is still a re-typing job.

13 fields
re-keyed per document

Policy number, insured, dates, amounts, diagnosis, hospital or garage — typed in by hand from scans, phone photos and email threads.

1 digit
is enough to leak money

A wrong policy number, date or amount means a claim paid outside cover, a duplicate, or a stuck file that delays a genuine customer.

Text ≠ decisions
generic OCR stops short

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.

// THE APPROACH

Read, extract, check — then decide who looks.

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.

01pdf · scan · photo · email

Read

OCR with Tesseract. Digital PDFs, scans and phone photos all become text — page by page.

0213 fields · JSON schema

Extract

An LLM fills a fixed claims schema with structured, schema-constrained output. No free text, no invented keys.

03rules · grounding confidence

Validate

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?

04json · needs_review

Route

Clean claim JSON out, with a needs_review flag and the reasons. Clean ones go straight through; the rest go to a person.

Model-agnostic

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.

// RESULTS

Measured, not demoed.

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.

ModelWhere it runsAll fieldsKey fieldsClaim emails (Cleanlab)$ / 1,000 pagesWrong docs that skipped review
Qwen2.5-3BLocal CPU
90.2%
94.3%
73.9%
$1.93 (VM time)3
Qwen2.5-1.5BLocal CPU
90.8%
95.8%
75.5%
$1.14 (VM time)8
Claude Haiku 5.5best valueAPI
96.1%
98.4%
89.4%
$0.480
Claude Sonnet 5.5API
96.3%
98.7%
89.8%
$6.560
Claude Opus 5.5API
97.5%
99.0%
93.1%
$14.490
Bars scaled 70–100%. Local-model cost is the VM time to process 1,000 pages on CPU; API cost is token spend.
~96% for $0.0005

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.

0 silent misses

With every Claude model, no document with a wrong value slipped past the review flag. Errors happened; they were caught.

~½ straight through

About half of documents pass every check and need no human touch. The other half arrive pre-filled, with the reason they were flagged.

Local when it must

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.

// WHAT'S STILL HARD

Where the remaining errors are.

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.

10
errors

Loss-type wording vs. your taxonomy

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.

5
errors

Names on emails with no labelled name

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.

5
errors

Dates one day off

“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.

// LIVE DEMOrunning

Try it on a document.

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.

1 · Pick a sample (synthetic documents — fake people, fake policies)
2 · Or upload your own (not real customer data, please)
Drop a claim document here or click to choose
PDF · PNG · JPG · TIFF — max 4 MB, first 3 pages
Results appear here: 13 fields, a confidence score for each, and a review verdict.

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.

// FROM DEMO TO PRODUCTION

What an engagement adds.

The demo shows the core. A rollout wraps it around your documents, your rules and your people.

01

Your documents, your taxonomy

Your claim forms, TPA formats and loss / diagnosis code lists — not a generic schema.

02

Eval on your own history

We score the pipeline on a sample of your past claims before anything goes live, so you see accuracy on your data.

03

Into your claims system

Reads from your inbox, DMS or queue; writes into your claims platform via API, with an audit trail per document.

04

Review UI for flagged docs

Reviewers see the document, the extracted value and why it was flagged — fix it in one click, and the fix feeds the eval set.

05

On-prem or open-model option

Run an open model on your own servers when documents can’t leave your infrastructure.

06

Drift monitoring

Accuracy and review rates tracked over time, with alerts when a new form layout or insurer starts slipping.

document AIinsuranceOCRLLM extractionevals

Have a document pile like this?

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.

Start a projectMore work →