Building Large-Scale Visual Augmented Q&A with Vision Language Models
Abhijeet Kumar
Agenda
01. Issue with Text-RAG
Pain points. �Use-cases: Visual augmented Q&A�
Multi-modal LLM & Large context length problem
02. Developing Vision-RAG
Vision Language Models.
Vision Embeddings LMs like ColPali, ColQwen
State-of-the-art Late Interaction
03. Challenges in Scaling
1. Storing multi-vectors ?
2. In-memory Late Interaction
3. Inflated memory�
04. Building Scalable Visual Q&A
Making conventional Vector-DB work.
Late interaction Re-ranker
Pooling vectors�
05. Benchmark Results & Takeaways
Benchmark results on ViDoRe
State of vector-DBs
2
July 18, 2025
Problems with Text-RAG
3
July 18, 2025
How much carbon reduction was enabled in Transportation by AT&T in 2023 ?
Problems with Text-RAG
4
July 18, 2025
What is the quarterly revenue from Google Cloud for 2023 and 2024 ?
Multi-modal LLMs: Understands visual elements
5
July 18, 2025
How much carbon reduction was enabled in Transportation by AT&T in 2023 ?
The pie chart shows that the transportation sector accounts for 17.6% of the total carbon reductions enabled by AT&T. To find the specific amount of carbon reduction in the transportation sector, we need to calculate 17.6% of the total 39.1 million metric tons CO2e.
Answered by Qwen 2.5VL-3B
Multi-modal LLMs: Understands visual elements
6
July 18, 2025
What is the quarterly revenue from Google Cloud for 2023 and 2024 ?
The revenue from Google Cloud for 2023 was $7,454 million, and for 2024 it was $9,574 million.
Answered by Qwen 2.5VL-3B
Visual LMs: Encodes visual elements
7
July 18, 2025
How ?
Late Interaction Scoring Mechanism�
Transitioning from text-RAG to Vision-RAG
8
July 18, 2025
Question
Text embedding models (qwen3-embedding, gemini-embedding, text-embedding-3-large, cohere & jina)
Corpus
Large Language Model
(Claude, GPT4, Llama, Mixtral, DeepSeek)
Response Generation
Vector DB
Conventional RAG system
Transitioning from text-RAG to Vision-RAG
9
July 18, 2025
Question
Text embedding models (qwen3-embedding, gemini-embedding, text-embedding-3-large, cohere & jina)
Corpus
Large Language Model
(Claude, GPT4, Llama, Mixtral, DeepSeek)
Response Generation
Vector DB
Conventional RAG system
Can we replace this with Multi-modal LLMs ?
Transitioning from text-RAG to Vision-RAG
10
July 18, 2025
Question
Text embedding models (qwen3-embedding, gemini-embedding, text-embedding-3-large, cohere & jina)
Corpus
Multi-modal LLMs
(Sonnet 3.5, Qwen-2.5 VL, Llama 3.2 Vision, GPT4o, Gemini Pro)
Response Generation
Vector DB
Conventional RAG system
Are there Embedding Models which can encode Visual Information along with text ?
Vision Language models encodes visual elements along with textual information which can be used for complex documents retrieval.
Developing Vision-RAG based Q&A System
11
July 18, 2025
Question
Vision embedding models (ColPali, ColQwen, Jina Clip-V1, Nomic-AI, Azure-AI multimodal embeddings text)
Corpus
Multi-modal LLMs
(Sonnet 3.5, Qwen-2.5 VL, Llama 3.2 Vision, GPT4o, Gemini Pro)
Response Generation
Vector DB
Vision based RAG system
RETRIEVER
GENERATOR
Scaling Vision-RAG
Challenges with Scaling
13
13
July 18, 2025
July 18, 2025
1 parameter = 2 bytes (16-bit float)
For each page,
1024 X 128 parameters = 2 x 128KB = 256KB
Corpus of 1000 pages,
1000 X 256 KB per page = 256MB
How about a million pages ?
Let’s do a quick math....
There are majorly two problems with scaling Visual Language Models
Scaling Visual Q&A: Using Vector DB
14
14
July 18, 2025
July 18, 2025
Question
Query Embeddings
Multi-Modal LLM
ColPali
Re-ranker
Response (source)
ColPali VLM
2D Patch Embeddings
Open Search
PDF Reports
Document Indexing Process
GPT4o, Claude Sonnet 3.5
1D patches with patch id, page id
similar pages
Top pages
Hybrid search
patch embedding.
patch num.
page num.
document name
Scaling Visual Q&A: Using Vector DB
15
15
July 18, 2025
July 18, 2025
Question
Query Embeddings
Multi-Modal LLM
ColPali
Re-ranker
Response (source)
ColPali VLM
2D Patch Embeddings
Open Search
PDF Reports
Document Indexing Process
GPT4o, Claude Sonnet 3.5
1D patches with patch id, page id
similar pages
Top pages
Hybrid search
patch embedding.
patch num.
page num.
document name
Let’s uncover the workaround
Uncovering the workaround
16
16
July 18, 2025
July 18, 2025
ColPali Late Interaction Re-ranker
For each token embedding in query
Fetch Page ID of matching patches
&
Add page ID to list
Open Search
flattened patch embedding & metadata with patch id, page id
Match query
(Hybrid search)
patch embedding.
patch num.
page num.
document name
Top scoring patches (>0.90)
Yes
stop
end of token
iteration end
Filter Query
(Page IDs)
Top pages
Issue of Inflated memory of Index remains !!
Index Optimization: Token Pooling
Token Pooling: Reducing Memory Footprint�
Many image patches share redundant information, e.g. white background patches.
By pooling these patches together, we can reduce the amount of embeddings while retaining most of the page's signal.
17
July 18, 2025
Research showed a pooling factor of 3 achieves an average performance degradation of less than 2%, despite reducing storage requirements by over 66%.
ViDoRe Benchmark
18
18
July 18, 2025
July 18, 2025
Benchmark Results: ViDoRe
19
19
July 18, 2025
July 18, 2025
| ArxivQ | DocQ | InfoQ | TabF | TATQ | Shift | AI | Energy | Gov | Health | Avg Score |
Colpali 1.2 (in-memory) | 69.2 | 42.4 | 73.2 | 83.57 | 52.61 | 60.6 | 96 | 92 | 84 | 92 | 74.5 |
Colpali 1.2 - OpenSearch | 68.4 | 42.4 | 73.2 | 83.57 | 52.07 | 62 | 96 | 92 | 84 | 92 | 74.5 |
ColPali 1.3 (in-memory) | 77.6 | 49.4 | 79.8 | 81.4 | 57.1 | 63 | 97 | 94 | 91 | 93 | 78.33 |
ColPali 1.3 (in-memory) - pool factor 2 | 77.8 | 44.6 | 75.4 | 76.4 | 55.8 | 61 | 97 | 98 | 87 | 94 | 76.7 |
Colpali 1.3 - opensearch - pool factor 2 | 77.8 | 44.6 | 75.4 | 76.4 | 55.3 | 61 | 96 | 93 | 87 | 94 | 76.05 |
Current State of Vector DBs
Weaviate DB started offering multi-vector embedding support from v1.29 (Feb, 2025)
Milvus vector DB completed integration with ColPali (multi-vector) by May, 2025.
Elasticsearch has rolled out ColPali implementation in March, 2025
20
July 18, 2025
Thank you
21
July 18, 2025