Sergidev/EmbeddingGemma-3d
0
๐ 3D Embed โ EmbeddingGemma Visualizer
An interactive demo showcasing Google's EmbeddingGemma 300M โ a state-of-the-art, lightweight embedding model built on the Gemma 3 architecture.
This space lets you see how the model understands language by projecting its 768-dimensional embeddings into explorable 3D space using PCA dimensionality reduction.
โจ Features
- ๐ค Word Galaxy โ Type individual words and watch semantic clusters form in 3D. See how "cat", "dog", and "fish" cluster differently from "car", "bus", and "train".
- ๐ Sentence Explorer โ Compare full sentences and discover how meaning shapes geometry. Similar sentences land near each other; different ones drift apart.
- ๐ Semantic Search โ Enter a query and a set of documents. Watch the model find the closest match and see why through spatial proximity.
- ๐ช Matryoshka Dimensions โ Explore how MRL (Matryoshka Representation Learning) lets you truncate embeddings from 768d โ 512d โ 256d โ 128d with minimal quality loss, visualized side-by-side.
๐ง About EmbeddingGemma
EmbeddingGemma is the highest-ranking text-only multilingual embedding model under 500M parameters on the MTEB leaderboard. It uses bidirectional attention (encoder-style) rather than causal decoding, making it purpose-built for embeddings.
๐ How It Works
- Text is passed through EmbeddingGemma with task-specific prompts (e.g.,
"task: sentence similarity | query: ") - The model produces 768-dimensional normalized embeddings
- PCA reduces these to 3 dimensions, capturing the directions of maximum variance
- Plotly renders the points as an interactive 3D scatter plot
