# Manage Gemini File Search RAG stores and documents with n8n forms

> Quick Overview This workflow creates and manages Gemini File Search RAG stores via an Agents tool, and ingests documents through an n8n Form that uploads files to Google’s Generative Language API for indexing. How it works 1. Receives tool calls from an n8n Chat Agent with fields like action, storeName, documentName, query, and force. 2. Normalizes the tool input and routes the request to the correct operation (list, create, get, query, list documents, delete document, or delete store). 3. Calls the Google Generative Language API to list stores, create a new fileSearchStore, fetch store status, or run a Gemini grounded query against a selected store. 4. Lists documents in a store or deletes a specific document using its documentName when requested. 5. Deletes an entire store only when force is explicitly set, otherwise returns a force-required error message. 6. Separately, an n8n Form trigger accepts file uploads and either creates a new store or targets an existing store, then uploads

- **Domain**: `n8n-workflow-19717.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19717
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19717.n8n.io
- Documentation: https://n8n.io/workflows/19717
