Google Gemini Embeddings

Covers the Google Gemini embeddings API (gemini-embedding-001) for RAG, semantic search, document clustering, and similarity matching: @google/genai SDK usage, fetch-based calls from Cloudflare Workers, batch embedding, the 8 task types (RETRIEVAL_QUERY, RETRIEVAL_DOCUMENT, SEMANTIC_SIMILARITY and others), dimension selection from 128 to 3072, cosine similarity, chunking, caching, and Cloudflare Vectorize integration. Prevents 8+ embedding errors including dimension mismatches, wrong task type, free-tier rate limiting (100 RPM), vector normalization mistakes, 2,048 token text truncation, and model version confusion. Use when generating text embeddings with Gemini, building a RAG or vector search pipeline, storing vectors in Vectorize, or debugging embedding dimension, rate limit, or normalization problems.

jackspace Updated

File contents

jackspace/ClaudeSkillz/tree/main/skills/google-gemini-embeddings commit c81a39e43b

Frequently asked questions

npx skillmds@latest add jackspace/google-gemini-embeddings