Building with Gemini Embedding 2: Agentic multimodal RAG and beyond- Google Developers Blog
Apr 30, 2026Patrick Löber, Lucia Loher, Roberto Santana, Mojtaba Seyedhosseini

Summary
This post introduces Gemini Embedding 2, a multimodal embedding model that maps text, images, video, audio, and documents into a single embedding space. It details its application in agentic multimodal RAG using task prefixes for optimized embeddings, multimodal search with specific prefixes, search reranking via similarity metrics, and clustering, classification, and anomaly detection using symmetric task prefixes. The post also highlights efficient storage options with Matryoshka Representation Learning (MRL) and cost-saving batch processing.
More from the AI-Assisted Spec-Driven Development trail
- The Anatomy of Harness Engineering: How to Evaluate, Iterate, and Guard AI Coding Agents- Google Developers Blog
- Enable on-demand expertise with Agent Skills in Genkit Go- Google Developers Blog
- Agent and Model Evaluations in Gemini Enterprise Agent Platform are now GA- Google Developers Blog
- How to use Google microbenchmarks for evaluating TPU performance- Google Developers Blog
- Evolving Spec-Driven Development: Conductor Now Supports Antigravity- Google Developers Blog