---
title: Your corpus is 2 million pages of scanned reports full of charts and tables. Compare an OCR-and-chunk text pipeline…
url: https://gurkanozkan.ai/learn/questions/recent-b-rag-03/
markdown: https://gurkanozkan.ai/learn/questions/recent-b-rag-03.md
kind: question
role: ML engineering
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/recent-b-rag-03.json
robots: noindex
---

# Your corpus is 2 million pages of scanned reports full of charts and tables. Compare an OCR-and-chunk text pipeline with retrieving page images using a ColPali-style vision-language retriever: quality, index size, latency and how you would evaluate the choice.

ML engineering · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- OCR/chunking loses table structure, charts with no text, and layout-dependent meaning, so retrieval and answers degrade on exactly the pages that matter.
- ColPali-style retrieval embeds each page as many patch-level vectors and scores with late interaction, no OCR step, and is end-to-end trainable.
- Storage: ~1,030 x 128-dim fp16 vectors = 257.5 KiB per page, ~527 GB for 2M pages vs ~16 GB for an assumed 4 chunks/page text index; mitigate with pooling (~176 GB at factor 3), quantisation (~33 GB binary) and a cheap first-stage retriever before late-interaction rescoring.
- ViDoRe V3 (2026): visual retrievers ahead of text-only, late interaction and reranking help, but fine-grained visual grounding remains weak; still require an in-domain eval.
- Evaluate with graded page-level relevance, answer quality from visual vs text vs hybrid context, and citation/bounding-box grounding.

### In full

For 2M scanned pages, I would not treat OCR-and-chunk as the default: it flattens tables into ambiguous text, misses charts that carry no text, and destroys layout-dependent meaning, so both retrieval and downstream answers suffer on exactly the pages that matter. A ColPali-style approach embeds each page as many patch-level vectors and scores with late interaction, with no OCR step and end-to-end trainability, which preserves visual evidence but costs many vectors per page instead of one per chunk. Storage and latency are the real trade-off. The ColPali paper reports about 257.5 KB per page in float16 (one 128-dimensional vector per image patch plus a few text tokens, about 1,030 vectors); for the text pipeline I assume, for illustration, four chunks per page with 1,024-dimensional float16 embeddings:

```calc
ColPali: 1,030 vectors x 128 dims x 2 bytes = 263,680 bytes = 257.5 KiB per page
         263,680 bytes x 2,000,000 pages = 527.4e9 bytes = ~527 GB
pooling by 3 (66.7% fewer vectors): 527.4 / 3 = ~176 GB
binary (1 bit per dim = 16 bytes per vector): 1,030 x 16 x 2,000,000 = 33.0e9 bytes = ~33 GB
text: 4 chunks x 1,024 dims x 2 bytes = 8,192 bytes per page; x 2,000,000 = ~16 GB
```

So I would mitigate with token pooling, quantisation, and a cheap first-stage retriever before late-interaction rescoring rather than brute-force scoring every page. Benchmark evidence such as ViDoRe V3 (2026) is encouraging: visual retrievers beat text-only ones, and late interaction and reranking help substantially, but fine-grained visual grounding remains weak, so I would not trust it without an in-domain eval. My evaluation would use graded page-level relevance, answer quality from visual vs text vs hybrid context, and a check of citation or bounding-box grounding, and I would choose the pipeline that wins on those in-domain metrics at an acceptable index size and query latency, rather than on the benchmark alone.

*Corrected by an independent AI reviewer.*

## What a strong answer covers

- Explains the failure modes of OCR and chunking on visual documents: lost table structure, charts with no text, layout-dependent meaning.
- Describes page-image retrieval: multi-vector embeddings per page with late interaction scoring, no OCR step, end-to-end trainable.
- Estimates storage: many vectors per page versus one per chunk, and mitigations such as pooling, quantisation and a cheap first-stage retriever before late-interaction rescoring.
- Cites benchmark evidence (ViDoRe V3: visual retrievers ahead of text-only, late interaction and reranking help, visual grounding still weak) while insisting on an in-domain eval.
- Plans evaluation with graded page-level relevance, answer quality from visual versus text versus hybrid context, and a check of citation or bounding-box grounding.

## Common mistakes

- Ignoring the storage and latency cost of multi-vector page indexes at millions of pages.

## Follow-ups

- How would you combine both pipelines in one hybrid retriever?

## Topic guides

- [Data pipelines for ML and LLM systems](https://gurkanozkan.ai/learn/topics/data-pipeline.md)
- [Retrieval-augmented generation](https://gurkanozkan.ai/learn/topics/rag.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
