We Built Our Own Document Parser. Here's How It Stacks Up.

How we built DocPro, our in-house document parser, in three weeks, and how it compares with Google, Azure, AWS and Reducto on real documents.

Akshaan Kakar

AI/ML Engineer

Dec 2, 2026

Nearly every workflow we build for our customers requires some form of document understanding. Construction permitting, for instance, requires us to read and understand complex multi-page schematics to verify their correctness. Insurance providers need to verify claimants’ identifying documents and insurance applications. There’s no shortage of managed solutions for these problems, but we’ve chosen to build our own: DocPro, Brain Co.'s in-house document understanding system.

Why Build

The primary drivers for our decision to build are quality and extensibility. No parser survives first contact with the long tail of new document types, including ours. But unlike opaque third party systems, ours is amenable to quick iteration. We’re constantly running evals on synthetic and human-annotated data to find our models’ blind spots, and running parallel AI-assisted experiments to address them. For construction permitting, we’ve achieved high quality table structure extraction from construction plans and drawings. Most off-the-shelf solutions we tried couldn't even detect those tables due to their density and irregularity.

In addition to better quality, we’ve found that good open source starting points and AI-assisted coding have eroded most of the time savings one would expect from an off-the-shelf product. In just three weeks of iteration, we’ve gone from using an open source document processor to our own tuned system, evaluation loop, and extensions. Owning the stack also lets us meet clients’ security, compliance, licensing, and on-premises deployment requirements much faster than we could through a vendor.

What We’ve Built

We started out using Docling as a simple open source baseline for DocPro. This provided the base data types and pipeline infrastructure for our core capabilities: page image rendering, orientation detection, OCR, layout parsing and table structure recognition. This baseline worked well on simple text documents but not on out-of-distribution data like permitting documents. We used our flexible evaluation harness and datasets to iterate on this baseline and tune each stage of the pipeline.

The current version of DocPro starts out by rendering page images from PDFs at a resolution we’ve chosen to be optimal for downstream visual tasks. Next, it uses a custom image-patch-based orientation correction so that all pages have horizontally oriented text before OCR.

Next, open-weight OCR models run on the rotated page images to segment and transcribe words. This gives us fast yet high quality results with a spatially matched character error rate just over 10%. In most cases, downstream consumers of this text are LLM agents, so they are robust to minor errors thanks to their own strong priors over language.

In parallel with OCR, the system runs a layout detection step. A vision-language model (VLM) call detects sections and tables on the page. This detection step can be steered using natural language prompts, allowing the caller to set the granularity and descriptions of text sections and tables. A zero-shot classifier assigns optional caller-defined labels to each detected section and table.

The tables detected in the layout stage along with the OCR results are fed into the table structure stage which finds row indexes, column indexes and bounding boxes for table cells. It also assigns OCR text to each detected cell. This stage uses either a heuristic-based algorithm or a second VLM call based on the table’s complexity and irregularity. The heuristic uses ruling and word alignment to find the table’s grid. The VLM call uses the original image along with the table’s bounding box to infer its cell structure.

It’s worth noting that the natural language steering, smart table routing, and zero-shot section classifier are net-new features not available in any of the off-the-shelf solutions we evaluated. These enhancements were crucial to getting high quality outputs and providing value to our users. For instance, natural language steering lets construction permitting customers parse list-like schematic legends as tables, making them easy to interpret and query downstream. They also rely on zero-shot classification to find indexes, abbreviation lists and stamps for domain-specific checks. Smart table routing lets customers get the optimal balance between table structure quality and detection speed.

Results

We measured our system against the most widely used solutions from top providers on 318 test documents that represent our customers’ use cases. We used standard metrics to evaluate text segmentation, transcription quality, table detection and table cell structure. We report zero-shot classification only for our system, since no other provider offers it. Our system outperforms other providers on text segmentation, transcription, and table detection metrics. Azure Document Intelligence is marginally better than our system on table structure detection, but that metric is calculated only on the tables each system detects. Our system detects far more tables than Azure (table F1 of 91.43% vs 59.79%). In terms of cost, our system is cheaper than all but one: more economical than AWS, Reducto, and Google and less than 10% more expensive than Azure. Given our quality gains over Azure, we think that trade-off pays for itself. That said, we’re always working to reduce costs. We recently ran an experiment to provide richer inputs to our VLM calls instead of just raw page images. This reduced the number of reasoning tokens the model used and cut the per-page cost in half on simple documents with regular structure.

MetricDocProGoogle Document AIReductoAzureAWS Textract
Balances precision and recall when locating text boxes. Two boxes match if their overlap covers at least 50% of the smaller box.72.44%45.13%40.17%37.71%39.68%
Measures character-level transcription errors after aligning text by page location.11.22%18.64%33.42%46.61%57.80%
Balances precision and recall when locating tables. A detected table matches the reference at an intersection over union (IoU) of 0.5 or higher.91.43%43.84%83.50%59.79%65.28%
Compares cell text after aligning detected and reference table grids. Only detected tables are scored.82.26%55.54%74.26%82.51%77.76%
Total cost to process a typical 1,000-page workload, including input costs.$10.98Layout Parser v1.0 + Enterprise Document OCR v2.1r-1 with OCR add-onPrebuilt LayoutTables + Layout
Measures how well the system locates text sections and tables and assigns user-provided labels. A match requires the correct label and an IoU of at least 0.5. F1 is averaged across labels.84.72%————
Metric: ↑ Higher is better. ↓ Lower is better.
OCR box F1
Text detection · Higher is better
DocPro
72.44%
Google Document AI
45.13%
Reducto
40.17%
Azure
37.71%
AWS Textract
39.68%
Text-box overlap threshold: 0.5
Spatial CER
Text transcription · Lower is better
DocPro
11.22%
Google Document AI
18.64%
Reducto
33.42%
Azure
46.61%
AWS Textract
57.80%
Character error rate after spatial alignment
Table F1
Table detection · Higher is better
DocPro
91.43%
Google Document AI
43.84%
Reducto
83.50%
Azure
59.79%
AWS Textract
65.28%
Table intersection over union threshold: 0.5
Table GriTS content
Cell content and structure · Higher is better
DocPro
82.26%
Google Document AI
55.54%
Reducto
74.26%
Azure
82.51%
AWS Textract
77.76%
Scored only on the tables each system detects
Cost per 1,000 pages
A typical workload, input included · Lower is better
DocPro
$10.98
Google Document AI
$11.50
Reducto
$12.00
Azure
$10.00
AWS Textract
$15.00
Zero-shot label F1
Custom classification · Higher is better
DocPro
84.72%
Google Document AI
Not reported
Reducto
Not reported
Azure
Not reported
AWS Textract
Not reported
The other systems don’t offer zero-shot labels
Measured on 318 test documents that represent our customers’ use cases.

What’s Next

We’re always thinking about how to expand our evaluation datasets so we can capture more real-world cases and measure progress against those. We’re investing in synthetic sources, human annotations and getting data directly from our customers when feasible.

We’re constantly experimenting with the latest in multimodal AI, System One models, and inference optimization to improve our system’s output quality and speed. We’re exploring fine-tuned open-weight models for more parts of the pipeline to get the best combination of cost, speed and quality.

Example Images

Join UsSee open roles

All posts