Vladimir KovtunovskiyAI Product Engineer
← All work
Case 01In production

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.

Client
International logistics company (anonymised)
My role
Everything from the labelled data set and evaluation to the production system and handover to the business; with the client’s project manager
Timeline
6 months build; results from the first 3 months in production
Stack
Python · Azure Document Intelligence · Gemini 2.5 Pro · pandas
Review screen: the source invoice on the left, extracted fields and a flagged total mismatch on the right
Review screen, reconstructed with sample data. The client’s documents stay private.
92%field-level accuracy by month 3
800 → 5,000+documents per month, no overtime
60%less manual processing work
71%of documents auto-approved

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.

What the evaluation showed127 documents · field-level scoring
ComparisonResult
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 setupmarginal 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 chosen92.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

Production pipelineshare of monthly volume
Routerclassifies each
incoming file
12%
Spreadsheetsparsed with pandas, schema-validated, no model call
78%
Standard PDFsknown supplier layouts → OCR + LLM extraction
10%
Scans and unknown layoutsOCR + LLM with extra validation passes
47-field schemamissing values are null,
never guessed
Checks in Pythondates to ISO, vendor matched to master data, line items sum to total
Auto-approveclean documents go straight through
Expert reviewflagged fields beside the source document
Monitoringintervention rate per field, per supplier, over time
every correction → new prompt example + regression test

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.

Launch versus month threelaunchmonth 3
Field-level accuracy
89%
92%
Documents auto-approved
64%
71%
Time to review a flagged document
45 s
28 s
Monthly capacity, same team
800
5,000+ documents
A regression caught by monitoring
14%→ 1.8%
2%week 31.8%

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.

An insight the client did not have before
31%of corrections
3 suppliers = 7% of volume
31% of all corrections

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.
Aleksei KondratenkoProject manager on this project · now AI-native Ops, R&D at AECFoundryRecommendation, January 2026 · read it on LinkedIn

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:

6×more documents a month with the same team: 800 → 5,000+, no overtime
60%less manual processing work for coordinators who had spent 70% of their time on data entry
71%of documents approved automatically, with no human touch
92%field-level accuracy by month 3, up from 89% at launch
28 sto review a flagged document, down from 45 s
$0.12processing cost per document

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.

LinkedInlinkedin.com/in/vvkai GitHubgithub.com/VVK93

Useful for a first conversation: one real example of the task, the result you need, and the tools your team uses today.

Prefer a PDF? Download a short introduction (PDF)