AI Cloud Architect

Building with Gemini Embedding 2: Agentic multimodal RAG and beyond

GoogleHow-to by Patrick Löber, Lucia Loher, Roberto Santana and Mojtaba SeyedhosseiniGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Gemini Embedding 2 is now generally available and maps text, images, video, audio and PDFs into one embedding space, with task prefixes and truncatable vectors for RAG and search.

Who it is for

Developers building multimodal RAG or visual search on the Gemini API or Gemini Enterprise Agent Platform who need one embedding model for mixed inputs.

Key points

  • Single call accepts up to 8,192 text tokens, 6 images, 120 seconds of video, 180 seconds of audio and 6 PDF pages.
  • Default vectors are 3072 dimensions; output_dimensionality can truncate them, with 1536 or 768 recommended.
  • Batch API gives 50% of the default embedding price; separate per-input embeddings via Batch API are coming soon for Agent Platform.
  • Google reports Harvey's Recall@20 up 3% and Nuuly's Match@20 rising from 60% to nearly 87%.

The same at other vendors

Timeline

  1. What it explainsGemini Embedding 2: Our first natively multimodal embedding model · Google · Announcement
  2. What it explainsGemini Embedding 2 is now generally available. · Google · Announcement
  3. This postBuilding with Gemini Embedding 2: Agentic multimodal RAG and beyond

Go deeper