Spaces:
Running on Zero
Running on Zero
File size: 1,168 Bytes
6d9e1d2 611b28e 6d9e1d2 611b28e 6d9e1d2 611b28e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
title: EmbeddingGemma 2 Search Lab
emoji: 馃攷
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 6.29.1
app_file: app.py
short_description: Explore task-aware embeddings and semantic search
python_version: "3.12"
startup_duration_timeout: 30m
---
# EmbeddingGemma 2 Search Lab
Try Google's multilingual text embedding model in a small semantic-search workbench. Edit the document collection, enter a query, choose a retrieval task and embedding size, then compare the ranked results and cosine scores.
The app uses the model's asymmetric task instructions for queries and documents, and re-normalizes vectors after Matryoshka truncation. It loads only the text encoders to keep the demo lightweight. The underlying model also supports image, audio, and video embeddings.
## Model
[`google/embeddinggemma-2`](https://huggingface.co/google/embeddinggemma-2) 路 Apache 2.0 路 768-dimensional vectors 路 128/256/512/768 dimensions supported.
## Run locally
```bash
pip install -r requirements.txt
python app.py
```
The model files are downloaded from Hugging Face on first startup. Access to the model may require accepting its terms on the model page.
|