Document intelligence · Logistics
Shipping documents processed at 92% field accuracy, with experts in control
An international logistics company was retyping invoices, packing lists and customs documents by hand. I rebuilt its document automation around a labelled test set, a routed OCR + LLM pipeline, checks in code and an expert review screen.

The problem
Skilled coordinators working as human middleware
The company handles thousands of invoices, packing lists and customs documents a month, in several languages and in whatever layout each supplier prefers: PDFs, scans, spreadsheets, emails. Coordinators copied SKUs, translated trade terms and checked HS codes by hand, and spent about 70% of their time on data entry.
Throughput could only grow by adding people, and every added person added inconsistency. The team capped out at roughly 800 documents a month.
Starting point
A sophisticated pipeline nobody trusted
When I joined, an automation platform had already been in development for months: OCR, a large rule set, retrieval for few-shot examples and several post-processing steps. On paper it followed the standard playbook. In practice it stayed below 70% accuracy, hallucinated values and was slow, so coordinators went back to typing.
Instead of tuning each module, I replaced the stack with a deliberately simple workflow, a clearly written prompt and a set of evaluations. That version reached 89% field accuracy by launch and gave us something measurable to improve. (The starting point above is from my LinkedIn post on the project; every figure below is from the published case study.)
Evaluation
Ground truth first, then let the numbers choose
With the client’s domain experts I assembled 127 labelled documents: the frequent supplier templates plus the awkward cases (poor scans, mixed languages, unusual date formats). An evaluation harness ran every configuration against that set and scored field-level accuracy, latency and projected cost.
| Comparison | Result |
|---|---|
| OCR for structure + LLM for meaning, versus a vision-only model | ~40% fewer table errors |
| Three worked examples in the prompt, versus zero-shot (same model) | 84% → 92% accuracy |
| Largest available models, versus the chosen setup | marginal gain at 2–3× cost |
| Spreadsheets parsed in code, bypassing OCR and the LLM | ~15% lower monthly cost |
| Azure Document Intelligence (Layout) + Gemini 2.5 Pro, 3-shot chosen | 92.1% · 65.7 s · $0.12 / doc |
The winner was not the biggest model. It was the configuration that separated reading from reasoning and stayed affordable at 5,000 documents a month.
Architecture
Route each document to the cheapest path that is reliable
incoming file
never guessed
Anything that can be decided by a rule is decided by a rule. The model does semantic mapping only, and its output must pass deterministic checks before a record is created.
Results
Three months of production, measured
The comparison above ran on the labelled test set. The figures below come from live documents in production.
An Italian supplier began handwriting actual weights next to the printed estimates. Corrections on “total weight” jumped from 2% to 14%. Field-level monitoring flagged it; new examples, an OCR flag and regression tests brought it to 1.8% within a week.
Because every intervention is recorded per supplier, the team could see that three suppliers caused almost a third of the manual work, and raise it with them. The automation became a source of operational data.
What I delivered
An engineered system, not a prompt
- Discovery with coordinators, translators and domain experts, and a labelled ground-truth set they trust
- An evaluation harness that scores any change in model, prompt or OCR engine before it ships
- A routed extraction pipeline with a strict 47-field schema and deterministic validation
- A review interface where experts see the source document next to the flagged field
- Monitoring and alerts per field and per supplier, so quality problems surface in days, not quarters
Reference
In the words of the project manager
It was a pleasure working with Vladimir. He brings a calm and professional presence to the team, even during complex projects. What stands out most is his ability to dive deep into a specific domain to truly understand the problem, followed by meticulous execution to ensure a high-quality product is delivered. His unique blend of Product Management skills and technical expertise in LLM development makes him an invaluable asset for any company building AI solutions.
Business outcome
The goals the client set, met
The client wanted to grow volume without growing headcount, and to get skilled people out of data entry. After three months in production:
Figures from my published case study of this project, December 2025. They describe this system on this client’s documents; accuracy on a new document set is always measured before it is promised.
The team went back to managing supply chains, and the business can now take on more shipments without hiring for paperwork.
Available for projects and roles · European Union · Worldwide · Remote
Have a problem worth solving?
Send me a few lines: what is slow, manual or broken today, and what a good result would look like. I reply within two working days with questions or a suggested first step.
Useful for a first conversation: one real example of the task, the result you need, and the tools your team uses today.