Finding a specific scene in a photo library or pulling a relevant segment from a meeting recording requires comparing meaning across different file formats. Released by Google DeepMind on October 6, 2026, EmbeddingGemma 2 embeds text, code, images, video, and audio into a shared 768-dimensional vector space. Built to run search directly on smartphones and laptops, the model ships with Apache 2.0 open weights. Google announcement

This post builds on an introduction by choi.openai on Threads, cross-checking the architecture and benchmark numbers against Google’s official announcement, developer guide, and model card.

Comparing Different Modalities in a Shared Vector Space

Embeddings represent the meaning of content as numerical vectors. Converting a query into a vector and measuring similarity against stored items retrieves matching content across formats. Because EmbeddingGemma 2 places multiple input types into the same space, a voice memo can match a video scene and a text query can locate a segment in an audio recording. This design removes intermediate steps that previously chained image captioning, speech-to-text transcription, and text embedding in sequence. Google AI Edge overview

The architecture pairs a Gemma 4 text and code backbone with optional vision and audio encoders. Every configuration outputs vectors into the same shared space.

Active ModalitiesParameter Count
Text and code270M
Text and code + image and video440M
Text and code + audio570M
Full multimodal740M

Applications that only need text search can skip loading the vision and audio encoders into memory. Adding other modalities later from the same checkpoint keeps existing embeddings compatible without recomputation. Developer guide

Higher Code Retrieval Scores and Longer Context

In Google’s full-precision evaluations, MTEB Code rose by 9.92 points from 68.76 in the first generation to 78.68. Multilingual text stayed steady, moving from 61.15 to 61.36. For the newly added modalities, image retrieval scored 64.64 on MIEB lite, video retrieval scored 50.67 on MMEB v2, and speech retrieval scored 69.54 on MSEB. Because these are distinct benchmarks, scores cannot be compared directly across modalities. Model card

Context length expanded to 8,192 tokens. Under the default settings documented in the model card, a single-modality input without text fits roughly 5 minutes 30 seconds of audio, about 29 images, or about 58 video frames. Mixed-modality inputs share that same 8,192-token budget. Model card

Cutting Device RAM and Index Storage Separately

Running quantized weights on a Google Pixel 11 Pro used roughly 191MB of active RAM for the text-only configuration and roughly 567MB for the full multimodal model. Those figures reflect that specific device and quantization setup. Google announcement

Index storage shrinks independently by truncating output vector dimensions. Matryoshka Representation Learning (MRL) lets developers slice the leading 512, 256, or 128 dimensions from the 768-dimensional output. In the developer guide’s bfloat16 example, storing 1 million vectors takes about 1.5GB at 768 dimensions and about 250MB at 128 dimensions. Those numbers count raw vector storage alone, excluding database index overhead. Developer guide

Truncating dimensions trades off retrieval quality. The aggregate MMEB v2 score drops from 59.01 at 768 dimensions to 56.24 at 256 dimensions and 45.65 at 128 dimensions. Google recommends 128 dimensions for large-scale text indexing or first-stage candidate retrieval. After truncation, vectors must be re-normalized, and queries must match the target index dimensionality. Model card

From Photo Search to Local RAG and Routing

Instant Media Search in Google AI Edge Gallery finds on-device media from text or image queries, while Video Moments Finder indexes video frames and audio tracks to jump to matching timestamps. On macOS, Google AI Edge Foresight pairs EmbeddingGemma 2 for document retrieval with Gemma 4 for answer generation in a local RAG pipeline. Google AI Edge overview

The model also handles classification and routing. MediaPipe Decision compares an incoming request against pre-written option descriptions by vector similarity to pick the next action, routing requests to functions without separate model training or fine-tuning. Google AI Edge overview

Weights are available on Hugging Face and Kaggle, with runtime support across sentence-transformers, MLX, Ollama, and browser deployments via transformers.js and WebGPU. Running locally eliminates per-call embedding API fees and keeps personal photos and recordings off external servers, at the cost of local compute and storage for model execution and vector indexes. Google announcement