google-gemini-file-search

Solid

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).

Data & Documents 168 stars 27 forks Updated 4 weeks ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
74
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: { displayName: 'my-knowledge-base' } }); // Upload document const operation = await ai.fileSearchStores.uploadToFileSearchStore({ name: fileStore.name, file: fs.createReadStream('./manual.pdf'), config: { displayName: 'Installation Manual', chunkingConfig: { whit...

Details

Author
secondsky
Repository
secondsky/claude-skills
Created
7 months ago
Last Updated
4 weeks ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category