Build a RAG system by uploading PDFs to the Google Gemini File Search Store
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Google Gemini Chat Model and HTTP Request. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Create Store (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Merge: merges the data from its input branches
- Get Store (Edit Fields (Set)): sets 1 field: Search Store
- Get Store (Edit Fields (Set)): sets 1 field: Search Store
- Merge: merges the data from its input branches
- Upload File (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Rag Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 1 tool (SearchStore); memory: Simple Memory
- Import to Store (HTTP Request): calls an HTTP API (POST)
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - n8n Form Trigger
n8n-nodes-base.formTrigger - Merge
n8n-nodes-base.merge - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Http Request Tool
n8n-nodes-base.httpRequestTool - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
This workflow implements a Retrieval-Augmented Generation (RAG) system using Google Gemini's File Search API. It allows users to upload files to a dedicated search store and then ask questions about their content in a chat interface. The system automatically…