SemanticEmbedder API Polyfill Demo

Demonstrates the proposed SemanticEmbedder API backed by EmbeddingGemma 300M — the same model Chrome's built-in API uses — running in-browser via @huggingface/transformers.

Semantic Search

Embed a corpus of texts, then find which are most semantically similar to your query.

Corpus

Query

Results (ranked by cosine similarity)

Results will appear here after searching.

Embed a Single Text

Embedding Vector (first 16 values)

—