Skip to content
View original post on X: Google Gemma· 44/100AI score44/100

Google publishes a developer guide for EmbeddingGemma 2 multimodal embeddings

AISummary

Google Gemma announces a developer guide showing how to embed text, code, images, video, audio, and interleaved inputs with EmbeddingGemma 2 using the sentence-transformers library. The guide outlines a four-step workflow: loading the model, embedding text and code with task prompts, embedding multimodal inputs, and optionally truncating dimensions with Matryoshka.

Post on XView on X
@googlegemma

Ready to start building with EmbeddingGemma 2?

Our Developer Guide walks you through embedding multimodal content across text, code, images, video, and audio using the sentence-transformers library and more!

The workflow:

1️⃣ Load the model (via your preferred framework)
2️⃣ Embed text & code with task prompts
3️⃣ Embed images, video, audio & interleaved inputs
4️⃣ (Optional) Truncate dimensions with Matryoshka to save space

Source: Google Gemma · x.comPublished · added here