Skip to content
Devinity Solutions

Running AI document extraction in production

Document extraction is the most reliable business use of AI today. Here is what production requires beyond the extraction itself.
Haider Ali

Chief Technology Officer

3 min read

AI document extraction turns unstructured documents into structured records. It works well where formats vary enough to defeat rules-based parsing — invoices, rate confirmations, purchase orders, forms. Getting it into production requires four things beyond the extraction itself: an evaluation set, a confidence threshold, a review interface, and monitoring for drift.

Why extraction is the strongest business case

Most AI use cases are hard to evaluate. Extraction is not: either the field was read correctly or it was not. That makes accuracy measurable, which makes the system defensible, which is why extraction reaches production more often than almost any other AI application.

It also targets work that is genuinely wasteful. Somebody currently reads a document and types its contents into a system. That work produces nothing except data movement, and it introduces errors while doing it.

What production requires

An evaluation set built from real documents

100 to 300 real documents with correct values recorded for every field. It must include the difficult ones — poor scans, unusual layouts, missing fields, values written in an unexpected format.

Accuracy is measured per field rather than per document. A system that reads the rate correctly 99% of the time and the delivery date correctly 82% of the time has a specific problem, and a single overall figure hides it.

A confidence threshold

The system reports how confident it is. Below an agreed threshold, the document goes to a person rather than through.

Where that threshold sits is a business decision, not a technical one. It depends on the cost of a wrong value against the cost of human review, and it belongs to the client rather than to us.

A review interface worth using

If low-confidence documents route to a person, that person needs a good tool: the document beside the extracted values, the uncertain fields highlighted, and correction in a keystroke rather than a form.

This interface deserves as much design attention as the extraction. It is where the system meets an actual human being, and a bad one destroys the time saving the project was justified on.

Monitoring for drift

Accuracy is re-measured against the evaluation set periodically, and per-field accuracy is tracked in production. When a supplier changes their document template — which they do without telling anyone — the accuracy for those fields drops, and that should raise an alert rather than a customer complaint.

What this looks like in practice

Our FleetChart product reads freight rate confirmations. Every broker formats them differently, so a rules-based parser would need maintaining per broker forever. The system extracts rate, lane, pickup and delivery dates, broker details and accessorial terms into fields an operator can act on.

The extraction is the straightforward part. The parts that made it usable were the confidence threshold, the review interface and the per-field accuracy monitoring — none of which appear in a demo, and all of which determine whether the thing survives contact with a real operation.

Where extraction is the wrong tool

  • Documents in a consistent, structured format — use a parser, it is cheaper and exact
  • Fields where being wrong is catastrophic and review is not practical
  • Volumes too low to repay the build

We will say so during scoping. A client who builds an extraction system for forty documents a month has spent money to save an hour.

  • document-extraction
  • llm
  • production
  • logistics

Tell us what you are trying to build.

A thirty-minute call is usually enough to tell you whether we are the right firm for it. If we are not, we will say so and point you somewhere better.

Or reach us directly: [email protected] · +1 321 335 0265