Block 1 - On form submission
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2.2
This workflow is provided as-is. Please review and test before using in production.
This workflow contains community nodes that are only compatible with the self hosted version of n8n. This workflow provides a complete, ready to use template for a Retrieval Augmented Generation (R...
n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chattrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aji Prakoso.
Original n8n.io sourceThis workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This workflow provides a complete, ready-to-use template for a Retrieval-Augmented Generation (RAG) system. It allows you to build a powerful AI chatbot that can answer questions based on the content of PDF documents you provide, using a modern and powerful stack for optimal performance.
This workflow operates in two distinct stages:
1. Data Ingestion & Indexing:
2. Conversational AI Agent:
gpt-4.1), which generates a helpful, context-aware answer.Using this workflow is a two-step process:
The Form Trigger is just an example. Feel free to replace it with other triggers, such as a node that watches a Google Drive or Dropbox folder for new files.
To run this workflow, you will need active accounts and API keys for the following services.
Embeddings OpenAI and OpenAI Chat Model nodes.Pinecone Vector Store and VectorDB nodes. You also need to provide your Pinecone Environment.Reranker Cohere node.This template is a great starting point. Here are a few ways you can customize it:
AI Agent node to change the bot's behavior, tone, or instructions.gpt-3.5-turbo for lower costs) in the OpenAI Chat Model node.VectorDB tool node, you can modify the Top K parameter to retrieve more or fewer document chunks to use as context.Form Trigger with an automated one, like a node that triggers whenever a new file is added to a specific cloud storage folder.This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Build a PDF-based RAG system with OpenAI, Pinecone and Cohere reranking |
|---|---|
| Complexity | intermediate |
| Nodes | 14 |
| Categories | Internal Wiki, AI RAG |
| Author | Aji Prakoso |
| Published | 07 Jul 2025 |
Use the JSON export at /data/workflows/5734/5734.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
This workflow contains community nodes that are only compatible with the self hosted version of n8n. This workflow provides a complete, ready to use template for a Retrieval Augmented Generation (R...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI RAG use case.