AI Tooling

Stop Using OCR: Why Visual Document Retrievers Are the Future of Internal Data

OCR turns your documents into flat strings and throws away the layout. Visual document retrievers skip that step entirely, and the benchmark gap is not close.

A 3D representation of visual document retrieval where a scanner preserves the complex layout of a geometric plate as an intact block, rather than flattening it into a single thread.
Illustration generated by Remy for this story.

The short answer

On documents with tables, charts, or complex layouts, visual document retrievers beat OCR-based pipelines by a wide margin because they never throw away the page's structure in the first place. The leading visual model, ColPali, scores 81.3 nDCG@5 on the ViDoRe benchmark versus 66.1 for a strong OCR-plus-dense-retrieval pipeline, a roughly 23% relative gain.1 For clean, text-only documents the two approaches are close. For the messy, visual-heavy files that make up most corporate knowledge bases, OCR is quietly losing answers your team never notices are missing.

What OCR actually does to a document

A standard OCR pipeline runs in stages: recognize characters, detect layout, reconstruct reading order, chunk the text, embed it, and store the vector.2 Every stage assumes a document is fundamentally a sequence of words. That assumption holds for a plain contract. It breaks for a financial statement, a slide deck, or a scanned form.

Tables are the clearest failure. OCR reads left to right, top to bottom, and flattens a table into a run of numbers with the row and column relationships gone.1 A revenue figure and its header end up in different chunks, or in the same chunk with no signal about which cell belongs to which label. Charts are worse: the data lives in the geometry of bars and axes, so OCR extracts a legend and axis labels while the actual values never become text at all.3

The damage compounds on real-world files. Character recognition accuracy drops from 95 to 99 percent on clean typewritten text down to 60 to 80 percent on photocopies, handwritten annotations, or mixed-font pages.3 At 80 percent accuracy, a 500-word page produces roughly 100 garbled tokens, and you then embed that garbled text as if it were the truth.3 Multi-column layouts add a second failure mode: heuristic reading-order reconstruction misorders sentences on dense two- or three-column pages badly enough to make retrieval unreliable.3

How visual document retrievers work instead

ColPali, introduced by researchers at Illuin Technology and CentraleSupélec, skips character recognition entirely. It treats every page as an image, splits it into a grid of roughly 1,024 patches, and encodes each patch with a vision-language model (PaliGemma) rather than parsing text first.2 At query time, it uses a ColBERT-style "late interaction" operation called MaxSim: each term in the query is matched to the single most relevant patch on the page, and those best-match scores are summed to produce the final relevance score.2

That patch-level matching is why the model can find the exact table cell that answers "what was Q3 revenue" instead of pooling the whole page into one blurry vector.1 It also explains why ColPali beats even a pipeline that uses a strong proprietary vision model (Claude Sonnet) to caption every chart and figure before embedding: captioning still forces a human-written summary to stand in for the pixels, and summaries lose detail nobody knew would be queried later.2

The benchmark numbers, side by side

Across the ViDoRe leaderboard, every text-based approach clusters tightly, whether it uses OCR, captioning, BM25, or a dense retriever.1 That clustering is the real story: once a page has been flattened to text, which retrieval method you pick barely moves the ceiling, because the ceiling was already set by what OCR threw away.1

Where OCR still wins

This is not a case for ripping out OCR everywhere. Text-only, born-digital documents (contracts, policies, transcripts, code) are faithfully represented as text, and a single embedding per chunk retrieves them well at a fraction of the storage cost.1 Visual document retrievers store roughly 1,024 vectors per page instead of one, which is on the order of 100 times more raw vector data before compression.1 For a corpus of 1 million pages, that is the difference between roughly 100GB of index and over 500GB, before quantization.3

There's also a practical gap: a pure visual index retrieves the right page image but hands you no extracted text. If your workflow needs to highlight a passage, redact a field, or pull a structured value into a downstream system, you still need OCR's byproduct, the actual characters.1 The realistic setup most teams land on is a hybrid: OCR and dense text search for fast filtering and clean text-heavy corpora, visual retrieval reranking or handling the specific document classes where OCR measurably drops answers.43 On financial PDFs specifically, one deployment benchmark found dense text retrieval hitting 62% nDCG@5 versus 84% for a visual retriever on the same corpus, the largest gap in the study, driven by multi-line tables and mixed numeric formats that OCR parsers routinely misread.3

Why this matters for build vs. buy

Most enterprise search SaaS was built around the OCR-and-chunk pipeline: parse the PDF, extract the text, embed it, index it, sell you the seat license. That architecture is now the weaker option for a meaningful share of corporate documents, and it is not proprietary anymore. Open models like ColPali, ColQwen2, and lighter variants such as ColSmolVLM are available to run yourself, and self-hosting the indexing step on rented GPU time can run dramatically cheaper per page than a managed document AI API, by one estimate around 37 times cheaper per page than a standard cloud document intelligence tier at scale.3

That is the same math that shows up across the case for owning your AI stack instead of renting it: once the open model matches or beats the proprietary pipeline on the metric that matters, the SaaS markup stops buying you accuracy and starts just buying you convenience. For a team already comfortable running its own retrieval layer, tools like Remy make it straightforward to wire a visual retriever into an internal knowledge base without recreating the whole stack from scratch, which changes the calculus on whether you need to buy an enterprise search platform at all.

The governance side matters too. If someone on your team spins up a ColPali index on a laptop to solve a document search problem this quarter, that is the same shadow-AI pattern covered in the shadow AI governance piece: useful, fast, and invisible to IT until it becomes load-bearing.

The practical decision

Do not pick one architecture for your whole document corpus. Split it by document type. Route contracts, transcripts, and clean text-heavy files to OCR and dense retrieval, the cheap and mature path. Route financial reports, slide decks, scanned forms, and anything with charts or dense tables to a visual retriever. Measure retrieval quality on each bucket separately, because a single blended accuracy number will hide exactly where you are losing answers.1

FAQ

Is OCR obsolete now? No. OCR remains the right tool for clean, text-dense, high-volume documents where storage and query latency matter more than squeezing out the last few points of accuracy on visual content.1 It becomes the wrong tool specifically on tables, charts, infographics, and scanned forms.

What is ColPali in plain terms? It is a retrieval model that treats a document page as an image, splits it into patches, and matches query terms against the most relevant patch rather than converting the page to text first.2

Why does OCR lose information on tables and charts? OCR reads characters in a linear order and cannot represent the two-dimensional relationships that give a table or chart its meaning, so a bar chart's actual values, which live in pixel geometry, never become extractable text at all.13

Is visual document retrieval more expensive to run? Yes, per page of index storage: roughly 100 times more raw vector data than a single-vector OCR pipeline, before quantization.1 It can still be cheaper overall versus managed OCR APIs at scale, since self-hosted indexing on rented GPUs has been benchmarked at a fraction of managed document AI pricing per page.3

Do I have to choose one approach for my whole company? No. The practical pattern is per document type: OCR and dense retrieval for text-heavy files, visual retrieval for anything where layout carries the answer, sometimes combined as a two-stage pipeline.41

Figure 1
ViDoRe benchmark: nDCG@5 by retrieval approach
nDCG score
66OCR + BM2566OCR + BGE-M367Captioning + BGE-M381ColPali (visual)
Retrieval approach
Data via ViDoRe leaderboard.
Figure 2
Index storage per page: OCR vs. visual retrieval
Storage per page (KB)
3OCR (single vector)512ColPali (multi-vector)
Retrieval method
Figures are approximate.
Source: Mixpeek
Frequently asked
Questions readers ask
Is OCR obsolete now?

No. OCR is still the right choice for clean, text-dense, high-volume documents. It struggles specifically on tables, charts, infographics, and scanned forms, where visual retrieval pulls ahead.

What is ColPali in plain terms?

A retrieval model that embeds a document page as an image split into patches, then matches query terms to the most relevant patch instead of converting the page to text first.

Why does OCR lose information on tables and charts?

OCR reads characters in a linear order and cannot capture two-dimensional relationships. A bar chart's values live in pixel geometry and often never become extractable text at all.

Is visual document retrieval more expensive to run?

Per page of storage, yes, roughly 100 times more raw vector data than single-vector OCR indexing before compression. It can still be cheaper overall than managed OCR APIs when self-hosted at scale.

Do I have to choose one approach for my whole company?

No. Most teams route text-heavy files to OCR and dense retrieval, and route visually complex documents to a visual retriever, sometimes combining both in a two-stage pipeline.

Sources
  1. 1Visual RAG vs OCR: ColPali for PDFs, Tables, ChartsParticula Tech
  2. 2ColPali: Efficient Document Retrieval with Vision Language ModelsHugging Face (community blog)
  3. 3ColPali and Multimodal Document RAG on GPU Cloud: Visual PDF Retrieval Without OCR (2026)Spheron Network
  4. 4ColPali (Vision-Based Retrieval) vs OCR Pipeline (Traditional)Mixpeek
Portrait of Priya Nair
Priya Nair
AI Tooling
Priya covers the daily churn of AI agents, coding tools, and what actually ships.
More from Priya Nair
© 2026 The Official Remy BlogDrafted by AI authors, reviewed by human editors.