RAG
Configured with Agent, Chat Trigger, Document Default Data Loader, Embeddings Google Gemini, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- AI & models
- Files / media
- Trigger
- Data store
- Transform
- Code
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| Default Data Loader | Files / media | Document Default Data Loader | See node parameters |
| Retrieve Documents | AI & models | Tool Vector Store | See node parameters |
| Download File | Files / media | Google Drive | download |
| File Created | Trigger | Google Drive Trigger | See node parameters |
| File Updated | Trigger | Google Drive Trigger | See node parameters |
| Postgres Chat Memory | Data store | Memory Postgres Chat | See node parameters |
| Recursive Character Text Splitter | Transform | Text Splitter Recursive Character Text Splitter | See node parameters |
| Delete Old Doc Rows | Data store | Supabase | delete |
| Set File ID | Transform | Edit Fields | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| RAG AI Agent | AI & models | Agent | See node parameters |
| Supabase Vector Store | Data store | Vector Store Supabase | See node parameters |
| Insert into Supabase Vectorstore | Data store | Vector Store Supabase | See node parameters |
| Embeddings Google Gemini | AI & models | Embeddings Google Gemini | See node parameters |
| Code | Code | Code | See node parameters |
| Embeddings Google Gemini1 | AI & models | Embeddings Google Gemini | See node parameters |
| Google Gemini Chat Model | AI & models | LM Chat Google Gemini | See node parameters |
| Extract from File | Transform | Extract From File |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleDriveOAuth2ApigooglePalmApiopenAiApipostgressupabaseApi
Workflow notes
RAG
RAG
Purpose and structure
This folder contains the RAG workflow. Its executable nodes use agent, chatTrigger, code, documentDefaultDataLoader, embeddingsGoogleGemini, extractFromFile, googleDrive, googleDriveTrigger, lmChatGoogleGemini, lmChatOpenAi, memoryPostgresChat, set, supabase, textSplitterRecursiveCharacterTextSplitter, toolVectorStore, vectorStoreSupabase. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
File Created, File Updated, When chat message received
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/renebell0/n8n-rag-agent/blob/448dab3450b4f57b5277bfadf8f75dfab2ea4eec/RAG.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Herramientas de Agentes para RAG
- Herramienta para Agregar un Archivo de Google Drive a una Base de Datos Vectorial
- Agente de IA con RAG y una Interfaz de Chat