Skip to main content
Visual document retrieval treats each page as an image and embeds it with a cross-modal model, so a text query can find the right page by what it looks like (tables, charts, diagrams, scans) without relying on OCR.

Why Visual Document Retrieval

Traditional document search pipelines drop information at every stage:
  1. OCR mangles tables, equations, and low-contrast scans.
  2. Layout parsers miss chart and diagram semantics.
  3. Text-only embeddings never see the visual structure of the page.
Mixpeek’s 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.
Render PDF pages to images client-side (e.g. pdftoppm, pdf2image), one object per page, so each page becomes an independently retrievable result with its own page_number.

2. Create a collection

Embed each page image with multimodal_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

Each result is a page, ranked by cross-modal similarity, carrying its 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

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