[← All posts](https://nodina.com/en/blog/) 

AI Consulting

# OCR or LLM for invoices and contracts? Where to put the human check

Compare OCR, templates and LLM extraction for invoices and contracts. Set field checks, size the review queue and verify what reaches your ERP or CRM.

December 1, 20268 min read[Jean-David Collard](https://nodina.com/en/#experience) 

Optical character recognition (OCR) reads text from a page image. A large language model (LLM) can extract fields from varied wording. For AI document processing, use a template when the layout repeats and test an LLM when meaning depends on context. Put a human check before a value with missing evidence or a costly consequence enters your business system.

An accounts payable clerk sees two matching totals and still holds the invoice. The supplier billed the right amount in the wrong currency. A contract manager faces a different problem. A renewal clause says “on the anniversary of acceptance,” and the acceptance date lives in a separate record. In both cases the software may have read every character correctly. What matters is whether someone can rely on the proposed entry to do the next piece of work.

## What should the document become?

Intelligent document processing (IDP) covers the path from an incoming document to an accepted record. Begin at the receiving end. An enterprise resource planning system (ERP) might need a supplier ID, invoice number, currency and gross amount to create a draft payable. A customer relationship management system (CRM) might need the signed agreement, the clause governing notice and the person responsible for reviewing a renewal. Those are different outputs, even if both teams start by uploading a PDF.

Inspect the input before paying to extract anything. A structured invoice may already supply the amounts and currency in machine-readable fields. A digital PDF may have a usable text layer. Use that information where it meets your needs, and keep the original alongside it so a reviewer can check the result. A faint scanned stamp, handwriting across a line item or an amendment supplied as a separate attachment may still need individual attention.

## OCR, templates or an LLM for extraction?

Method | 
Where it fits | 
An error to test for | 
What you pay for | 

OCR | 
Scans where the first job is to recover text and its location | 
A decimal point disappears or text from adjacent columns runs together | 
Page processing and correction of poor scans | 

Template-based IDP | 
Invoices or forms with recurring labels and layout | 
A supplier moves a subtotal into the old total box and the template still returns a number | 
Building, testing and maintaining each layout | 

LLM extraction | 
Variable invoices and clauses expressed in different words | 
The model returns a plausible date from the wrong clause or fills a field the document leaves open | 
Model usage, evidence checks, evaluation and review | 

These methods can share a workflow. You might apply OCR to a scanned contract and give the resulting text to an LLM with a request for the notice period and the exact passage that supports it. Keep the page reference and check that the quoted passage exists. Then ask whether the passage actually establishes the proposed value. A clause allowing early termination can contain the same number of days as the renewal clause and answer a different question.

## Which records should go to a reviewer?

Give each field an acceptance rule. A proposed invoice total needs a currency and a source location. Where the invoice shows tax, discounts and shipping separately, reconcile the total using those components and the agreed rounding rules. Compare the supplier with an existing vendor record. A request to change bank details belongs in the finance team’s existing verification process even when every character is legible. Reading an account number accurately is a different task from establishing who authorized a change.

For a scored extractor, select thresholds using documents your team has labeled and reserve other documents for the final test. Include suppliers, layouts and poor scans that staff regularly see. Examine performance by field. Precision tells you how many proposed values were correct. Recall tells you how many of the expected values the system found. Raising a threshold can reduce incorrect values that pass while leaving more records for someone to resolve. If the model supplies no score you have validated, use observable checks such as a match against a source passage or a purchase order. [Google Cloud Document AI evaluation guide](https://docs.cloud.google.com/document-ai/docs/evaluate) 

Send failed checks to a queue with a named owner. Show the original page beside the proposed value, the reason for the hold and the related business record. Give the reviewer a way to leave a field unresolved or request the missing attachment. Record the correction separately from the original suggestion. Microsoft’s guidance for Document Intelligence recommends evaluating confidence on a pilot representative of the intended use and including human oversight where errors carry significant consequences. [Microsoft Document Intelligence transparency note](https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/document-intelligence/transparency-note) 

## A hypothetical invoice queue, worked in reviewer hours

Suppose an accounts payable team receives 1,000 invoices a week . For staffing this example only, assume 180 reach the exception queue. Of the 820 that pass the checks, the team selects 40 for a separate audit. If an exception takes six minutes and a sampled invoice takes three, the planned workload is 180 × 6 plus 40 × 3, or 1,200 minutes, equal to 20 reviewer hours a week . These are hypothetical planning inputs. Replace them with observations from your own pilot before budgeting.

The sample serves a different purpose from clearing the queue. An analyst handling exceptions might repeatedly see blurry purchase order numbers while a new supplier layout sends the wrong currency straight through. Draw some records from across the accepted population, then target unfamiliar layouts separately. Keep the two sets identifiable. If an auditor finds a currency error, trace the affected layout and time period, check which entries reached the ERP and assign someone to reconcile them. That investigation and any rework come on top of the 20 hours in the example.

Track how long a held invoice waits as well as how long someone spends reviewing it. A team with enough reviewer hours over the week can still miss a payment run when invoices arrive together on Thursday and only one person can clear supplier exceptions. A pilot that covers a busy payment cycle gives finance a better basis for scheduling review time.

## What happens between approval and the ERP?

Stage each proposed entry before writing to the destination. Carry forward the source document identifier and version, the accepted fields, the rules applied and any reviewer decision. Agree with finance on a duplicate check using the supplier and invoice reference, with a way to distinguish credit notes and legitimate corrections. When the receiving system accepts a write, save its record ID. If the connection drops before you receive confirmation, use a stable request identifier or reconcile against the destination before retrying. The finance team should be able to follow one document all the way to one intended entry.

Test contract reminders separately. Give the system a signed contract with a renewal provision and a later amendment that changes the notice period. It should surface both passages to the contract owner. If the relevant start date depends on a delivery acceptance that has yet to occur, let the owner record the missing event and assign follow-up. Creating a calendar reminder from the signature date would give everyone a definite answer to a question the contract has left open.

Before expanding to another document type, review the cost per accepted record and the errors your sample found. Include the time people spend locating missing evidence and resolving rejected writes. The same accounting makes proposals easier to compare when one provider charges by page and another by model usage. [What drives the cost of an AI project](https://nodina.com/en/blog/what-drives-ai-project-cost/) 

To scope a [custom AI solution](https://nodina.com/en/custom-ai-solutions/) , pick the field your team is least willing to accept on trust. Who signs off on it today, what evidence do they use, and which system receives it? [Describe the document flow and its human checkpoint](https://nodina.com/en/contact/?offer=systems) .

## Frequently asked questions

### What is intelligent document processing?

Intelligent document processing (IDP) takes a document from receipt to a verified record in a business system. It can include classification, text recognition, field extraction, exception review and delivery. Define the record you need before choosing the extraction method.

### Is OCR enough for invoice processing?

It can be enough to read a scan. To create a usable invoice record, you also need to identify the supplier, associate labels with amounts, validate the fields and check for duplicates. A template can handle those associations on a stable layout.

### How accurate is AI contract extraction?

Measure it on the clauses and amendments you actually receive. Track incorrect values separately from missed clauses. A renewal date tied to a later event may have no fixed calendar value yet. A reviewer should be able to see that distinction and the supporting passage.

### What does automated processing cost per page?

Page charges cover only part of the work. For a useful operating budget, add extraction, validation, human review and integration costs over the same period, then divide by the number of records accepted in the destination system.

Previous post[Staff augmentation vs outsourcing vs an embedded senior team](https://nodina.com/en/blog/staff-augmentation-vs-outsourcing-vs-embedded-team/) [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fnodina.com%2Fen%2Fblog%2Fllm-vs-ocr-document-extraction%2F) 

## Tell us what is slowing you down.

One conversation. A clear next step.

[Book a conversation](https://nodina.com/en/contact/?offer=unknown)
