Gen8

Document processing: extraction is step one

Knowledge

Document processing: extraction is step one

Document-processing demos always show extraction because it is impressive and fast. Time goes into validation, matching and exceptions — where it is decided whether this delivers anything.

The chain behind one document

Processing an invoice, contract or intake form has five links. Extraction is the first and by far the shortest.

  1. Extraction — retrieving fields from the document.
  2. Validation — is the result correct, internally and against your own data?
  3. Matching — where does this document belong: which supplier, order or case file?
  4. Exceptions — what happens when one of the three above fails?
  5. Archiving — where does the document stay, for how long, and who can access it?

Setting up only link 1 shifts the work: errors now arrive together with one person instead of being spread across everyone.

Validation belongs with rules, not the model

A model can read a total amount. Whether that amount equals the sum of line items, whether the VAT rate exists, whether the date is in the future — those are comparisons. Write them as rules. That is cheaper, faster and fully testable, and catches precisely the reading errors that would otherwise flow through unnoticed.

Also have the model provide an uncertainty level for each field and use it: low uncertainty passes through the rules, high uncertainty goes straight to a person, even if the rules happen to pass.

Matching is where things really get stuck

A supplier name on an invoice rarely matches the name in your system. "Jansen Techniek B.V.", "Jansen Techniek", "J. Techniek BV" — and the bank account has changed. Matching is a data-quality problem, not an AI problem, and almost always the link determining turnaround time.

Arrange two things before building: a way to confirm and remember a match once, and an explicit route for an unknown party. Without the first, the same supplier remains an exception every month.

Exceptions are the real design

Expect some documents not to pass through the entire chain automatically — new suppliers, unusual layouts, poor-quality scans. The question is not how to bring that to zero, but what the exception path looks like:

A chain with a good exception path and seventy percent automatic throughput is worth more than one achieving ninety percent whose remainder gets stuck in a folder.

Archiving is a decision, not a by-product

Determine beforehand where the document ends up, how long it is retained, who may view it and whether extracted data is kept too. Financial documents have retention periods; personal data in intake forms poses the opposite issue — keeping it too long is the risk.

When not to start this

At low volumes with high variation — twenty documents monthly from fifteen different senders — setup costs more than the work. And if documents arise from a process you design yourself, a structured form is cheaper than any subsequent extraction. That sounds obvious, but is often the right answer.

Next step

What to do with this

Take fifty documents from the past month and count how many would fail validation and how many matching. That ratio tells you whether to work on master data first or immediately on the chain — saving months. The chain for purchase invoices is described under processing and posting invoices.

Frequently asked questions

How accurate is extraction?

That depends on document type and scan quality, and it is not the figure to follow. Instead, measure how many documents pass through the entire chain without human intervention.

Must someone always inspect every invoice?

Not every invoice, but every invoice triggering a rule: unknown supplier, unusual amount, changed bank details. The last is a known fraud vector and should always pass a person.

Can we start without cleaning our master data?

Yes, but expect many matching exceptions. Cleanup still happens, only piecemeal and under time pressure rather than beforehand.

Want to apply this to your own process?

Bring one process to a conversation. We assess suitability, risk and the cost of the first step.

  • Reply within one business day
  • No obligation