﻿# EmbeddingGemma 2: encoder size and vector size are different choices

EmbeddingGemma 2 combines modular media encoders with shorter retrieval vectors. Separate model memory, coordinate storage and domain-specific quality before building a local index.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/embeddinggemma2-modular-encoders-vector-truncation-quality/
Language: en

Google introduced [EmbeddingGemma 2](https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2/) on 6 October 2026 as an open multimodal embedding model under Apache 2.0. It maps text, code and media into a shared retrieval space. Its usefulness for local search depends on separating two resource choices: which encoders are loaded and how many coordinates are stored for each item.

## Load the modalities the corpus needs

The [developer guide](https://developers.googleblog.com/en/embeddinggemma-2-the-developer-guide/) describes a 270M-parameter text/code configuration, 440M with vision, 570M with audio and 740M for the full multimodal model. Omitting unused encoders reduces loaded components rather than merely ignoring their outputs after loading.

These configurations share the same checkpoint and vector space. Google says text-only queries can therefore search documents indexed by the full model. That compatibility is specific to the documented model configurations; equal vector length alone does not make embeddings from unrelated models interchangeable. Parameter count also is not a complete RAM or VRAM measurement, because activations, batching, runtime and the application add their own allocations.

## Shorter vectors save coordinates, not every index component

The model supports Matryoshka truncation from 768 to 512, 256 or 128 dimensions. The guide requests matching query and document dimensions and normalization after truncation. Reducing 768 to 128 gives a sixfold reduction in raw coordinate storage when coordinate representation stays fixed.

That arithmetic excludes graph structures, identifiers, metadata, source files and application caches. The [index-memory guide](/journal/embedding-dimensions-memory/) explains those boundaries. Shorter vectors also do not remove the need to run the selected encoder. Model execution memory and stored-index size are separate budgets, even when both ultimately occupy the same device.

## Quality retention depends on the task

Google’s guide characterizes 128-dimensional text and code quality as around 90% of the full representation, with a larger loss for multimodal retrieval. The [author model card](https://huggingface.co/google/embeddinggemma-2) makes the distinction concrete: its code mean changes from 78.68 at full dimension to 71.41, while MMEB overall changes from 59.01 to 45.65. These are publisher benchmark results, not guarantees for a private document collection.

A single “quality retained” percentage can therefore hide different retrieval tradeoffs. A proposed local evaluation should preserve representative questions, relevant items and per-modality outcomes, including cases with no useful answer. The [Russian retrieval guide](/journal/embeddings-russian-retrieval/) provides a method for testing terminology and mixed-language material instead of relying on a multilingual label alone.

## Preserve numeric precision and the application boundary

The model card explicitly recommends bfloat16 or float32 and warns against float16, whose limited dynamic range can produce NaN or silently degraded embeddings. That is a documented correctness condition, not merely a speed preference. A returned vector of the expected length still needs finite values and the intended input processing.

Google’s [AI Edge demonstrations](https://developers.googleblog.com/google-ai-edge-with-embeddinggemma-2/) show local media search and a Mac context-retrieval application. These illustrate integration possibilities; the embedding model itself is not a complete RAG service, reranker or independently verified privacy boundary. Corpus ingestion, permissions, ranking and answer generation remain application responsibilities.

A useful implementation record would preserve model revision, selected modules, numeric precision, prompt roles, truncation dimension and normalization. Measure ingestion and query behavior on the intended corpus with those settings fixed. The result is a specific search configuration with a visible quality/resource tradeoff, rather than a promise that smaller vectors preserve every modality equally.
