gemini-embed

Generate single and batch text embeddings using the Gemini API.

6|Updated Oct 16, 2025
One-click install
npx skills add https://github.com/legacybridge-tech/claude-plugins --skill gemini-embed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-embed
Source: https://github.com/legacybridge-tech/claude-plugins/tree/main/gemini-api/skills/gemini-embed
Command: npx skills add https://github.com/legacybridge-tech/claude-plugins --skill gemini-embed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a fast, scalable way to convert text into numeric embeddings using Google Gemini's embedding model, enabling efficient similarity search, classification, and retrieval across large text collections.

Core Features & Use Cases

  • Single and Batch Embeddings: Generate embeddings for individual strings or batches to optimize throughput.
  • RAG & Semantic Search: Use embeddings to power retrieval-augmented generation and content search across documents.
  • Classification & Clustering: Leverage vector representations for document classification and topic clustering.
  • Use Case: For a large knowledge base, embed all documents once, store vectors, and run user queries against the vector store to fetch relevant documents.

Quick Start

Use the gemini-embed skill to generate embeddings for a sample text such as "Hello world" or for a batch of documents by calling the Gemini API with your API key.

Frequently Asked Questions about gemini-embed

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate vector embeddings for RAG using the Gemini API?

To generate vector embeddings for RAG, you provide text to the Gemini API endpoint using the gemini-embedding-001 model. The skill converts individual strings or batches of documents into numeric vectors for semantic search and retrieval.

Do I need a Google API key to create Gemini embeddings for semantic search?

Yes, you need a GOOGLE_API_KEY environment variable set. This key authenticates your requests to the Gemini embedding endpoint to successfully generate vectors for your semantic search tasks.

Can I process batch embeddings for document classification and clustering?

Yes, you can process batch embeddings for document classification and clustering. The skill supports generating vector representations for multiple text inputs simultaneously to optimize throughput across large document collections.

What is the best way to embed text into Gemini vectors for fast retrieval?

The best way to embed text into Gemini vectors for fast retrieval is using the gemini-embedding-001 model. You embed all documents once, store the resulting vectors, and run user queries against the vector store.

Does Gemini embedding support both single string and batch text processing?

Yes, Gemini embedding supports both single string and batch text processing. You can generate embeddings for an individual string like a test query or process a batch of documents to optimize throughput.

Why use the gemini-embedding-001 model for semantic similarity search?

Use the gemini-embedding-001 model for semantic similarity search because it provides a scalable way to convert text into numeric embeddings. This enables efficient similarity matching, classification, and retrieval across large text collections.