google-gemini-file-search
Google Gemini File Search for managed RAG with 100+ file formats. Use for document Q&A, knowledge bases, or encountering immutability errors, quota issues, polling failures. Supports Gemini 3 Pro/Flash (Gemini 2.5 legacy).
npx skills add majiayu000/claude-skill-registry --skill google-gemini-file-search-secondsky-claude-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.
# Google Gemini File Search **Status**: Production Ready | **Last Verified**: 2025-11-18 --- ## What Is File Search? Google Gemini File Search is **fully managed RAG** (Retrieval-Augmented Generation): - Upload documents → Automatic chunking + embeddings + vector search + citations - **No vector database setup** required - **100+ file formats** supported (PDF, Word, Excel, code, Markdown, JSON, etc.) - **Built-in grounding** with citation metadata - **Cost-effective**: $0.15/1M tokens (one-time indexing), free storage + queries **Key difference from other RAG:** - Cloudflare Vectorize: You manage chunking/embeddings - OpenAI Files API: Tied to Assistants API threads - File Search: Fully managed, standalone RAG --- ## Quick Start (5 Minutes) ### 1. Get API Key & Install Get API key: https://aistudio.google.com/apikey (Free tier: 1 GB storage, 1,500 requests/day) ```bash bun add @google/genai ``` **Version:** 0.21.0+ | **Node.js:** 18+ ### 2. Basic Example ```typescript import { GoogleGenerativeAI } from '@google/genai'; import fs from 'fs'; const ai = new GoogleGenerativeAI(process.env.GOOGLE_AI_API_KEY); // Create store const fileStore = await ai.fileSearchStores.create({ config: {
- What Is File Search?
- Quick Start (5 Minutes)
- 1. Get API Key & Install
- 2. Basic Example
- Critical Rules
- Always Do
- Never Do
- Top 3 Errors Prevented
- Error 1: Document Immutability
- Error 2: Storage Quota Exceeded
- Error 3: Model Compatibility
- When to Use File Search
- Use File Search When:
- Use Alternatives When:
bun add @google/genai
What does the google-gemini-file-search skill do?
Google Gemini File Search for managed RAG with 100+ file formats. Use for document Q&A, knowledge bases, or encountering immutability errors, quota issues, polling failures. Supports Gemini 3 Pro/Flash (Gemini 2.5 legacy).
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill google-gemini-file-search-secondsky-claude-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.
