Back to Case Studies

Document Intelligence Evaluation for Extraction Failures

·
An insurance provider in the UAE

Executive Summary

A client's document extraction system worked on straightforward documents but became unreliable on complex tables, scanned pages, and unfamiliar layouts, often producing outputs that looked complete while values were missing, duplicated, or assigned to the wrong row. GenAI Protos evaluated OCR, document parsing, layout-aware, and vision-language approaches on a de-identified sample of the client's documents to pinpoint where extraction failed, why, and which approach warranted further development.

01Problem Statement

The engineering team needed to understand why extraction was failing and whether a different approach would improve reliability. Spot checks had revealed problems, but the team lacked a consistent way to compare tools or estimate how much human review each option would require. A readable output was not necessarily an accurate one.

The evaluation needed to:

  • Cover representative document types, layouts, and scan quality
  • Detect missing, duplicated, transposed, and incorrectly attributed content
  • Check whether tables retained their rows, columns, and relationships
  • Trace extracted values back to the source page and region
  • Establish when the system should return a result or send it for review
  • Support a decision on the next development stage

02Our Approach

We started with the documents that caused problems. Working with the client, we assembled a de-identified test set grouped by document type, layout complexity, and scan quality, and labeled the expected values and table structures, including where each item appeared in the source.

We then ran selected extraction approaches against the same test set and compared results by document group, so strong performance on clean pages would not hide failures on difficult ones. Each error was classified: a missing value was recorded separately from a correct value attached to the wrong field or table row. This showed whether an approach struggled with reading text, understanding layout, or preserving relationships.

We also tested confidence thresholds where available, along with rules for flagging incomplete or inconsistent results, and measured both the errors that escaped these checks and the volume sent to human review. The engagement remained a focused evaluation, with reusable test assets and documented findings.

  • Exact and normalized field accuracy
  • Omission, duplication, and misattribution rates
  • Preservation of table rows and cells
  • The proportion of documents with every required field correct
  • Processing time and estimated cost
System Architecture & Flowclick to zoom
Figure 1 - How the AI assistant retrieves and cites source documents
Figure 1 - How the AI assistant retrieves and cites source documents
Figure 1 - How the AI assistant retrieves and cites source documents

03Outcome

The evaluation gives the client a clear, evidence-based view of which extraction approach performs best for each document group, where failures remain, and how much human review is required at the tested thresholds. The client receives:

If no approach meets the agreed requirements, the finding is recorded along with the conditions that would need to change before further investment.

  • The selected approach and the evidence supporting that choice
  • Accuracy and failure rates for the most difficult document groups
  • Incorrect results that passed without being flagged
  • Review volume, latency, and estimated processing cost
  • A go/no-go recommendation for a bounded next stage
  • A reusable, labeled test set for future regression checks

04Tech Stack & Ecosystem

Key models, frameworks, and core infrastructure powering this solution.

Approaches compared

OCR, document parsing, layout-aware models and vision-language models, all run on the same test set.

OCR

Tesseract and AWS Textract. A baseline for reading text from scanned pages.

Document parsing

Docling. Pulls out structure and tables from digital documents.

Layout-aware model

LayoutLMv3. Understands where each value sits on the page.

Vision-language model

Qwen2.5-VL class. Reads complex tables and new layouts without fixed templates.

Labelling

Label Studio. Expected values and table structures, each tied to its page and region.

Data privacy

Microsoft Presidio. Removes personal details before testing.

Scoring & review rules

Custom Python scorer that tags each error (missing, duplicated, swapped or wrong row) and tests confidence thresholds that send uncertain results to human review.

05Client Testimonials

“Some extracted documents looked complete until we found values missing or attached to the wrong table row. GenAI Protos tested different approaches on our difficult documents and separated text-reading errors from layout problems. That gave us a clearer basis for deciding what to develop next and where human review was still needed.”
IU
Document Operations & Technology Team
Insurance, UAE

Why is your document extraction failing on complex documents?

Test approaches on your own documents to measure accuracy, missed errors, and human review effort.

Frequently asked questions

Evaluate OCR, parsers, and vision-language models on representative documents. Validate field values, table structure, and the source location of each extracted item.

Values may be omitted, duplicated, or assigned to the wrong field or row. Separate error scoring exposes failures that a readable output conceals.

Compare candidates on the same labeled test set, with results split by document type, scan quality, and layout complexity. The best option may differ across groups.

Track field accuracy, omissions, misattributions, table preservation, and the percentage of documents with every required field correct.

Test confidence thresholds and checks for incomplete or inconsistent results. Measure review volume alongside incorrect results that pass without a flag.