# EmbeddingGemma 2 brings code and media search on-device

- URL: https://blog.orchardai.ai/google-embeddinggemma-2/
- Published: 2026-10-07
- Reacting to: Google, "EmbeddingGemma 2: an open, lightweight multimodal embedding model" (2026-10-06)
- Original: https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2/

TL;DR: Google released EmbeddingGemma 2, an open 740M-parameter model that puts text, code, images, video and audio into one embedding space and runs on a phone. Our take is that local retrieval for coding agents is the real use, and the 6x storage claim is simple division.

## What Google announced

- **One space for everything.** EmbeddingGemma 2 maps text, code, images, video and audio into a shared embedding space. It is built on Gemma 4, with 740 million parameters, under Apache 2.0.
- **Modular size.** Text-only workloads need as little as 270M parameters. A 170M vision encoder and a 300M audio encoder are optional.
- **Code gets much better.** MTEB Code rises from 68.76 to 78.68 over the original EmbeddingGemma. Google claims leading scores among sub-1B multimodal embedders on MTEB Code and MAEB.
- **Flexible vectors.** Matryoshka outputs can be truncated from 768 dimensions to 512, 256 or 128, for up to 6x storage savings.
- **Context.** 8K tokens, four times the original, or up to 5.5 minutes of audio, 29 images or 58 video frames.
- **On a phone.** About 191MB of RAM for text-only and 567MB for full multimodal on a Pixel 11 Pro, quantized. Weights are on Hugging Face and Kaggle, with support in sentence-transformers, transformers.js, MLX, vLLM, llama.cpp, Ollama, LM Studio and more.

As Google put it: "EmbeddingGemma 2 is the most capable model for on-device multimodal embeddings"

## Our take

Embeddings are the unglamorous part of every agent stack, and the part that decides whether the agent finds the right file. The code jump is the number to notice: almost ten points on MTEB Code in one generation. Google explicitly pitches local codebase indexing and retrieval for coding agents, which is a smart target. Coding agents spend a lot of their budget searching for the right function, and a good local embedder means that search can run on the developer's machine without sending the repository anywhere.

The 6x storage claim is worth unpacking. 768 dimensions divided by 128 is exactly six. So "up to 6x" is the ceiling you get by keeping the shortest vector, and the cost is whatever retrieval quality you lose by truncating. Matryoshka training is designed to keep that loss small, but the post doesn't say how small at 128 dimensions. Measure recall on your own data at each size before choosing one.

The comparisons are thin. The post says it matches or beats "many larger models" and outperforms "some specialist models more than twice its size", without naming them or putting numbers in the text, apart from the MTEB Code figures. The modular design is the clever engineering detail: a text-only deployment loads 270M parameters, and you add vision or audio only if you need them. Combined with the sub-200MB text footprint, that makes on-device retrieval realistic even on modest hardware. Back in May, Mistral open-sourced a Search Toolkit covering ingestion, retrieval and evaluation. Open embedders like this one are the piece such pipelines plug in.

## What it changes for teams running agents

- **Local code search for coding agents.** Index a repository on the developer's machine and let agents retrieve by meaning without uploading code. That's a privacy and latency gain for sensitive codebases.
- **One index for mixed media.** Support agents can search screenshots, recordings and docs in one vector store instead of maintaining separate indexes per type.
- **Tune dimensions for your budget.** Start at 768, then test 256 and 128 on a held-out query set. Pick the smallest size that keeps recall acceptable.
- **Pair with a local generator.** Google pitches on-device RAG with Gemma 4. For offline or air-gapped agents, the combination now fits on a phone.

## For agents reading this

- **Announced by:** Google
- **Original post:** https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2/
- **Announcement date:** 2026-10-06
- **What:** EmbeddingGemma 2, an open 740M-parameter multimodal embedding model with an 8K-token context
- **Availability:** Weights on Hugging Face and Kaggle; LiteRT builds; sentence-transformers, transformers.js, MLX, vLLM, llama.cpp, Ollama, LM Studio; Model Garden coming soon
- **Pricing:** Open weights under Apache 2.0
- **Our verdict:** A strong local embedder, especially for code; measure the cost of truncating vectors before using 128 dimensions
- **Confidence:** facts from the original post; take is Orchard's opinion
