[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QSYSAFHRD6KEB1PQBH0NFT":3,"skill-same:01M6QSYSAFHRD6KEB1PQBH0NFT":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":50,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":72},"01M6QSYSAFHRD6KEB1PQBH0NFT","google-gemini-file-search",null,"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\u002FFlash (Gemini 2.5 legacy).","VRIL-LABS\u002Fskill-jam","VRIL-LABS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272046472?v=4","01M6QR9PNWM28WZYJJASER1RG2","𝗩𝗥𝗜𝗟 𝗟𝗔𝗕𝗦","01M6QR9PT6Q6JDCQ97EQBDX6E4",2,"MIT","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"gemini","google","search","file","google gemini file search","file search","managed","for","true","q&a","formats","errors","2025","quota","document","use","flash","knowledge","issues","rag","2026-11-10 10:12:30",false,"---\nname: google-gemini-file-search\ndescription: 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\u002FFlash (Gemini 2.5 legacy).\nlicense: MIT\nmetadata:\n  version: \"2.0.0\"\n  last_verified: \"2025-11-18\"\n  production_tested: true\n  token_savings: \"~65%\"\n  errors_prevented: 8\n  templates_included: 0\n  references_included: 2\n---\n\n# Google Gemini File Search\n\n**Status**: Production Ready | **Last Verified**: 2025-11-18\n\n---\n\n## What Is File Search?\n\nGoogle Gemini File Search is **fully managed RAG** (Retrieval-Augmented Generation):\n- Upload documents → Automatic chunking + embeddings + vector search + citations\n- **No vector database setup** required\n- **100+ file formats** supported (PDF, Word, Excel, code, Markdown, JSON, etc.)\n- **Built-in grounding** with citation metadata\n- **Cost-effective**: $0.15\u002F1M tokens (one-time indexing), free storage + queries\n\n**Key difference from other RAG:**\n- Cloudflare Vectorize: You manage chunking\u002Fembeddings\n- OpenAI Files API: Tied to Assistants API threads\n- File Search: Fully managed, standalone RAG\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Get API Key & Install\n\nGet API key: https:\u002F\u002Faistudio.google.com\u002Fapikey (Free tier: 1 GB storage, 1,500 requests\u002Fday)\n\n```bash\nbun add @google\u002Fgenai\n```\n\n**Version:** 0.21.0+ | **Node.js:** 18+\n\n### 2. Basic Example\n\n```typescript\nimport { GoogleGenerativeAI } from '@google\u002Fgenai';\nimport fs from 'fs';\n\nconst ai = new GoogleGenerativeAI(process.env.GOOGLE_AI_API_KEY);\n\n\u002F\u002F Create store\nconst fileStore = await ai.fileSearchStores.create({\n  config: { displayName: 'my-knowledge-base' }\n});\n\n\u002F\u002F Upload document\nconst operation = await ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('.\u002Fmanual.pdf'),\n  config: {\n    displayName: 'Installation Manual',\n    chunkingConfig: {\n      whiteSpaceConfig: {\n        maxTokensPerChunk: 500,\n        maxOverlapTokens: 50\n      }\n    }\n  }\n});\n\n\u002F\u002F Poll until done\nwhile (!operation.done) {\n  await new Promise(resolve => setTimeout(resolve, 1000));\n  operation = await ai.operations.get({ name: operation.name });\n}\n\n\u002F\u002F Query documents\nconst model = ai.getGenerativeModel({\n  model: 'gemini-2.5-pro',  \u002F\u002F Only 2.5 Pro\u002FFlash supported\n  tools: [{\n    fileSearchTool: {\n      fileSearchStores: [fileStore.name]\n    }\n  }]\n});\n\nconst result = await model.generateContent('How do I install the product?');\nconsole.log(result.response.text());\n\n\u002F\u002F Get citations\nconst grounding = result.response.candidates[0].groundingMetadata;\nif (grounding) {\n  console.log('Sources:', grounding.groundingChunks);\n}\n```\n\n**Load `references\u002Fsetup-guide.md` for complete walkthrough with batch uploads, error handling, and production checklist.**\n\n---\n\n## Critical Rules\n\n### Always Do\n\n1. **Use delete + re-upload** for updates (documents are immutable)\n2. **Calculate 3x storage** (embeddings + metadata = ~3x file size)\n3. **Configure chunking** (500 tokens for technical docs, 800 for prose)\n4. **Poll operations** until `done: true` (with timeout)\n5. **Use force: true** when deleting stores with documents\n6. **Use Gemini 2.5 models** only (2.5-pro or 2.5-flash)\n7. **Keep metadata under 20 fields** per document\n8. **Estimate indexing costs** ($0.15\u002F1M tokens one-time)\n\n### Never Do\n\n1. **Never try to update** documents (no PATCH API exists)\n2. **Never assume storage = file size** (it's 3x)\n3. **Never skip chunking config** (defaults may not be optimal)\n4. **Never upload without polling** (operation may still be processing)\n5. **Never delete without force** if store has documents\n6. **Never use Gemini 1.5 models** (File Search requires 2.5)\n7. **Never exceed 20 metadata fields** (hard limit)\n8. **Never upload large files without cost estimate**\n\n---\n\n## Top 3 Errors Prevented\n\n### Error 1: Document Immutability\n\n**Problem:** Trying to update existing document\n\n**Solution:** Delete + re-upload pattern\n\n```typescript\n\u002F\u002F Find and delete old version\nconst docs = await ai.fileSearchStores.documents.list({\n  parent: fileStore.name\n});\nconst oldDoc = docs.documents.find(d => d.displayName === 'manual.pdf');\nif (oldDoc) {\n  await ai.fileSearchStores.documents.delete({\n    name: oldDoc.name,\n    force: true\n  });\n}\n\n\u002F\u002F Upload new version\nawait ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('manual-v2.pdf'),\n  config: { displayName: 'manual.pdf' }\n});\n```\n\n### Error 2: Storage Quota Exceeded\n\n**Problem:** Storage calculation wrong (3x multiplier)\n\n**Solution:** Estimate before upload\n\n```typescript\nconst fileSize = fs.statSync('data.pdf').size;\nconst estimatedStorage = fileSize * 3;  \u002F\u002F Embeddings + metadata\n\nif (estimatedStorage > 1e9) {\n  console.warn('⚠️ May exceed free tier 1 GB limit');\n}\n```\n\n### Error 3: Model Compatibility\n\n**Problem:** Using wrong model version\n\n**Solution:** Use Gemini 2.5 only\n\n```typescript\n\u002F\u002F ✅ CORRECT\nconst model = ai.getGenerativeModel({\n  model: 'gemini-2.5-pro',  \u002F\u002F or gemini-2.5-flash\n  tools: [{ fileSearchTool: { fileSearchStores: [storeName] } }]\n});\n\n\u002F\u002F ❌ WRONG\nconst model = ai.getGenerativeModel({\n  model: 'gemini-1.5-pro',  \u002F\u002F Not supported!\n  tools: [{ fileSearchTool: { fileSearchStores: [storeName] } }]\n});\n```\n\n**Load `references\u002Ferror-catalog.md` for all 8 errors with detailed solutions including chunking, operation polling, metadata limits, and force delete requirements.**\n\n---\n\n## When to Use File Search\n\n### Use File Search When:\n\n- Want fully managed RAG (no vector DB)\n- Cost predictability matters (one-time indexing)\n- Need 100+ file format support\n- Citations are important (built-in grounding)\n- Simple deployment is priority\n- Documents are relatively static\n\n### Use Alternatives When:\n\n**Cloudflare Vectorize** - Global edge performance, custom embeddings, real-time R2 updates\n**OpenAI Files API** - Assistants API, conversational threads, very large collections (10,000+)\n\n---\n\n## Common Patterns\n\n### Pattern 1: Customer Support Knowledge Base\n\n```typescript\n\u002F\u002F Upload support docs with metadata\nawait ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('troubleshooting.pdf'),\n  config: {\n    displayName: 'Troubleshooting Guide',\n    customMetadata: {\n      doc_type: 'support',\n      category: 'troubleshooting',\n      language: 'en'\n    }\n  }\n});\n```\n\n### Pattern 2: Batch Document Upload\n\n```typescript\nconst files = ['doc1.pdf', 'doc2.md', 'doc3.docx'];\nconst uploadPromises = files.map(file =>\n  ai.fileSearchStores.uploadToFileSearchStore({\n    name: fileStore.name,\n    file: fs.createReadStream(file),\n    config: { displayName: file }\n  })\n);\nconst operations = await Promise.all(uploadPromises);\n\n\u002F\u002F Poll all operations\nfor (const op of operations) {\n  let operation = op;\n  while (!operation.done) {\n    await new Promise(resolve => setTimeout(resolve, 1000));\n    operation = await ai.operations.get({ name: operation.name });\n  }\n  console.log('✅', operation.response.displayName);\n}\n```\n\n### Pattern 3: Document Update Flow\n\n```typescript\n\u002F\u002F 1. List existing documents\nconst docs = await ai.fileSearchStores.documents.list({\n  parent: fileStore.name\n});\n\n\u002F\u002F 2. Delete old version\nconst oldDoc = docs.documents.find(d => d.displayName === 'manual.pdf');\nif (oldDoc) {\n  await ai.fileSearchStores.documents.delete({\n    name: oldDoc.name,\n    force: true\n  });\n}\n\n\u002F\u002F 3. Upload new version\nconst operation = await ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('manual-v2.pdf'),\n  config: {\n    displayName: 'manual.pdf',\n    customMetadata: {\n      version: '2.0',\n      updated_at: new Date().toISOString()\n    }\n  }\n});\n\n\u002F\u002F 4. Poll until done\nwhile (!operation.done) {\n  await new Promise(resolve => setTimeout(resolve, 1000));\n  operation = await ai.operations.get({ name: operation.name });\n}\n```\n\n**Load `references\u002Fsetup-guide.md` for additional patterns including code documentation search and internal knowledge bases.**\n\n---\n\n## When to Load References\n\n### Load `references\u002Fsetup-guide.md` when:\n- First-time File Search setup\n- Need step-by-step walkthrough with all configuration options\n- Configuring batch upload strategies\n- Production deployment checklist\n- Complete API initialization patterns\n\n### Load `references\u002Ferror-catalog.md` when:\n- Encountering any of 8 common errors\n- Need detailed error solutions with code examples\n- Prevention checklist required\n- Troubleshooting upload\u002Fquery issues\n- Understanding chunking, metadata, or cost calculation problems\n\n---\n\n## Supported File Formats\n\n**100+ formats including:**\n- **Documents**: PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx)\n- **Text**: Markdown (.md), Plain text (.txt), JSON, CSV\n- **Code**: Python, JavaScript, TypeScript, Java, C++, Go, Rust, etc.\n\n**Not supported:** Images in PDFs (text extraction only), Audio files, Video files\n\n---\n\n## Pricing\n\n**Indexing (one-time):** $0.15 per 1M tokens\n**Storage:** Free (10 GB - 1 TB depending on tier)\n**Query embeddings:** Free (retrieved context counts as input tokens)\n\n**Example:** 1,000-page document ≈ 500k tokens → Indexing cost: $0.075 → Storage: ~1.5 GB (3x multiplier)\n\n---\n\n## Chunking Guidelines\n\n**Technical docs:** 500 tokens\u002Fchunk, 50 overlap\n**Prose:** 800 tokens\u002Fchunk, 80 overlap\n**Legal:** 300 tokens\u002Fchunk, 30 overlap\n\n```typescript\nchunkingConfig: {\n  whiteSpaceConfig: {\n    maxTokensPerChunk: 500,  \u002F\u002F Smaller = more precise\n    maxOverlapTokens: 50     \u002F\u002F 10% overlap recommended\n  }\n}\n```\n\n---\n\n## Resources\n\n**References** (`references\u002F`):\n- `setup-guide.md` - Complete setup walkthrough (authentication, store creation, file upload, batch patterns, production checklist)\n- `error-catalog.md` - All 8 documented errors with solutions (immutability, storage, chunking, metadata, costs, polling, force delete, model compatibility)\n\n**Official Documentation**:\n- **File Search Overview**: https:\u002F\u002Fai.google.dev\u002Fapi\u002Ffile-search\n- **API Reference**: https:\u002F\u002Fai.google.dev\u002Fapi\u002Ffile-search\u002Fdocuments\n- **Blog Post**: https:\u002F\u002Fblog.google\u002Ftechnology\u002Fdevelopers\u002Ffile-search-gemini-api\u002F\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fsetup-guide.md` for complete setup\n2. Review `references\u002Ferror-catalog.md` for all 8 errors\n3. Verify model version (must be Gemini 2.5)\n4. Check storage calculation (3x file size)\n","# Google Gemini File Search\n\n**Status**: Production Ready | **Last Verified**: 2025-11-18\n\n---\n\n## What Is File Search?\n\nGoogle Gemini File Search is **fully managed RAG** (Retrieval-Augmented Generation):\n- Upload documents → Automatic chunking + embeddings + vector search + citations\n- **No vector database setup** required\n- **100+ file formats** supported (PDF, Word, Excel, code, Markdown, JSON, etc.)\n- **Built-in grounding** with citation metadata\n- **Cost-effective**: $0.15\u002F1M tokens (one-time indexing), free storage + queries\n\n**Key difference from other RAG:**\n- Cloudflare Vectorize: You manage chunking\u002Fembeddings\n- OpenAI Files API: Tied to Assistants API threads\n- File Search: Fully managed, standalone RAG\n\n---\n\n## Quick Start (5 Minutes)\n\n### 1. Get API Key & Install\n\nGet API key: https:\u002F\u002Faistudio.google.com\u002Fapikey (Free tier: 1 GB storage, 1,500 requests\u002Fday)\n\n```bash\nbun add @google\u002Fgenai\n```\n\n**Version:** 0.21.0+ | **Node.js:** 18+\n\n### 2. Basic Example\n\n```typescript\nimport { GoogleGenerativeAI } from '@google\u002Fgenai';\nimport fs from 'fs';\n\nconst ai = new GoogleGenerativeAI(process.env.GOOGLE_AI_API_KEY);\n\n\u002F\u002F Create store\nconst fileStore = await ai.fileSearchStores.create({\n  config: { displayName: 'my-knowledge-base' }\n});\n\n\u002F\u002F Upload document\nconst operation = await ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('.\u002Fmanual.pdf'),\n  config: {\n    displayName: 'Installation Manual',\n    chunkingConfig: {\n      whiteSpaceConfig: {\n        maxTokensPerChunk: 500,\n        maxOverlapTokens: 50\n      }\n    }\n  }\n});\n\n\u002F\u002F Poll until done\nwhile (!operation.done) {\n  await new Promise(resolve => setTimeout(resolve, 1000));\n  operation = await ai.operations.get({ name: operation.name });\n}\n\n\u002F\u002F Query documents\nconst model = ai.getGenerativeModel({\n  model: 'gemini-2.5-pro',  \u002F\u002F Only 2.5 Pro\u002FFlash supported\n  tools: [{\n    fileSearchTool: {\n      fileSearchStores: [fileStore.name]\n    }\n  }]\n});\n\nconst result = await model.generateContent('How do I install the product?');\nconsole.log(result.response.text());\n\n\u002F\u002F Get citations\nconst grounding = result.response.candidates[0].groundingMetadata;\nif (grounding) {\n  console.log('Sources:', grounding.groundingChunks);\n}\n```\n\n**Load `references\u002Fsetup-guide.md` for complete walkthrough with batch uploads, error handling, and production checklist.**\n\n---\n\n## Critical Rules\n\n### Always Do\n\n1. **Use delete + re-upload** for updates (documents are immutable)\n2. **Calculate 3x storage** (embeddings + metadata = ~3x file size)\n3. **Configure chunking** (500 tokens for technical docs, 800 for prose)\n4. **Poll operations** until `done: true` (with timeout)\n5. **Use force: true** when deleting stores with documents\n6. **Use Gemini 2.5 models** only (2.5-pro or 2.5-flash)\n7. **Keep metadata under 20 fields** per document\n8. **Estimate indexing costs** ($0.15\u002F1M tokens one-time)\n\n### Never Do\n\n1. **Never try to update** documents (no PATCH API exists)\n2. **Never assume storage = file size** (it's 3x)\n3. **Never skip chunking config** (defaults may not be optimal)\n4. **Never upload without polling** (operation may still be processing)\n5. **Never delete without force** if store has documents\n6. **Never use Gemini 1.5 models** (File Search requires 2.5)\n7. **Never exceed 20 metadata fields** (hard limit)\n8. **Never upload large files without cost estimate**\n\n---\n\n## Top 3 Errors Prevented\n\n### Error 1: Document Immutability\n\n**Problem:** Trying to update existing document\n\n**Solution:** Delete + re-upload pattern\n\n```typescript\n\u002F\u002F Find and delete old version\nconst docs = await ai.fileSearchStores.documents.list({\n  parent: fileStore.name\n});\nconst oldDoc = docs.documents.find(d => d.displayName === 'manual.pdf');\nif (oldDoc) {\n  await ai.fileSearchStores.documents.delete({\n    name: oldDoc.name,\n    force: true\n  });\n}\n\n\u002F\u002F Upload new version\nawait ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('manual-v2.pdf'),\n  config: { displayName: 'manual.pdf' }\n});\n```\n\n### Error 2: Storage Quota Exceeded\n\n**Problem:** Storage calculation wrong (3x multiplier)\n\n**Solution:** Estimate before upload\n\n```typescript\nconst fileSize = fs.statSync('data.pdf').size;\nconst estimatedStorage = fileSize * 3;  \u002F\u002F Embeddings + metadata\n\nif (estimatedStorage > 1e9) {\n  console.warn('⚠️ May exceed free tier 1 GB limit');\n}\n```\n\n### Error 3: Model Compatibility\n\n**Problem:** Using wrong model version\n\n**Solution:** Use Gemini 2.5 only\n\n```typescript\n\u002F\u002F ✅ CORRECT\nconst model = ai.getGenerativeModel({\n  model: 'gemini-2.5-pro',  \u002F\u002F or gemini-2.5-flash\n  tools: [{ fileSearchTool: { fileSearchStores: [storeName] } }]\n});\n\n\u002F\u002F ❌ WRONG\nconst model = ai.getGenerativeModel({\n  model: 'gemini-1.5-pro',  \u002F\u002F Not supported!\n  tools: [{ fileSearchTool: { fileSearchStores: [storeName] } }]\n});\n```\n\n**Load `references\u002Ferror-catalog.md` for all 8 errors with detailed solutions including chunking, operation polling, metadata limits, and force delete requirements.**\n\n---\n\n## When to Use File Search\n\n### Use File Search When:\n\n- Want fully managed RAG (no vector DB)\n- Cost predictability matters (one-time indexing)\n- Need 100+ file format support\n- Citations are important (built-in grounding)\n- Simple deployment is priority\n- Documents are relatively static\n\n### Use Alternatives When:\n\n**Cloudflare Vectorize** - Global edge performance, custom embeddings, real-time R2 updates\n**OpenAI Files API** - Assistants API, conversational threads, very large collections (10,000+)\n\n---\n\n## Common Patterns\n\n### Pattern 1: Customer Support Knowledge Base\n\n```typescript\n\u002F\u002F Upload support docs with metadata\nawait ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('troubleshooting.pdf'),\n  config: {\n    displayName: 'Troubleshooting Guide',\n    customMetadata: {\n      doc_type: 'support',\n      category: 'troubleshooting',\n      language: 'en'\n    }\n  }\n});\n```\n\n### Pattern 2: Batch Document Upload\n\n```typescript\nconst files = ['doc1.pdf', 'doc2.md', 'doc3.docx'];\nconst uploadPromises = files.map(file =>\n  ai.fileSearchStores.uploadToFileSearchStore({\n    name: fileStore.name,\n    file: fs.createReadStream(file),\n    config: { displayName: file }\n  })\n);\nconst operations = await Promise.all(uploadPromises);\n\n\u002F\u002F Poll all operations\nfor (const op of operations) {\n  let operation = op;\n  while (!operation.done) {\n    await new Promise(resolve => setTimeout(resolve, 1000));\n    operation = await ai.operations.get({ name: operation.name });\n  }\n  console.log('✅', operation.response.displayName);\n}\n```\n\n### Pattern 3: Document Update Flow\n\n```typescript\n\u002F\u002F 1. List existing documents\nconst docs = await ai.fileSearchStores.documents.list({\n  parent: fileStore.name\n});\n\n\u002F\u002F 2. Delete old version\nconst oldDoc = docs.documents.find(d => d.displayName === 'manual.pdf');\nif (oldDoc) {\n  await ai.fileSearchStores.documents.delete({\n    name: oldDoc.name,\n    force: true\n  });\n}\n\n\u002F\u002F 3. Upload new version\nconst operation = await ai.fileSearchStores.uploadToFileSearchStore({\n  name: fileStore.name,\n  file: fs.createReadStream('manual-v2.pdf'),\n  config: {\n    displayName: 'manual.pdf',\n    customMetadata: {\n      version: '2.0',\n      updated_at: new Date().toISOString()\n    }\n  }\n});\n\n\u002F\u002F 4. Poll until done\nwhile (!operation.done) {\n  await new Promise(resolve => setTimeout(resolve, 1000));\n  operation = await ai.operations.get({ name: operation.name });\n}\n```\n\n**Load `references\u002Fsetup-guide.md` for additional patterns including code documentation search and internal knowledge bases.**\n\n---\n\n## When to Load References\n\n### Load `references\u002Fsetup-guide.md` when:\n- First-time File Search setup\n- Need step-by-step walkthrough with all configuration options\n- Configuring batch upload strategies\n- Production deployment checklist\n- Complete API initialization patterns\n\n### Load `references\u002Ferror-catalog.md` when:\n- Encountering any of 8 common errors\n- Need detailed error solutions with code examples\n- Prevention checklist required\n- Troubleshooting upload\u002Fquery issues\n- Understanding chunking, metadata, or cost calculation problems\n\n---\n\n## Supported File Formats\n\n**100+ formats including:**\n- **Documents**: PDF, Word (.docx), Excel (.xlsx), PowerPoint (.pptx)\n- **Text**: Markdown (.md), Plain text (.txt), JSON, CSV\n- **Code**: Python, JavaScript, TypeScript, Java, C++, Go, Rust, etc.\n\n**Not supported:** Images in PDFs (text extraction only), Audio files, Video files\n\n---\n\n## Pricing\n\n**Indexing (one-time):** $0.15 per 1M tokens\n**Storage:** Free (10 GB - 1 TB depending on tier)\n**Query embeddings:** Free (retrieved context counts as input tokens)\n\n**Example:** 1,000-page document ≈ 500k tokens → Indexing cost: $0.075 → Storage: ~1.5 GB (3x multiplier)\n\n---\n\n## Chunking Guidelines\n\n**Technical docs:** 500 tokens\u002Fchunk, 50 overlap\n**Prose:** 800 tokens\u002Fchunk, 80 overlap\n**Legal:** 300 tokens\u002Fchunk, 30 overlap\n\n```typescript\nchunkingConfig: {\n  whiteSpaceConfig: {\n    maxTokensPerChunk: 500,  \u002F\u002F Smaller = more precise\n    maxOverlapTokens: 50     \u002F\u002F 10% overlap recommended\n  }\n}\n```\n\n---\n\n## Resources\n\n**References** (`references\u002F`):\n- `setup-guide.md` - Complete setup walkthrough (authentication, store creation, file upload, batch patterns, production checklist)\n- `error-catalog.md` - All 8 documented errors with solutions (immutability, storage, chunking, metadata, costs, polling, force delete, model compatibility)\n\n**Official Documentation**:\n- **File Search Overview**: https:\u002F\u002Fai.google.dev\u002Fapi\u002Ffile-search\n- **API Reference**: https:\u002F\u002Fai.google.dev\u002Fapi\u002Ffile-search\u002Fdocuments\n- **Blog Post**: https:\u002F\u002Fblog.google\u002Ftechnology\u002Fdevelopers\u002Ffile-search-gemini-api\u002F\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Fsetup-guide.md` for complete setup\n2. Review `references\u002Ferror-catalog.md` for all 8 errors\n3. Verify model version (must be Gemini 2.5)\n4. Check storage calculation (3x file size)\n",{"name":5,"license":15,"metadata":44,"description":7},{"version":45,"last_verified":46,"token_savings":47,"errors_prevented":48,"production_tested":49,"templates_included":50,"references_included":14},"2.0.0","2025-11-18","~65%",8,true,0,"main","5b00ad8b9f0787969474ff5e9ec417bb55f23827","skills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam","https:\u002F\u002Fvril.li","https:\u002F\u002Fgithub.com\u002FVRIL-LABS","vril.li","𝗥𝗲𝘀𝗲𝗮𝗿𝗰𝗵 𝗮𝗻𝗱 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗺𝗲𝗻𝘁 𝗖𝗼𝗻𝘀𝗼𝗿𝘁𝗶𝘂𝗺","2026-08-24 09:21:38",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":49},[62,65,68],{"tool":63,"command":64},"npx","npx skills add VRIL-LABS\u002Fskill-jam --skill google-gemini-file-search",{"tool":66,"command":67},"bunx","bunx skills add VRIL-LABS\u002Fskill-jam --skill google-gemini-file-search",{"tool":69,"command":70},"pnpm","pnpm dlx skills add VRIL-LABS\u002Fskill-jam --skill google-gemini-file-search","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002FSKILL.md",[73,79,83,87,93,97],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Ferror-catalog.md","REFERENCE","参考文档",4992,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Freferences\u002Ferror-catalog.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002FREADME.md",2012,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Freferences\u002FREADME.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fsetup-guide.md",4292,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Freferences\u002Fsetup-guide.md",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fcreate-store.ts","SCRIPT","脚本",3819,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Fscripts\u002Fcreate-store.ts",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002FREADME.md",2201,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Fscripts\u002FREADME.md",{"path":98,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":99,"sourceHtmlUrl":100},"templates\u002FREADME.md",2154,"https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fai-ml\u002Fclaude-skills-main\u002Fclaude-skills-main\u002Fplugins\u002Fgoogle-gemini-file-search\u002Fskills\u002Fgoogle-gemini-file-search\u002Ftemplates\u002FREADME.md",[102,128,142,154,179,201],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":39},"01M6R2CQRG190P09DAHMF8M5QP","three-best-practices","Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frontend\u002Fneversight-skills_feed-three-best-practices-1.0.2\u002FSKILL.md",[],[109,110,111,112,113,114,115,116,117,118,119,120,34,121,122,123,124,125,126,127],"best practices","three","three best practices","writing","performance","webgpu","guidelines","tasks","code","shaders","Optimization","3D","agent-skills","scenes","lighting","triggers","rendering","when","best practices guidelines",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":39},"01M6R2BPMDYK9XKWPARY0S5MS3","javascript-best-practices","Modern JavaScript best practices and performance optimization guidelines. Use when writing, reviewing, or refactoring JavaScript code to ensure optimal performance, maintainability, and modern patterns.","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frontend\u002Fneversight-skills_feed-javascript-best-practices-1.0.2\u002FSKILL.md",[],[135,109,136,112,113,115,117,119,137,138,34,139,140,141,126],"javascript","JavaScript Best Practices","refactoring","performance optimization","patterns","maintainability","name",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":39},"01M6R2B41BN09FYH76BAC5FT7X","css-best-practices","Guidelines for building modern, performant, and accessible CSS using MDN best practices. Use this when styling components, fixing layout shifts, or optimizing CSS performance.","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frontend\u002Fneversight-skills_feed-css-best-practices-1.0.3\u002FSKILL.md",[],[149,109,150,113,151,115,34,152,153,26,126],"css","css best practices","components","styling","layout",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":39},"01M6R2A1CEF123TZCNM1XJ2XQ4","frontend-dev","Full-stack frontend development combining premium UI design, cinematic animations,\nAI-generated media assets, persuasive copywriting, and visual art. Builds complete,\nvisually striking web pages with real media, advanced motion, and compelling copy.\nUse when: building landing pages, marketing sites, product pages, dashboards,\ngenerating media assets (image\u002Fvideo\u002Faudio\u002Fmusic), writing conversion copy,\ncreating generative art, or implementing cinematic scroll animations.","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fweb-frontend\u002Fminimax-ai-skills-frontend-dev-1.0.1\u002FSKILL.md",[],[161,162,163,164,112,165,149,166,167,168,169,170,171,172,173,174,175,176,177,178],"frontend","dev","frontend dev","design","image","react","ui","Video","Media","Audio","Tailwind","stack","music","aida","framer motion","implementing","framer","generative",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":39},"01M6R20VQ98KDX4J37TGE0FNHW","exa-rate-limits","Implement Exa rate limiting, backoff, and idempotency patterns.\nUse when handling rate limit errors, implementing retry logic,\nor optimizing API request throughput for Exa.\nTrigger with phrases like \"exa rate limit\", \"exa throttling\",\n\"exa 429\", \"exa retry\", \"exa backoff\".","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fsearch-research\u002Fjeremylongshore-claude-code-plugins-plus-skills-exa-rate-limits-1.0.0\u002FSKILL.md",[],[186,187,188,189,190,191,192,193,194,139,195,196,197,30,198,176,26,199,200,126],"exa","exa rate limits","rate","limits","throttling","api","read","write","edit","io","throughput","retry","limit","rate limit","request",{"skillNo":202,"name":203,"nameZh":6,"description":204,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":205,"categories":206,"keywords":207,"publishedAt":39},"01M6R20FV0TM7ZZTZNG7JQ1A82","exa-deploy-integration","Deploy Exa integrations to Vercel, Fly.io, and Cloud Run platforms.\nUse when deploying Exa-powered applications to production,\nconfiguring platform-specific secrets, or setting up deployment pipelines.\nTrigger with phrases like \"deploy exa\", \"exa Vercel\",\n\"exa production deploy\", \"exa Cloud Run\", \"exa Fly.io\".","https:\u002F\u002Fgithub.com\u002FVRIL-LABS\u002Fskill-jam\u002Fblob\u002Fmain\u002Fskills\u002Fsearch-research\u002Fjeremylongshore-claude-code-plugins-plus-skills-exa-deploy-integration-1.0.0\u002FSKILL.md",[],[208,209,186,210,211,212,213,214,215,216,192,193,194,217,218,219,195,220,221,126],"deploy","integration","exa deploy integration","deployment","run","secrets","fly","Bash","integrations","vercel","up","platform","trigger","cloud run"]