Gemini Embedding 2: Google's First Natively Multimodal Embedding Model Released

Google DeepMind has released Gemini Embedding 2 in public preview, their first fully multimodal embedding model built on the Gemini architecture. Unlike previous text-only models, this one maps text, images, videos, audio, and documents into a single, unified embedding space, capturing semantic intent across over 100 languages.
Key Technical Details
The model is available through the Gemini API and Vertex AI, and supports these specific capabilities:
- Text: Supports context of up to 8192 input tokens
- Images: Processes up to 6 images per request (PNG and JPEG formats)
- Videos: Supports up to 120 seconds of video input (MP4 and MOV formats)
- Audio: Natively ingests and embeds audio without needing text transcriptions
- Documents: Directly embeds PDFs up to 6 pages long
Beyond processing single modalities, the model natively understands interleaved input, allowing you to pass multiple modalities (e.g., image + text) in a single request to capture nuanced relationships between different media types.
Flexible Output Dimensions
Gemini Embedding 2 incorporates Matryoshka Representation Learning (MRL), enabling flexible output dimensions scaling down from the default 3072. This lets developers balance performance and storage costs. Google recommends using 3072, 1536, or 768 dimensions for highest quality.
Integration and Use Cases
The model is designed for multimodal downstream tasks including Retrieval-Augmented Generation (RAG), semantic search, sentiment analysis, and data clustering. It's available through multiple platforms:
- Gemini API
- Vertex AI
- LangChain, LlamaIndex, Haystack
- Vector databases: Weaviate, QDrant, ChromaDB, and Vector Search
Google provides interactive Colab notebooks for getting started with the Gemini API and Vertex AI implementations.
📖 Read the full source: HN AI Agents
👀 See Also

When Online Commenters 'Detect' My Art as AI: David Revoy's Frustration
Artist David Revoy shares screenshots of online commenters falsely accusing his hand-drawn art of being AI-generated, despite sharing timelapses. He explores the problem in his comic 'Authenticity Problem'.

Lovable offers $100 free Claude API credits for International Women's Day
Lovable is giving away $100 in Anthropic Claude API credits, $250 in Stripe fee credits, and 24-hour free access to their platform through March 8. Users need to claim the offer before 12:59 AM ET on March 9.
Canvas LMS Assistant via OpenClaw and Composio
A teacher set up a bot that accesses their three Canvas courses through Composio CLI, letting it create Excel student lists, check for broken links, and track page views.

Illinois Passes SB 315: Third-Party Audits Required for Frontier AI Labs
Illinois passes SB 315 requiring frontier AI labs like OpenAI, Anthropic, and Google DeepMind to have safety practices audited by independent third parties. If signed, it becomes the strongest US state AI safety law.