Guide · Data and integrations
Document extraction accuracy: what to measure and how
Why a single accuracy figure misleads, which measures matter for invoices, forms and claims, and how to design for the cases that fail.
AksharAI team · Published 10 October 2026 · 8 min read
One number hides the story
A hospital in Surat wants to extract fields from discharge summaries for insurance claims: patient name, admission and discharge dates, diagnosis, procedures, and the final bill amount. A vendor says their system is highly accurate. That claim means little until three points are clear:
- Whether accuracy is counted per document or per field.
- Whether it was measured on typed summaries or on scans with handwritten notes.
- Whether it covers the bill total, which matters most, or mostly easy fields such as the hospital name.
An extraction system can be right on ninety five fields out of a hundred and still be wrong on the one that decides the claim. That is why you measure on your own documents, field by field, and design the process for the errors.
Measure per field, on your own documents
Build a test set of real documents, as described in evaluating an AI agent before launch. For extraction, fifty to a hundred documents across your main sources and layouts is a reasonable start. For each document, record the correct value of every field you need.
Then measure each field separately:
- Exact match rate: how often the extracted value is exactly right. Use this for identifiers such as GSTIN, PAN, invoice numbers and policy numbers, where close is wrong.
- Normalised match rate: right after normalising format, for example dates written as 12/10/26 and 12 Oct 2026. Use this for dates and names.
- Tolerance match: within an agreed tolerance, for amounts where rounding differs.
- Missing rate: how often the field was not found at all.
A table of these per field tells you far more than one overall figure. You will usually see that a few fields cause most of the trouble.
Weight the fields by what they cost
Not every error matters equally. A wrong hospital address on a discharge summary is a nuisance. A wrong bill amount or diagnosis code can delay or reject a claim. Mark each field as critical, important or minor, and set a target for each group. Critical fields should either be right or be flagged for a person; they should never be silently wrong.
Measure the safety net as well as the extraction
The most useful measure is often this one: of the values that were wrong, how many were caught before they caused harm?
Errors get caught in three ways:
- Confidence checks. The system marks values it is unsure of, and those go to a person.
- Rule checks. Values are checked against each other and against other systems. The invoice total should equal the sum of the lines plus tax. The GSTIN should match the vendor master. The discharge date should not be before the admission date.
- Human review. A person approves the record before it is used.
A process where extraction is right ninety per cent of the time and almost every error is caught by checks is safer than one that is right ninety eight per cent of the time with no checks. Measure the share of errors caught, and push it as close to all of them as you can for critical fields.
Know your document mix
Accuracy varies a lot with the source:
- Digital PDFs generated by software are the easiest.
- Clean scans are close behind.
- Phone photos vary with light, angle and folds.
- Handwriting varies with the hand; neat block capitals are often fine, hurried notes often are not.
- Unusual layouts from small suppliers or old forms cause more misses.
Measure each source separately. If photos from one supplier fail often, the fix may be asking that supplier for a PDF.
Design for the failures
Assume some documents will fail and decide in advance what happens:
- Low confidence on a critical field: send to a named reviewer with the image region highlighted.
- Rule check fails: show the reviewer which rule and the values involved.
- Document unreadable: ask the sender for a better copy, automatically if the channel allows.
The document extraction agent on AksharAI works this way: extract, check, and route anything uncertain to a person before it enters your system.
Keep measuring after launch
Every correction a reviewer makes is a new test case. Add a sample to the test set each month and rerun it when the model or the instructions change. Watch for new layouts, such as a supplier changing their invoice software, which can quietly lower accuracy on one source.
For invoice extraction, AI for Tally users shows how it fits into an accounts team's day.
Put this to work
Automation agent
Document extraction agent
Reads scanned forms and documents and fills the fields your system needs
Learn moreIntegrations
What connects, and how
Ready adapters and connectors built for your setup.
Learn morePlatform
Integrations
Connect agents to the systems where your data and work already live.
Learn moreNotes on building agents
New guides like this one, by email.
Keep reading
Guide
Connecting an agent to Tally, Zoho and your ERP
An agent is only useful if it can see your purchase orders, ledgers and customer records. Tally, Zoho and larger ERPs each connect in their own way, and in every case write access should stay narrow.
Learn moreGuide
Giving an agent your documents without leaking them
Agents become useful when they can read your own documents. They become risky when they show those documents to the wrong person. Permissions, the choice of model provider, personal data handling and leak tests before launch decide which.
Learn moreGuide
AI for Tally users: what an agent can and cannot do
Most Indian businesses keep their books in Tally, and most of the repetitive accounts work happens around it. An agent helps a Tally team most with reading documents, reconciling and answering questions from the books. It connects through Tally's own interfaces and leaves posting and payments to people.
Learn moreSee it on your work
Bring one slow, repetitive process. We will show you an agent doing it.
A working session with someone who builds these every week.
Or get a ballpark proposal in two minutesWhat happens next
- Step 1A short call about one process and the systems involved
- Step 2A demo of an agent working on a version of your task
- Step 3A clear view of fit, approvals and what it would take