Design multimodal RAG over 50k PDFs full of tables, charts, and diagrams. Where does ColPali-style retrieval fit?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Three architectures, in ascending fidelity:
- Parse-to-text RAG: extract text, chunk, embed, retrieve. Fails the premise - charts and diagrams vanish, tables mangle. Baseline only.
- Caption-and-embed: at ingestion, a VLM writes a dense description of every figure, chart, and table; descriptions are embedded alongside body text (tables often dual-indexed as markdown + description). At answer time, retrieve descriptions but hand the original image to the VLM for generation - the caption is a retrieval key, not the evidence. This is the pragmatic production default: works with any text-retrieval stack, cheap at query time. Its ceiling: retrieval quality is capped by caption quality - whatever the captioner didn't mention is unfindable.
- Screenshot-based retrieval (ColPali): skip parsing entirely. A VLM (PaliGemma in the original paper, Qwen-VL backbones in the ColQwen successors) encodes each page image into ~1k patch-level embeddings; queries encode into token-level embeddings; scoring is ColBERT-style late interaction - for each query token, take the max similarity over the page's patch vectors, and sum. Because matching happens at patch granularity, a query about "the latency graph" can match the actual chart region without anyone having described it. On visually-rich document benchmarks (ViDoRe) this beats OCR-based pipelines significantly. Costs: multi-vector storage (~1k vectors per page, and 50k PDFs can easily mean a million pages - mitigated by pooling and binary quantization, but real), ingestion GPU time, and answer-time cost since retrieved evidence is page images the generator VLM must read (~1-2k tokens per page).
Full worked answer with diagram
Three architectures, in ascending fidelity:
- Parse-to-text RAG: extract text, chunk, embed, retrieve. Fails the premise - charts and diagrams vanish, tables mangle. Baseline only.
- Caption-and-embed: at ingestion, a VLM writes a dense description of every figure, chart, and table; descriptions are embedded alongside body text (tables often dual-indexed as markdown + description). At answer time, retrieve descriptions but hand the original image to the VLM for generation - the caption is a retrieval key, not the evidence. This is the pragmatic production default: works with any text-retrieval stack, cheap at query time. Its ceiling: retrieval quality is capped by caption quality - whatever the captioner didn't mention is unfindable.
- Screenshot-based retrieval (ColPali): skip parsing entirely. A VLM (PaliGemma in the original paper, Qwen-VL backbones in the ColQwen successors) encodes each page image into ~1k patch-level embeddings; queries encode into token-level embeddings; scoring is ColBERT-style late interaction - for each query token, take the max similarity over the page's patch vectors, and sum. Because matching happens at patch granularity, a query about "the latency graph" can match the actual chart region without anyone having described it. On visually-rich document benchmarks (ViDoRe) this beats OCR-based pipelines significantly. Costs: multi-vector storage (~1k vectors per page, and 50k PDFs can easily mean a million pages - mitigated by pooling and binary quantization, but real), ingestion GPU time, and answer-time cost since retrieved evidence is page images the generator VLM must read (~1-2k tokens per page).
My design for 50k PDFs: hybrid. Text-chunk retrieval and ColPali-style page retrieval run in parallel, fused (RRF), with retrieved pages rendered to the VLM as images alongside top text chunks. Cite page numbers with thumbnail provenance. Evaluate retrieval (recall@k on a labelled query set, checking specifically that figure-dependent questions retrieve the right pages) separately from generation faithfulness.
Worth sketching. The parallel legs make the point that ColPali is a retrieval path, not a replacement for the text stack, and that the generator still reads page images.
flowchart TD
A["50k PDFs"] --> B["Parsed text chunks,<br/>embedded"]
A --> C["Page images,<br/>~1k patch vectors each"]
D["User query"] --> B
D --> C
B --> E["Fuse ranked lists, RRF"]
C --> E
E --> F["Top page images plus<br/>top text chunks"]
F --> G["Generator VLM,<br/>cites page numbers"]
What a good answer covers
- Parse-to-text RAG: extract text, chunk, embed, retrieve
- Caption-and-embed: at ingestion, a VLM writes a dense description of every figure, chart, and table;…
- Screenshot-based retrieval (ColPali): skip parsing entirely
- Text-chunk retrieval and ColPali-style page retrieval run in parallel, fused (RRF), with retrieved pages…
- Cite page numbers with thumbnail provenance
Key terms: Parse-to-text RAG · Caption-and-embed · Screenshot-based retrieval (ColPali) · page image · late interaction · multi-vector storage
In the glossary: VLM · ColPali · ColBERT / late interaction · RRF · Recall@k · Faithfulness
Interviewer follow-ups to expect
How do you keep multi-vector storage from exploding at 5M pages?
When is caption-and-embed strictly better than ColPali?
How do you evaluate whether chart-dependent questions are actually being answered from the chart?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep