Skip to content
Artwork for LLM.co
LLM.co · Wednesday · 5 min

Open-Source OCR Showdown: dots.ocr, LightOnOCR, and Vision LLMs for Private RAG

Choosing an OCR front end for a private document pipeline is rarely about which model reads characters most accurately — it's about which one preserves the structural logic of the page. This episode of LLM.co digs into the current generation of open-weight document parsers and benchmarks them against the layout-aware criteria that actually determine RAG quality. The full analysis behind the episode is covered in this open-source OCR comparison on the LLM.co blog. The episode walks through the OmniDocBench 1.5 leaderboard and what it reveals about four contenders — dots.ocr, LightOnOCR-2-1B, olmOCR 2, and general-purpose vision LLMs — across several dimensions that text-only benchmarks miss entirely: Why reading-order matters most: A model can score well on character accuracy while silently destroying the reading order of a two-column document — a failure mode that produces confident but nonsensical RAG answers. dots.ocr (1.7B, MIT license): Handles layout detection, text recognition, formula parsing, and table extraction in a single forward pass, collapsing what was typically a four-model ingestion chain into one — the recommended default for multilingual or complex-layout corpora. LightOnOCR-2-1B (Apache 2.0): Optimized for throughput at 3.3 pages per second on a single H100 — and viable on L40S and A6000 hardware — making it the right design target when the primary constraint is a large ingestion backlog of mostly English documents. olmOCR 2: Built on a Qwen2.5-VL 7B base and trained with verifiable rewards via Group Relative Policy Optimization, it closes most of the benchmark gap with purpose-built parsers — though its 7B footprint means it needs a dedicated GPU in production. General-purpose vision LLMs: Qwen2.5-VL, InternVL, and Llama 3.2 Vision score respectably overall but show meaningful drops in table structure and reading-order accuracy, reflecting that they were never purpose-built for document parsing. The hosted-vs-on-prem cost trap: Hosted alternatives like Mistral OCR offer competitive per-page pricing, but for regulated workloads the compliance cost of a third-party processor eliminates that apparent economy — the reason purpose-built private multi-document RAG pipelines remain the architecture of record for sensitive document corpora. The episode also lays out two practical GPU topologies — one for a single business unit running a compact LLM appliance, one for an enterprise routing complex layouts through a secondary model selected by a layout classifier — and closes with a forward look at verifiable reward training spreading from olmOCR 2 into the dots.ocr and LightOnOCR lineages over the next year. For more on the hardware side of private LLM deployments, see the related episode Beyond NVIDIA: Which GPU Alternatives Are Actually Ready for On-Prem LLMs. LLM.co hardware.co

0:00-5:36

transcript

No transcript — this publisher did not publish one.

show notes

Choosing an OCR front end for a private document pipeline is rarely about which model reads characters most accurately — it's about which one preserves the structural logic of the page. This episode of LLM.co digs into the current generation of open-weight document parsers and benchmarks them against the layout-aware criteria that actually determine RAG quality. The full analysis behind the episode is covered in this open-source OCR comparison on the LLM.co blog.

The episode walks through the OmniDocBench 1.5 leaderboard and what it reveals about four contenders — dots.ocr, LightOnOCR-2-1B, olmOCR 2, and general-purpose vision LLMs — across several dimensions that text-only benchmarks miss entirely:

  • Why reading-order matters most: A model can score well on character accuracy while silently destroying the reading order of a two-column document — a failure mode that produces confident but nonsensical RAG answers.
  • dots.ocr (1.7B, MIT license): Handles layout detection, text recognition, formula parsing, and table extraction in a single forward pass, collapsing what was typically a four-model ingestion chain into one — the recommended default for multilingual or complex-layout corpora.
  • LightOnOCR-2-1B (Apache 2.0): Optimized for throughput at 3.3 pages per second on a single H100 — and viable on L40S and A6000 hardware — making it the right design target when the primary constraint is a large ingestion backlog of mostly English documents.
  • olmOCR 2: Built on a Qwen2.5-VL 7B base and trained with verifiable rewards via Group Relative Policy Optimization, it closes most of the benchmark gap with purpose-built parsers — though its 7B footprint means it needs a dedicated GPU in production.
  • General-purpose vision LLMs: Qwen2.5-VL, InternVL, and Llama 3.2 Vision score respectably overall but show meaningful drops in table structure and reading-order accuracy, reflecting that they were never purpose-built for document parsing.
  • The hosted-vs-on-prem cost trap: Hosted alternatives like Mistral OCR offer competitive per-page pricing, but for regulated workloads the compliance cost of a third-party processor eliminates that apparent economy — the reason purpose-built private multi-document RAG pipelines remain the architecture of record for sensitive document corpora.

The episode also lays out two practical GPU topologies — one for a single business unit running a compact LLM appliance, one for an enterprise routing complex layouts through a secondary model selected by a layout classifier — and closes with a forward look at verifiable reward training spreading from olmOCR 2 into the dots.ocr and LightOnOCR lineages over the next year. For more on the hardware side of private LLM deployments, see the related episode Beyond NVIDIA: Which GPU Alternatives Are Actually Ready for On-Prem LLMs.

LLM.co

hardware.co

links6