Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costs
Many documents carry their meaning in layout, tables and charts that text extraction loses. This guide compares parsing pipelines with ColPali-style page-image retrieval, works the MaxSim score and storage arithmetic in Python, and covers this year's move of ColPali into Sentence Transformers.
- Reading time
- 13 min
- Sections
- 6
- Code examples
- 2
- Tables
- 3
- Sources
- 8
- Published
- 24 Nov 2026
- What changed
- Sentence Transformers 6.0 makes ColPali-style models a first-class type
- Why it matters
- The choice between the routes depends on what your documents look like and what your questions ask.
- What to do
- Classify your documents
Most enterprise knowledge is not plain text. It lives in PDFs with two-column layouts, scanned forms, slide decks, spreadsheets pasted as images, financial tables and charts. A text-only retrieval-augmented generation (RAG) pipeline first converts all of that to text, and much of the meaning falls out on the way: table rows lose their headers, chart values vanish, and footnotes merge into body text.
Multimodal RAG keeps the visual information in play. There are two broad routes. The first parses documents into structured text, tables and image descriptions before indexing. The second, made popular by the ColPali paper in 2024, skips parsing and embeds each page as an image, then retrieves pages directly against text questions. This year both routes moved: ColPali-style models became a first-class model type in Sentence Transformers, the original colpali-engine package now recommends that library for new projects, and Docling kept extending its parsing pipeline. This article explains both approaches, works through late-interaction scoring and storage costs in runnable Python, and gives a decision guide.
An analogy: the parsing route is retyping every document before filing it, which is precise but loses whatever the typist could not transcribe. The page-image route is photographing every page and teaching the search engine to read photographs, which keeps everything but makes the filing cabinet much larger.
What happened
Sentence Transformers 6.0 makes ColPali-style models a first-class type (18 August 2026)
Sentence Transformers 6.0.0 was released on PyPI on 18 August 2026, and 6.3.0 followed on 11 November. The ColPali repository README states that v6 "introduces first-class support for ColPali-style models through MultiVectorEncoder", developed with help from the ColPali and ViDoRe teams. Loading a model such as vidore/colqwen2.5-v0.2 now takes one line, queries and page images are encoded with encode_query and encode_document, and similarity computes late-interaction scores. The README also maps the old API to the new one, including HierarchicalTokenPooling for reducing the number of vectors per page.
colpali-engine 0.3.18 is the last release before deprecation (22 August 2026)
The current ColPali README carries a notice that colpali-engine "is now deprecated", that the repository and package remain available "for research, reproducibility, and existing projects", and that Sentence Transformers is recommended "for new projects and production use". The last PyPI release, 0.3.18 on 22 August 2026, added an optional [plaid] extra for faster matching on larger corpora and fixed a checkpoint conversion bug that had silently re-initialised some ColQwen2 weights under Transformers v5. Projects pinned to colpali-engine should plan a migration.
Docling 2.152.0 extends parsing and media handling (23 November 2026)
On the parsing side, Docling released v2.152.0 on 23 November 2026. The changelog adds native MLX support for the Nemotron 3.5 Parse vision-language parser, turns audio and video transcripts and slide media into tracks, reads heading keyword markers in other languages, and fixes the separation of words beside tall table cells and right-to-left text runs. Each of these affects what text, structure and media a parse-first pipeline can hand to its index.
Two routes to multimodal retrieval
Route 1: parse, then embed text
A parse-first pipeline converts each document into elements: paragraphs with their heading path, tables as Markdown or HTML, images with captions or model-written descriptions. Each element is chunked and embedded with a text embedding model. Tools such as Docling combine layout analysis, table structure recognition and optional vision-language parsers to do this.
The strengths are precision and compatibility: tables become searchable cells, the index uses ordinary text embeddings and vector databases, and the generator receives clean text. The weakness is that every parsing error is permanent, and some content, such as a chart's trend or a diagram's arrows, has no faithful text form unless a vision model describes it.
Route 2: embed page images with late interaction
ColPali (Faysse and colleagues, arXiv 2407.01449) feeds each page image to a vision-language model. The README describes the method: "By feeding the ViT output patches from PaliGemma-3B to a linear projection, we create a multi-vector representation of documents", trained so that page embeddings match query embeddings "following the ColBERT method". Each page becomes hundreds of small vectors, one per image patch; each query becomes one vector per token.
Scoring uses late interaction, called MaxSim: for each query token, find its most similar page patch, then add up those maxima.
score(q, page) = Σ over query tokens i of max over patches j of (q_i · p_j)
This lets the word "outlay" in a query match the patch where that word appears in a table header, and "highest" match the tallest bar in a chart region, without any OCR. The README puts the benefit plainly: it removes "the need for potentially complex and brittle layout recognition and OCR pipelines". The design builds on ColBERT, and the image side relies on vision transformers that split pages into patches.
A middle route: describe images, then embed the descriptions
A third option sits between the two. Keep the parse-first pipeline for text and tables, but send each figure, chart or photo to a vision-language model and ask for a factual description: what the chart shows, its axes, its main values and trend. The description is embedded like any other chunk and linked to the original image. This costs one vision-model call per image at indexing time, keeps storage at text-vector levels, and lets a single text index answer many visual questions. Its weakness is the same as any summary: whatever the description leaves out cannot be retrieved later. For natural photos rather than documents, a joint image-text embedding model in the CLIP family can embed images and text queries into one space directly, without descriptions.
Audio and video follow the same logic. Transcripts become text chunks with timestamps, and key frames or slides can be described or embedded as images. Docling's latest release, which turns transcripts and slide media into tracks, is an example of parsers absorbing these formats into one document model.
Model quality on ViDoRe
The ColPali README lists ViDoRe benchmark scores for the model family. A selection:
| Model | Backbone (from the README) | ViDoRe score | Licence |
|---|---|---|---|
| vidore/colpali (paper checkpoint) | PaliGemma-3B mix 448 | 81.3 | Gemma |
| vidore/colpali-v1.3 | PaliGemma-3B mix 448 | 84.8 | Gemma |
| vidore/colqwen2-v1.0 | Qwen2-VL-2B-Instruct | 89.3 | Apache 2.0 |
| vidore/colqwen2.5-v0.2 | Qwen2.5-VL-3B-Instruct | 89.4 | Apache 2.0 |
| TomoroAI/tomoro-colqwen3-embed-4b | Qwen3-VL | 90.6 | Apache 2.0 |
| athrael-soju/colqwen3.5-4.5B-v3 | Qwen3.5-4B | 90.9 | Apache 2.0 |
| vidore/colSmol-256M | SmolVLM-256M-Instruct | 80.1 | Apache 2.0 |
Two patterns stand out. Newer backbones have lifted scores by roughly nine points over the paper checkpoint. And the small 256M-parameter model scores close to the original 3B ColPali, which matters when you must embed millions of pages. Note that scores are on ViDoRe's public tasks, which may not resemble your documents.
Late interaction in code, and what it costs
The first part of the script implements MaxSim with NumPy on synthetic vectors: three pages of 768 patch vectors, 128 dimensions each, and a 12-token query whose content appears on page 2. The second part computes storage.
import numpy as np
def maxsim(q, d):
"""q: (query_tokens, dim), d: (patches, dim), rows L2-normalised."""
return (q @ d.T).max(axis=1).sum()
rng = np.random.default_rng(0)
norm = lambda x: x / np.linalg.norm(x, axis=-1, keepdims=True)
dim, n_patches = 128, 768
pages = [norm(rng.normal(size=(n_patches, dim))) for _ in range(3)]
query = norm(rng.normal(size=(12, dim)))
pages[2][:12] = norm(query + 0.05 * rng.normal(size=query.shape)) # answer region
print([round(float(maxsim(query, p)), 2) for p in pages])
for name, n, d in [("single 1024-d text vector (fp32)", 1, 1024),
("768 patches x 128 dims", 768, 128),
("768 patches x 320 dims", 768, 320),
("768 x 128 after pooling by 3", 256, 128)]:
b = n * d * (4 if n == 1 else 2) # multi-vector stored as bfloat16
print(f"{name}: {b/1024:.1f} KB/page, {b*1e6/1e9:.1f} GB per 1M pages")
The MaxSim scores are 3.23, 3.46 and 10.44: the page holding the matching region scores about three times higher, because each of the 12 query tokens finds a near-identical patch there, while on the other pages each token's best match is only weakly similar.
The storage results are the real lesson:
| Representation | Per page | Per million pages |
|---|---|---|
| One 1,024-dimension text vector, float32 | 4.0 KB | 4.1 GB |
| 768 patches × 128 dimensions, bfloat16 (ColQwen2-style training resolution) | 192.0 KB | 196.6 GB |
| 768 patches × 320 dimensions, bfloat16 (as in the 320-dim models above) | 480.0 KB | 491.5 GB |
| 768 × 128 after pooling patches by a factor of 3 | 64.0 KB | 65.5 GB |
Page-image retrieval costs about 48 times the storage of a single text vector per page at 128 dimensions, and 120 times at 320 dimensions. Scoring is heavier too: MaxSim compares every query token with every patch. Three techniques make it practical. Token pooling, such as the HierarchicalTokenPooling the README lists, merges similar patches; pooling by 3 cuts storage to a third. Two-stage search uses a cheap first pass, such as one pooled vector per page or a PLAID-style centroid index (the [plaid] extra in colpali-engine 0.3.18), then runs full MaxSim on a short list. Engines with multi-vector support, such as Vespa and Qdrant, store and score these vectors natively.
Continue learning
How this article connects
8 pages link to or from it. Drag to turn, click a dot to open it.
What it means in practice
The choice between the routes depends on what your documents look like and what your questions ask.
| Situation | Better route | Why |
|---|---|---|
| Born-digital reports, mostly prose | Parse first | Text extraction is clean; storage is small |
| Scanned forms, slides, infographics | Page images | OCR and layout parsing are brittle here |
| Questions about exact table cells | Parse first, or both | Generators need cell text to quote numbers |
| Questions about charts and visual layout | Page images | No faithful text form exists |
| Tens of millions of pages, tight budget | Parse first, or pooled page vectors | Multi-vector storage grows fast |
Many production systems combine the two: retrieve pages with a ColPali-style model, then pass the page image to a vision-language model for answering, or parse only the retrieved pages for exact text. Retrieval by image and generation from image avoid OCR entirely; generation from parsed text gives quotable numbers. The site's multimodal models page covers the generator side.
The move into Sentence Transformers matters operationally. Visual document retrieval now uses the same loading, encoding, similarity and training API as text embeddings and rerankers, which lowers the cost of trying it alongside a text pipeline and removes a niche dependency. Teams on colpali-engine should migrate deliberately: the README's mapping table shows the equivalent calls, and the 0.3.18 fix for silently dropped ColQwen2 weights is a reminder to re-run evaluations after any conversion.
What to do now
- Classify your documents. Estimate the share that is scanned, slide-like or table-heavy; that share decides how much page-image retrieval can help.
- Build a visual question set. Include questions about tables, charts and layout, not just prose, with the page that answers each one.
- Run both routes on a sample. Compare recall@5 by page for a parse-first text pipeline and a ColPali-style model on the same questions.
- Start new ColPali work in Sentence Transformers. Use
MultiVectorEncoderrather than the deprecatedcolpali-enginepackage. - Price storage before scaling. Multiply patches by dimension by bytes per number by pages, as in the table above, and test pooling.
- Use a two-stage search. Shortlist pages cheaply, then score the shortlist with full MaxSim.
- Keep tables quotable. If users need exact numbers, parse tables on retrieved pages or let a vision-language model read the page image at answer time.
- Re-run evaluations after upgrades. Parser releases and model conversions change what reaches the index; check recall after each one.
Risks and open questions
Storage and compute scale quickly. Hundreds of vectors per page mean hundreds of times the storage of text embeddings. Pooling and two-stage search help but trade away some accuracy.
Benchmarks are narrow. ViDoRe covers specific document types and languages. Scores in the high 80s do not guarantee similar results on your forms or engineering drawings.
Answer generation still needs the content. Retrieving the right page image is half the job. The generator must read it accurately, which depends on the vision-language model and page resolution.
Licences differ. The original ColPali checkpoints use the Gemma licence, while ColQwen models listed in the README use Apache 2.0. Check before commercial use.
Parsing errors are silent. In the parse-first route, a merged table column or dropped footnote looks like normal text and is hard to detect without visual checks.
Watch next: whether pooled or compressed multi-vector formats bring page-image storage close to text-vector levels, and how vision-language parsers such as those Docling now supports change the balance between the two routes.
Frequently asked questions
What is multimodal RAG?
Multimodal RAG retrieves and uses information from more than text: tables, images, charts, scanned pages, slides and sometimes audio or video. It either converts those into searchable text first or embeds them directly, for example as page images, so questions can match visual content.
What is ColPali?
ColPali is a retrieval model that embeds each document page image as many patch vectors using a vision-language model and scores them against query tokens with ColBERT-style late interaction. It retrieves pages without OCR or layout parsing.
Is colpali-engine still supported?
Its README now marks the package as deprecated and recommends Sentence Transformers v6 and its MultiVectorEncoder for new projects and production use. The package remains available for research, reproducibility and existing projects.
How much storage does ColPali-style retrieval need?
At 768 patches of 128 dimensions in bfloat16, about 192 KB per page, or roughly 197 GB per million pages, versus about 4 GB for one 1,024-dimension float32 text vector per page. Pooling patches by a factor of three cuts it to about 66 GB.
Should I parse PDFs or embed page images?
Parse when documents are born-digital prose and you need exact text and numbers. Embed page images when documents are scanned, visual or layout-heavy. Many teams use page images to retrieve and parsing or a vision-language model to answer.
Summary
Multimodal RAG keeps tables, charts and layout available to retrieval. The parse-first route converts documents into structured text with tools such as Docling, whose 2.152.0 release this week extends parsing and media handling. The page-image route, led by ColPali, embeds each page as patch vectors and scores them with MaxSim, which in the worked example ranked the matching page about three times higher than the others. Quality has risen, with ViDoRe scores from 81.3 for the paper checkpoint to around 90 for newer ColQwen models, but storage is the catch: about 197 GB per million pages at 128 dimensions before pooling. With ColPali-style models now in Sentence Transformers and colpali-engine deprecated, the practical path is to evaluate both routes on your own documents, migrate to the maintained API and budget storage early.
Sources
- Code GitHub: ColPali README
- Code GitHub: ColPali changelog
- Paper arXiv: ColPali: Efficient Document Retrieval with Vision Language Models (Faysse et al.)
- Code PyPI: colpali-engine release history
- Code PyPI: sentence-transformers release history
- Code GitHub: Sentence Transformers README
- Code GitHub: Docling changelog
- Paper arXiv: ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT (Khattab and Zaharia)
Cite this article
Kelahmet, Ö. C. (2026, November 24). Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costs. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/multimodal-rag-colpali-pdfs-tables-images
BibTeX
@online{kelahmet2026multimodal,
author = {Kelahmet, {\"O}zer Cem},
title = {{Multimodal RAG explained: ColPali page retrieval, PDF parsing, tables and storage costs}},
year = {2026},
month = {nov},
url = {https://www.ozercemkelahmet.com/articles/multimodal-rag-colpali-pdfs-tables-images}
}Version historyfirst version
- Published
Factual corrections are listed here with what changed. Wording and formatting edits are not listed.