Skip to main content

What are you looking for?

Explore our services and discover how we can help you achieve your goals

Client Workspace

Multimodal search across images, text and documents in one index

One multimodal index works when you pick the embedding approach per content type, not one model for everything, and prove it with a query set split by what users type and what they expect back. Netbase approaches it this way: test caption-to-text, shared image-text embeddings and page-image retrieval side by side, then keep the cheapest one that passes.

Book a solution review See the related solution

By Netbase AI and Automation Engineering Desk · Reviewed by David (CEO) · Updated · 10 min read

star

This guide is for teams that already search text, often inside a retrieval-augmented assistant, and now need the same search to find photos, scanned contracts, slides and diagrams. Text tuning is covered in our guide to retrieval quality tuning. It sits under our generative AI development work and the enterprise knowledge and RAG service.

In this guide

Do you need one multimodal index at all?

Start from the questions people ask, not from the content you hold. Take fifty to a hundred real or likely queries and mark two things for each: what the user types (words, an image, or both) and what a correct answer looks like (a text passage, a photo, a page of a scanned file, a slide). If almost every correct answer is a text passage, you do not need a multimodal index; you need better text extraction.

One index earns its cost when answers live in pixels: a wiring diagram, a product photo matched by look, a scanned form whose meaning depends on layout, or a chart in a slide deck. It also helps when users search with an image, such as a photo of a part or a damaged item.

Separate searches can still be the right answer. If staff already know whether they want a photo or a policy, two clear search boxes beat one blended list that ranks both badly.

Which embedding approach fits which content?

Approach How it works Strength When not to choose it
Caption or OCR to text A vision model writes a caption, OCR extracts text, and both go into your existing text index Reuses the text pipeline, keyword search and reranker; easy to debug Answers depend on layout, charts or visual similarity that a caption cannot carry
Shared image-text embedding space One model maps images and text into the same vector space, so a text query can retrieve a photo Real cross-modal search with one vector per item Dense documents and fine detail; text-to-text ranking can be weaker than a text-only model
Page-image embeddings with late interaction Each document page is embedded as an image into many small vectors and matched token by token Keeps tables, figures and layout without a parsing step Large collections where the extra storage and compute per page are not justified
Separate indexes merged by rank fusion Each content type keeps its own best index; result lists are merged by rank, not by raw score Each modality uses its strongest model; failures stay isolated Small teams that cannot run and evaluate several indexes

Read the table by content type: a common pattern is captions for photos, page images for scanned documents and text embeddings for text, merged at query time.

The shared-space approach goes back to contrastive models such as CLIP, which learned from 400 million image and text pairs and transfers to new image tasks without task-specific training. Page-image retrieval was shown by the ColPali paper, whose authors report that embedding page images directly outperformed modern text-extraction pipelines on their visual document benchmark while being simpler to run.

Why do scores from different content types not mix cleanly?

Putting vectors in one index does not make their scores comparable. Research on contrastive image-text models describes a modality gap: image and text embeddings sit in separate regions of the shared space. In practice, a text query tends to score text items higher than equally relevant images, so one ranked list can quietly hide every photo.

Three fixes work, each to be tested. Merge per-modality result lists with reciprocal rank fusion, which uses positions instead of raw scores; Microsoft's search documentation describes this merge for parallel queries. Reserve a small number of slots per content type in the final list. Or rerank the merged candidates with a model that reads both the query and each item.

How do you evaluate a multimodal index?

  1. Build a query set by modality pair

    Label each query with its input type and the type of the correct answer, for example text to photo, text to scanned page, image to image and text to text. Aim for at least thirty labelled queries per pair you plan to support.

  2. Label the evidence, not the file

    Mark the exact page, image or passage that answers the query, so a result that returns the right file but the wrong page counts as a miss.

  3. Freeze a text-only baseline

    Run the set against your current text search with captions and OCR added. This is the approach to beat, and it is often good enough for photos with a clear subject.

  4. Test one approach per run

    Swap in shared embeddings, then page-image retrieval for documents, re-index from scratch and run the full set each time.

  5. Gate on recall@k per slice

    Report recall@k and MRR for every modality pair separately. An average hides the case where text questions improve and photo questions collapse.

  6. Check the blend

    For a single index, measure what share of the top ten results each content type takes on queries where the answer is a photo or a page. If one type crowds out the rest, add rank fusion or slot quotas and re-run.

  7. Record the guard rails

    Note 95th-percentile latency, index size and the cost to re-embed the collection, which every model change repeats.

  8. Keep the set in the release pipeline

    Run it on every change, with a held-out slice for the final check.

What breaks in production?

Most failures happen before the index: sideways or low-resolution scans, handwriting, and the same photo stored under several names. Normalise orientation and resolution, remove near-duplicates and keep a link from every vector back to its source file and page.

Permissions do not change with the content type. A photo attached to a confidential ticket carries the ticket's access rules, and the filter must run before ranking, as in any RAG architecture for internal knowledge assistants.

Model changes are expensive. Store the raw renders and captions so a model swap repeats only the embedding step, and version the index so a rollback is one switch.

Where AI fits in multimodal search

AI does the heavy lifting at three points: vision models that write captions and read scans, embedding models that place images and text in a searchable space, and rerankers that read query and candidate together. Engineers still choose the approach per content type, label the evidence, set the keep rule and review every change before release. Netbase works with the major commercial and open-source AI models, chosen per project, and keeps the pipeline able to swap one without rebuilding the rest. Each item below states how mature it is at Netbase.

Reading fields from a document, rather than finding it, is a different job, covered in our guide to extracting fields from invoices and contracts with vision-language models. Vision work on existing systems is part of our computer vision and document AI service.

What delivery record exists, and what does not?

  • What exists. Netbase has delivered retrieval-augmented knowledge assistants, document AI and MLOps pipelines for clients that are not named, and its AI work covers machine learning, NLP, computer vision and generative AI. Delivery follows a lifecycle that ends in ongoing support and co-building, and Netbase's security practices, including role-based access control and secure code review. Most Netbase projects are delivered on fixed-price contracts.
  • What does not. No published Netbase case covers a single multimodal index, and no recall, latency or adoption figure from Netbase's work is offered here. The plan on this page is method guidance, and the figures it mentions come from the cited third-party sources.

Alternatives and selection criteria

  • Improve text extraction only when most correct answers are text that is currently trapped in scans; better OCR and captions into the existing index may be all you need.
  • Run separate searches when users already know which content type they want and a blended list adds noise.
  • Use field extraction when the job is reading values from documents into a system, not finding the document.
  • Build one multimodal index when answers depend on visual content, users search across types in one query, and you can label a query set per modality pair.
  • Do not build it yet when you cannot name twenty real queries whose answer is an image or a page layout; the evaluation would have nothing to measure.

What are the limits of this guide?

  • Video and audio search need frame and transcript methods not described here.
  • Benchmarks are cited for direction, not as a forecast: results depend on your content, your scans and your queries.
  • A small query set per modality pair gives noisy scores; treat small differences as ties and confirm on the held-out slice.

Plan the next step with a Netbase consultant

Frequently asked questions

Some models map all three into one vector space, but a single model is rarely the best for every content type. Test it against captions with text embeddings and against page-image retrieval on your own queries, and keep whichever passes per content type.

OCR is enough when the meaning sits in the words. It falls short when tables, charts, stamps or layout carry the answer, and then page-image retrieval or a combined approach usually finds more of the right pages.

Measure what share of the top ten results each content type takes on queries whose correct answer is an image. If photos rarely appear even when they are the answer, merge per-type lists by rank or reserve slots per type.

Plan for at least thirty labelled queries for each pair of query type and answer type you support, such as text to photo or text to scanned page, plus a held-out slice for the final release check.

Next step

Share twenty queries your team cannot answer today and a sample of the files that should answer them, and we will book a solution review to sort them by content type and sketch a first evaluation. You can also see the AI knowledge assistant solution or our data and AI stack.

Generative AI development with evaluation and human review Generative AI development with evaluation and human review

Netbase builds generative AI features for product and operations teams: drafting, summarising, rewriting and content generation inside the software your people and customers already use. Every feature ships with an evaluation set, a human review step where output matters and limits on cost. Generative AI is a capability we are growing, and we label its maturity honestly.

Learn More
line
Enterprise AI knowledge assistants: RAG engineering with access control Enterprise AI knowledge assistants: RAG engineering with access control

Netbase engineers retrieval-augmented generation (RAG) over company knowledge: the ingestion, search, permission checks, cited answers and evaluation that let an internal assistant or a website RAG chatbot answer from your own documents. It is a growth capability with access control designed in from the first prototype, and Netbase has delivered a RAG knowledge assistant for an unnamed client.

Learn More
line
Computer vision AI for images and artwork Computer vision AI for images and artwork

Netbase applies computer vision to images and artwork: checking customer uploads before print, tagging and sorting product images, and converting raster images into vector files. Document workflows such as invoices and forms belong to our intelligent document processing solution. Computer vision is a capability we are growing.

Learn More
line
AI knowledge assistant: answers from company knowledge, with sources and access control AI knowledge assistant: answers from company knowledge, with sources and access control

An AI knowledge assistant is an internal tool that answers employees' questions from your company's own documents and systems, cites the source behind every answer and shows each person only what they may see. Netbase offers it as a growth capability, designed with retrieval, evaluation and human review from the first pilot, and has delivered one for an unnamed client.

Learn More
line

Work with Netbase remotely

Every Netbase engagement is delivered remotely, so clients in any country and any industry can work with us; Netbase has worked with clients in 80 countries. Contracts and invoices are issued by Netbase JSC, and payment is made by bank transfer to Netbase JSC's company account or PayPal Business. Talk to the CEO, Huy Nguyen (David), on WhatsApp or by email.

Contact Netbase

Discuss a project

Netbase JSC helps organizations design, build, modernize, and operate digital products and AI-enabled business systems.
Project enquiries

project@netbasejsc.com

WhatsApp

+84 937 869 689

Office address

91 Nguyen Chi Thanh, Dong Da, Hanoi, Vietnam

Get in touch

Tell us what you want to build, modernize, or operate.

Tell us what you want to build, modernize, or operate.

Contact Netbase