Multimodal RAG: Indexing PDFs That Mix Text, Charts and Images
Multimodal RAG indexes the charts and images inside PDFs, not just the text. Compare image summaries, embeddings, and ColPali, and build your pipeline.
By Galactic News Editorial · Published 2026-11-20T13:35:50+00:00 · Updated 2026-11-20T13:35:50+00:00
Multimodal RAG: Indexing PDFs That Mix Text, Charts and Images
Multimodal RAG lets a search system answer questions about PDFs that mix text, charts, and images. Text-only retrieval misses the chart. A multimodal pipeline indexes the visuals too, so a question about a trend line finds the chart, not just the paragraph near it. This guide explains the three main approaches, how to build one, and where each approach breaks.
Why text-only RAG fails on mixed PDFs
Most PDFs in the wild are not plain text. Annual reports carry revenue charts. Research papers carry figures and tables. Manuals carry diagrams. A text extractor pulls the words and drops the visuals. The numbers inside a chart never become searchable text.
Naive chunking makes it worse. A table split across two chunks loses its headers. A figure caption lands far from the figure it describes. The retriever then returns fragments that look relevant but say nothing useful.
Multimodal RAG fixes this by treating images as first-class retrievable objects. The chart becomes a searchable item with its own embedding or summary. At query time, the system retrieves text chunks and images together, then passes both to a vision-capable model for the answer.
Three approaches to multimodal RAG PDFs
LangChain's multi-vector retriever work lays out three options. Each trades cost, accuracy, and complexity differently.
Option 1: multimodal embeddings. Embed images and text together with a model such as CLIP. Retrieve either type by similarity search, then pass raw images and text chunks to a multimodal model for synthesis. This is the most direct route. It needs a multimodal embedding model and a vector store that handles image vectors.
Option 2: image summaries. Use a multimodal model to write a text summary of each image. Embed and retrieve the text summaries with a normal text embedding model. The raw images stay out of the answer step. This avoids multimodal embeddings entirely. It works well when the final model cannot see images, or when cost matters.
Option 3: summaries plus raw images. Generate text summaries of images, embed them for retrieval, and pass the raw images to a multimodal model at answer time. This is the most capable option. It costs more, because every image passes through a vision model twice: once for the summary, once for the answer.
LangChain tested option 2 with the 7-billion-parameter LLaVA model. It ran on a consumer laptop and produced reasonable image summaries. A full private pipeline can run locally with LLaVA for summaries, Chroma as the vector store, open-source embeddings, and a local model for answer generation.
How the multi-vector retriever works
The multi-vector retriever decouples the document from the reference used for search. A summary of a verbose document is optimized for vector similarity search, but the full document is passed to the model for answer synthesis. Nothing is lost to compression at answer time.
The same idea applies to tables and images. Unstructured partitions a PDF into its element types: text, tables, and images. It removes embedded image blocks first, then uses a layout model to find bounding boxes for tables and titles for sub-sections. Text is grouped under each title and chunked for downstream processing.
Table summaries are generated and embedded for retrieval. When a table summary matches a question, the raw table goes to the model for the answer. Image summaries work the same way. The summary is the searchable proxy. The raw image is the evidence.
LlamaIndex takes a similar path with its own abstractions. Images become ImageNode objects stored alongside TextNode objects. A MultiModalVectorStoreIndex handles both node types. At query time, the retriever returns text chunks and image nodes, and a vision-capable model reasons over both.
Building a multimodal RAG pipeline for PDFs
A working pipeline has four stages: parse, summarize, store, and retrieve. Each stage has one clear job.
- Parse the PDF into elements. Use the unstructured library's partition function to split the document into text, tables, and images. Keep the page number and element type as metadata on every item.
- Summarize each image and table. Send each extracted image to a vision model and store the text summary. Do the same for tables, so a question in plain language can match a table's contents.
- Store summaries and raw elements separately. Embed the summaries in a vector store. Keep the raw images and tables in a document store, keyed by the same ID. Retrieval searches summaries. Answers use raw elements.
- Retrieve both types at query time. Embed the question, fetch the top text chunks and image summaries, then pull the raw images for the matches. Pass text and images together to a vision-capable model.
- Return the evidence, not just the answer. Show the retrieved chart or table next to the answer. Users trust answers they can check against the source page.
- Measure on real questions. LangChain's benchmarks include a multi-modal slide deck dataset with question-answer pairs drawn from visual content. Test against questions that can only be answered from a chart, not from the text.
ColPali: skipping extraction entirely
ColPali takes a different route. Instead of extracting text and images from a page, it embeds the page image directly. The model is a vision-language model trained to produce multi-vector embeddings from images of document pages. A late-interaction matching mechanism then scores query terms against image patches.
The ColPali paper, published at ICLR 2025, reports that this approach outperforms standard document retrieval pipelines on its ViDoRe benchmark while being simpler and faster. No PDF parser, no OCR step, and no separate chunking strategy are needed. The page image is the index.
The trade-off is storage and compute. Multi-vector embeddings are larger than single-vector embeddings. Every page becomes many vectors, one per patch. For small document sets, that cost is trivial. For millions of pages, it needs planning.
ColPali suits teams that want retrieval over scanned or image-heavy documents without building an extraction pipeline. The summary-based approach suits teams that need cheap retrieval and already have a text pipeline running.
Comparing the approaches
| Approach | How it works | Strengths | Weaknesses |
|---|---|---|---|
| Multimodal embeddings (CLIP) | Embed images and text in one space | Direct, no summary step | Needs a multimodal embedding model and image-capable store |
| Image summaries | Vision model writes text summaries, retrieved by text search | Works with any text vector store, cheapest | Summary can lose chart detail |
| Summaries plus raw images | Summaries for retrieval, raw images for the answer | Most accurate answers | Highest cost, vision model runs twice per image |
| ColPali page images | Embed the page image directly, no extraction | Simplest pipeline, strong on visual documents | Larger embeddings, more storage |
| LlamaParse multimodal | Managed parsing with text and image chunks indexed together | Fast to set up, built-in retrieval | Managed service, less control over parsing |
Bottom line: start with image summaries and a multi-vector retriever. It runs on standard text infrastructure and handles most mixed PDFs well. Move to ColPali when extraction quality limits accuracy, and to summaries plus raw images when answers must quote exact chart values.
Common mistakes to avoid
The first mistake is indexing page images without metadata. A chart without a page number or document title is hard to cite and hard to debug. Attach document name, page, and element type to every indexed item.
The second is trusting summaries blindly. A vision model can misread a chart axis or a table header. Spot-check summaries against the source pages, especially for numbers that drive decisions.
The third is retrieving too little. A question about a trend needs the chart and the surrounding text. Retrieve three text chunks and three images as a starting point, then tune from there. LlamaIndex examples use exactly that split: similarity top k of 3 for text and 3 for images.
The fourth is ignoring cost. Summarizing every image in a thousand-page corpus with a vision model adds up. Filter first. Skip decorative images and logos. Summarize only figures, charts, and tables that carry information.
Bottom line
Multimodal RAG PDFs stop being a text problem once charts and images become searchable. Image summaries with a multi-vector retriever are the cheapest reliable start. ColPali removes the extraction step for image-heavy corpora. Either way, the rule holds: retrieve the visual evidence, pass it to a model that can see it, and show the source next to the answer.