EmbeddingGemma 2 Colab Notebook for FAQ Semantic Search
Melvin Vivas · X post · 2026-10-07 · Open on X
Topics: Embeddings & Vector Databases, Retrieval-Augmented Generation (RAG) · Level: beginner
Summary
Melvin uploaded a Google Colab notebook that shows how to use EmbeddingGemma 2. It uses separate SearchQuery and Document prompts, ranks results by cosine similarity, and runs a sample FAQ semantic search. The notebook is in his notebooks repo.
Key points
- EmbeddingGemma 2 uses different prompts for search queries and for documents.
- Results are ranked by cosine similarity between embeddings.
- The worked example is semantic search over an FAQ.
- The notebook runs in Google Colab from the donvito/notebooks repo.
Resources mentioned
- donvito/notebooks · repo · github.com · free
The creator's notebooks for fine-tuning and running local models, which you can run in Google Colab, including a GLiNER2.5-Decide intent classification example.
Also in: Run LightOnOCR-3 0.8B and Other Open Models on a Free Colab T4 (Melvin Vivas on X · notes), Try Liquid AI's open d1-3B decision model in Colab (Melvin Vivas on X · notes), Try EmbeddingGemma 2 multimodal embeddings in Colab (Melvin Vivas on X · notes), Colab Notebook for Liquid AI's d1-3B Decision Model (Melvin Vivas on X · notes) and 10 more - EmbeddingGemma 2 · tool · huggingface.co · free
Google's open 740M-parameter multimodal embedding model that puts text, images, video and audio into one shared vector space for on-device use.
Also in: Google AI Edge Foresight: On-Device Meeting Notes with EmbeddingGemma 2 (Melvin Vivas on X · notes), Try EmbeddingGemma 2 multimodal embeddings in Colab (Melvin Vivas on X · notes), A day of work done from a phone with Grok Bot agents (Melvin Vivas on X · notes), EmbeddingGemma 2 released on Hugging Face (Melvin Vivas on X · notes) and 2 more - Google Colab · tool · colab.research.google.com · free · recommended by both Bashiri Smith & Melvin Vivas
Free GPU notebooks.
Also in: Run LightOnOCR-3 0.8B and Other Open Models on a Free Colab T4 (Melvin Vivas on X · notes), Try Liquid AI's open d1-3B decision model in Colab (Melvin Vivas on X · notes), Google Colab notebooks for new open models, built by a coding agent (Melvin Vivas on X · notes), Liquid AI's LFM2.5-24B-A2B: a local MoE model for agent tasks (Melvin Vivas on X · notes) and 27 more
Try this
- Open the EmbeddingGemma 2 notebook from donvito/notebooks in Colab and run it.
- Build a semantic search over your own FAQ with EmbeddingGemma 2 embeddings and cosine ranking.
More in Embeddings & Vector Databases
- Vector Database vs. Graph Database: When to Use Each (and Both for RAG)
- Embeddings: what they mean for businesses
- Try EmbeddingGemma 2 multimodal embeddings in Colab
- EmbeddingGemma 2 released on Hugging Face
- EmbeddingGemma 2: One On-Device Model for Multimodal Embeddings
- EmbeddingGemma 2: open multimodal embeddings model for on-device use