google-gemini-embeddings

Generate Gemini embeddings for vector search and RAG workflows.

961|99|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/jezweb/claude-skills --skill google-gemini-embeddings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-gemini-embeddings
Source: https://github.com/jezweb/claude-skills/tree/main/skills/google-gemini-embeddings
Command: npx skills add https://github.com/jezweb/claude-skills --skill google-gemini-embeddings

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @google/genai, typescript, and includes scripts (resource) and references (resource) and templates (resource) components.

What problem does it solve?

This Skill eliminates the complexity of implementing vector search and retrieval-augmented generation by providing production-ready patterns for Gemini embeddings with Cloudflare Vectorize integration.

Core Features & Use Cases

  • Flexible Dimensions: Generate 128-3072 dimension embeddings using Matryoshka Representation Learning.
  • Task Type Optimization: Use 8 specialized task types (RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY) for optimized retrieval quality.
  • Production RAG: Complete workflows for document ingestion, vector search, and context-aware generation.

Quick Start

Generate a 768-dimension embedding for the text "What is the meaning of life?" using the RETRIEVAL_QUERY task type to match with indexed documents.

Use the google-gemini-embeddings skill to create a semantic search system for your knowledge base.

Frequently Asked Questions about google-gemini-embeddings

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

FAQPage Schema
How do I build a semantic search system with embeddings?

Semantic search uses embeddings to find conceptually similar content by converting text into vectors. This Skill generates Gemini embeddings optimized for retrieval tasks, enabling you to index documents and match user queries based on meaning rather than keyword matching.

What are embeddings and why do I need different dimensions?

Embeddings convert text into numerical vectors that capture semantic meaning. This Skill supports 128-3072 dimensions using Matryoshka learning—smaller dimensions reduce storage and latency for edge deployments like Cloudflare Vectorize, while larger dimensions improve retrieval accuracy for complex queries.

Can I use Gemini embeddings for retrieval-augmented generation (RAG)?

Yes. This Skill provides production-ready RAG workflows combining document ingestion, vector search, and context-aware generation. It handles task-type optimization, batch processing, and rate limiting to retrieve relevant documents that augment language model responses.

How do I choose the right task type for my embedding use case?

This Skill offers specialized task types including RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY, and CLUSTERING. RETRIEVAL_QUERY optimizes for matching user queries, RETRIEVAL_DOCUMENT for indexing content, SEMANTIC_SIMILARITY for comparing text pairs, and CLUSTERING for grouping similar documents.

Does this work with Cloudflare Vectorize for edge deployment?

Yes. This Skill integrates with Cloudflare Vectorize to deploy embeddings at the edge, enabling low-latency semantic search across distributed datasets. It handles dimension matching and batch processing patterns for edge environments.

What are the input limits and batch processing constraints?

This Skill enforces a 2048-token input limit per text and includes batch processing with rate limiting. It provides robust error handling and guidance on matching output dimensions to your vector database, supporting both SDK and REST integration patterns.