gemini-embeddings
Generate text embeddings using Gemini Embedding API via scripts/. Use for creating vector representations of text, semantic search, similarity matching, clustering, and RAG applications. Triggers on "embeddings", "semantic search", "vector search", "text similarity", "RAG", "retrieval".
npx skills add majiayu000/claude-skill-registry --skill gemini-embeddings-akrindev-google-studio-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Gemini Embeddings Generate high-quality text embeddings for semantic search, similarity analysis, clustering, and RAG (Retrieval Augmented Generation) applications through executable scripts. ## When to Use This Skill Use this skill when you need to: - Find semantically similar documents or texts - Build semantic search engines - Implement RAG (Retrieval Augmented Generation) - Cluster or group similar documents - Calculate text similarity scores - Power recommendation systems - Enable semantic document retrieval - Create vector databases for AI applications ## Available Scripts ### scripts/embed.py **Purpose**: Generate embeddings and calculate similarity **When to use**: - Creating vector representations of text - Comparing text similarity - Building semantic search systems - Implementing RAG pipelines - Clustering documents **Key parameters**: | Parameter | Description | Example | |-----------|-------------|---------| | `texts` | Text(s) to embed (required) | `"Your text here"` | | `--model`, `-m` | Embedding model | `gemini-embedding-001` | | `--task`, `-t` | Task type | `SEMANTIC_SIMILARITY` | | `--dim`, `-d` | Output dimensionality | `768`, `1536`, `3072` | | `--similarity`
- When to Use This Skill
- Available Scripts
- scripts/embed.py
- Workflows
- Workflow 1: Single Text Embedding
- Workflow 2: Semantic Search
- Workflow 3: Text Similarity Comparison
- Workflow 4: Dimensionality Reduction for Efficiency
- Workflow 5: Document Clustering
- Workflow 6: RAG Implementation
- Workflow 7: JSON Output for API Integration
- Workflow 8: Batch Document Processing
- Parameters Reference
- Task Types
python scripts/embed.py "What is the meaning of life?" python scripts/embed.py "best practices for coding" --task RETRIEVAL_QUERY > query.json python scripts/embed.py "Coding best practices include version control" "Clean code is essential" --task RETRIEVAL_DOCUMENT > docs.json python scripts/embed.py "What is the meaning of life?" "What is the purpose of existence?" "How do I bake a cake?" --similarity python scripts/embed.py "Text to embed" --dim 768 python scripts/embed.py "Machine learning is AI" "Deep learning is a subset" "Neural networks power AI" --json > embeddings.jsonl Use scikit-learn, KMeans, etc. python scripts/embed.py "Document 1 content" "Document 2 content" --task RETRIEVAL_DOCUMENT --dim 1536 python scripts/embed.py "User query here" --task RETRIEVAL_QUERY python skills/gemini-text/scripts/generate.py "Context: [retrieved docs]. Answer: [user query]"
What does the gemini-embeddings skill do?
Generate text embeddings using Gemini Embedding API via scripts/. Use for creating vector representations of text, semantic search, similarity matching, clustering, and RAG applications. Triggers on "embeddings", "semantic search", "vector search", "text similarity", "RAG", "retrieval".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill gemini-embeddings-akrindev-google-studio-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
