Why Visual Document Retrieval
Traditional document search pipelines drop information at every stage:- OCR mangles tables, equations, and low-contrast scans.
- Layout parsers miss chart and diagram semantics.
- Text-only embeddings never see the visual structure of the page.
multimodal_extractor embeds page images directly with Google’s Vertex multimodal model into a shared text-image space (vertex_multimodal_embedding). Because the space is cross-modal, a text query retrieves visually-relevant pages — the words “revenue breakdown by region” can match a page dominated by a financial table, even with no clean extractable text.
This is single-vector cross-modal retrieval (one embedding per page). Mixpeek does not currently offer ColPali-style multi-vector late-interaction (per-patch MaxSim) scoring. For born-digital, text-heavy PDFs where you want extracted text + OCR, use the universal extractor instead (see Document Intelligence).
1. Create a bucket
Hold the page images. Render each PDF page to an image (PNG/JPG) and store the page image URL — the cross-modal model embeds images.2. Create a collection
Embed each page image withmultimodal_extractor. Map the extractor’s image input to your page_image field.
3. Ingest pages
4. Process
5. Create a retriever
Search the cross-modal page embeddings with a text query.6. Query
document_title and page_number so you can deep-link to the exact page.
When to use visual vs text retrieval
Use visual retrieval when
- Pages are visually complex (tables, charts, infographics, equations)
- OCR quality is unreliable (scans, handwriting, multi-column layouts)
- Figures and diagrams carry meaning text alone cannot capture
Use text retrieval when
- Documents are born-digital and text-only (use universal extractor)
- You need extracted text, NER, or summaries (see Document Intelligence)
- You want exact-keyword matching (add a lexical/BM25 search)
Next steps
Classify by layout
Auto-classify pages (financial report, slide deck, research paper) with a taxonomy.
Discover layout patterns
Cluster page embeddings to surface visual document patterns.
Combine with text
Pair visual retrieval with extracted-text search for hybrid document QA.
Get notified
Alert when new documents of a given type are indexed.
Further reading
- ColPali: Efficient Document Retrieval with Vision Language Models — the late-interaction approach that inspired visual document retrieval
- ViDoRe Benchmark — visual document retrieval leaderboard

