Resources ยท Guide

Intelligent Document Processing: How to Evaluate It

Three generations of document processing, and a test plan that uses your documents rather than the vendor's.

Tall stack of printed documents marked with brightly coloured sticky tabs on a desk

A vendor demo of document processing almost always works, because it runs on documents the vendor has seen before. What you need to know is what happens to the invoice from the supplier who still faxes, the statement that lost page four, and the KYC pack with a stamp across the address. This guide is a test plan for that: build a set from your own documents, measure every field, check whether the confidence scores mean anything, and score the tools on what you find.

Three generations, and what each hands you

OCR turns an image into characters. Template-based IDP maps named fields onto layouts someone configured. Agentic extraction finds fields by context, checks them against your data and says how sure it is about each one. All three are sold as intelligent document processing, so start by working out which one is in front of you.

What each layer hands you

OCR Characters

A block of text in reading order. Correct characters, no idea which of them is the invoice total.

Template IDP Mapped fields

Named fields, as long as the layout matches a template someone built. A redesign breaks it silently.

Agentic extraction Checked data

Typed fields found by context, validated against your masters and arithmetic, each carrying a confidence score and a route to review when it falls short.

The difference is not accuracy on a clean sample. It is what happens on the document nobody anticipated.

The test plan below works for all three. It is deliberately harder on the third, because a tool that claims to reason about your documents should be asked to show it.

Decide what you are evaluating

Write down three things before you contact a vendor. First, the document types and their monthly volumes: supplier invoices, receipts, bank statements, purchase orders, KYC packs, and anything particular to your business. Second, the fields you need from each, and only those. A list of forty invoice fields when the downstream step uses twelve makes every tool look worse and teaches you nothing. Third, what happens to the data next: posted to an ERP, matched in a payables workflow, filed for audit. That last answer decides which errors are expensive.

For each field, note what a wrong value costs. A wrong remarks line costs nothing. A wrong total, GSTIN or bank account number costs money or a compliance problem. Spend the evaluation's attention on those high-cost fields.

Build the test set from your own documents

A test set built from your own documents · Illustrative example

Slice and what it tests75 documents
Top suppliers by volumeWhere most of the work is20 docs
The long tail, one eachLayouts nobody would template20 docs
Scans and phone photosSkew, glare, stamps, handwriting10 docs
Multi-page, long line tablesContinuations and totals across pages10 docs
Wrong or mixed documentsCredit notes, statements, delivery notes10 docs
Known badA duplicate, a wrong total, an inactive GSTIN5 docs

Illustrative data. The answer key stays with you. The five known-bad documents tell you more about validation than the other seventy put together.

Pull the documents from a recent month as they arrived, rather than from a folder of good examples. For each one, write down the correct value of every field on your list. That answer key is the most useful thing the evaluation produces, and it stays with you. Send vendors the documents only, then compare what comes back.

Seventy-odd documents is enough to see patterns and few enough that one person can write the answer key. Mask what you must before anything leaves your premises, and agree in writing what the vendor does with the files and for how long. A masked field should come back blank or masked, which is the correct result.

Measure per field, not per document

A single accuracy percentage tells you very little. It depends on what was counted (fields or documents, every field or only the easy ones, before or after review), and it folds together four outcomes with very different costs.

Four outcomes for every field on every document

Above thresholdNo person
Value rightWork removedPass
Value wrongPosts unseenSilent error
Below thresholdTo a reviewer
Value wrongCaught before postingCaught
Value rightA person confirms itReview cost
Count silent errors Silent errors on totals, tax IDs and bank details decide the evaluation. Review cost decides the staffing.

A single accuracy percentage folds all four boxes into one number, which is why it predicts so little about production.

Put every field on every document into one of those four boxes, then read the results field by field. The box to watch is the silent error: a wrong value the tool was confident about and would have posted. On high-cost fields that count should be zero in your set, and a tool that produces silent errors on totals, tax IDs or bank details should not pass. Review cost matters too, but it is a staffing question, and it falls as thresholds are tuned.

Read the results by slice as well. A tool that is excellent on your top suppliers and poor on the long tail looks fine in aggregate and fails on the documents that cause the work.

Test the confidence scores themselves

Confidence is only useful if it means something, and you can check that. Sort every field in your results by its score and look at where the wrong values sit. If the scores are meaningful, the errors cluster at the bottom. If errors are spread through the high scores, no threshold can protect you, wherever it is set.

Then ask where the threshold is set and by whom. It should be per field and per document type, set by you, and changeable without a software release. A single document-level score hides the field that matters: an invoice can score well overall while its total is the one value that is wrong. The DocPro page explains how confidence is scored per field and how thresholds are set by field and by document type.

Validation and review

Reading is half the job. Ask each tool to check what it read: line totals against the invoice total, tax against rate and taxable value, the GSTIN format, the vendor against your master, the running balance on a statement from page to page. The known-bad documents in your set exist to test exactly this. A tool that returns a duplicate invoice, or a statement with a missing page, looking clean has failed the most useful test in the plan.

Then sit someone from your team in front of the review screen with the held fields. A good screen shows the field, the value read, the region of the page it came from and the reason it was held, so the reviewer can settle it without opening the original. Time a dozen decisions. If the reviewer keeps opening the full document, review will cost more than anyone estimated. The human-in-the-loop guide covers how to design the queue around those decisions.

Red flags in vendor demos

  • The demo runs only on the vendor's sample documents, and using yours is deferred until after the contract is signed.
  • Accuracy is quoted as one number, with no statement of what was counted or on which documents.
  • Confidence is shown per document, or not shown at all.
  • A new layout needs a template, a training cycle or a services ticket before it can be read.
  • Wrong values come back with high confidence, and the answer is that the model will improve with use.
  • Validation is described as available but is not run on your known-bad documents.
  • The output is a spreadsheet or a screen, when your systems need structured data with the scores and checks attached.
  • Questions about where documents are processed, and for how long they are kept, get a general answer.

None of these proves a tool is bad. Each one is a reason to run the test plan before believing the demo.

A scoring checklist

Scoring checklist for a document processing evaluation

Must passFail one and stop
ClassificationA mixed batch sorted by type before readingMust
Confidence per fieldA score on each value, not one per documentMust
Silent errorsNone on totals, tax IDs or bank details in your setMust
ValidationArithmetic and masters checked; known-bad caughtMust
Deployment and dataRuns where your policy needs; retention set by youMust
Score and compare1 to 5 each
New layoutsLong-tail documents read with no templateScore
Review screenField, value, page crop and reason in one viewScore
OutputYour schema as JSON, scores and checks attachedScore
Change effortA new field or rule without a projectScore
Audit trailWho changed which field, when, from whatScore

Score the second group only for tools that pass the first. A pleasant review screen does not make up for a silent error on a GSTIN.

Run the must-pass group first, on your set. Score the second group only for the tools that pass, one to five per line, with the people who will run the process doing the scoring. Weight the lines by how much of your work they touch. A team that adds a document type every quarter should care more about change effort than one with a single, stable invoice flow.

What document processing will not do

Document processing reads what is printed. It cannot supply a cost centre that is not on the invoice, judge whether an over-limit expense is acceptable, or decide whether a KYC applicant should be accepted. Those need a lookup, a rule or a person, and a vendor who suggests otherwise is describing a different product. On badly degraded scans, expect lower confidence and some flagged blanks. The right behaviour on a field that cannot be read is to flag it, and a tool that guesses instead will eventually guess a total.

How to test this on your own documents

  1. List the document types, the fields you need and the cost of a wrong value in each.
  2. Build the set from a recent month, with an answer key you keep.
  3. Send each tool the documents only.
  4. Put every field into one of the four outcomes and read the results by field and by slice.
  5. Sort by confidence and check where the errors sit.
  6. Time a reviewer on the held fields.
  7. Score the must-pass group, then the rest.

You can see part of this today. The public DocPro test reads one invoice or UPI receipt and shows the fields beside the page. It does not display confidence or run validation, so treat it as a first look. For the full plan on your own set, with confidence, validation and review, request a DocPro demo. Intelligent Document Processing describes how DocPro classifies, reads, validates and routes each document.

Where PTAS AI fits

What the test plan checks, and the page that covers it

What the plan checksWhere it is handled
Classification, extraction, confidence and validationIntelligent Document Processing
The product, its pipeline and its six agentsDocPro
Invoice header, lines and tax, scored per fieldDocPro Invoice Agent
Statements with the running balance provedDocPro Bank Statement Agent
Document types no standard agent coversCustom Document Agents
Structured output into your own systemsDocPro API

FAQ

Questions teams ask when evaluating document processing

What is the difference between OCR, template IDP and agentic extraction?

OCR turns an image into characters. Template IDP maps named fields onto layouts someone configured, and a redesigned layout breaks it. Agentic extraction finds fields by layout and context, checks them against your arithmetic and masters, and gives each field a confidence score with a route to review. The test plan on this page works for all three.

How many documents do we need for a fair test?

Enough to cover every slice that matters, usually sixty to a hundred: top suppliers, the long tail, scans and photos, multi-page documents, wrong or mixed documents, and a handful you know are bad. More documents of the same clean kind add very little.

Should we trust a vendor's published accuracy figure?

Treat it as a statement about the vendor's own test set. Ask what was counted, on which documents, and whether before or after review. Then measure on your set, per field, and count the confident errors separately from everything else.

What confidence threshold should we set?

There is no single right number. Set it per field by the cost of a wrong value, start conservative, and move it only on evidence from your own results, chiefly how often reviewers change what the tool proposed for that field.

Can we evaluate without documents leaving our network?

Ask each vendor. DocPro runs in the cloud, in a private cloud, or on-premise and air-gapped where supported, and the setup for an evaluation is agreed before any document moves. Mask what you must either way; a masked field should come back blank or masked.

Next step

Run the test plan on your own documents

Start with one invoice in the public test, or bring the whole set to a demo. The answer key stays with you, and we go through every field together.