AI Hints
Home›RAG Tutorial›Graphs and Images
RAG · Lesson 92 of 120

Multimodal RAG

Images too.

⏱ 2 min read▶ Video at 1:30:32🎓 Free
Watch this lesson in the RAG courseWatch on YouTube ↗Full RAG course

Manuals have diagrams. Price lists come as photos. Multimodal RAG handles images as well as text. The simplest way is to describe each image with a vision model, and index the description as text.

Multimodal RAG
From the video: Multimodal RAG
  • Diagrams and photos
  • Images and text
  • Describe, then index

Images into the index

Find the images in your documents. A vision model writes a detailed description of each one. We embed the description, like any chunk. We keep a link to the image. And when it's retrieved, we can show the image itself.

  1. Find images
  2. Describe
  3. Embed
  4. Link image
  5. Show it
Images into the index
From the video: Images into the index

Two approaches

Describing images as text works with any embedding model. Multimodal embedding models can put images and text in the same space directly. And Gemini can read a whole PDF page, images included, when you send it.

keyvalue
Describethen embed text
Multimodal embeddingsimages and text
Geminireads PDF pages
Keepa link to the image

Summary

Multimodal RAG describes images as text, or embeds them directly, so diagrams become searchable. Next, the advanced quiz.

Key takeaways
  • Describe images
  • Embed descriptions
  • Show the image
Next up: Advanced Quiz — test yourself