← All models Β· EmbeddingGemma 2

use case Β· basics

Basics: one cosine number β€” and how the task you name changes the vector

The fundamental move of an embedder is turning two passages into vectors and measuring the angle between them (cosine 1.00 = identical direction, near 0 = unrelated). Because EmbeddingGemma 2 is instruction-prompted, the exact same text produces genuinely different vectors when embedded as a search query, a stored document, or a classification target. Compare two passages below to inspect the cosine number and measure how each task prefix moves the vector on your own sentences.

Task instruction prefix

← Back to EmbeddingGemma 2 Β· Next: Practical β†’