Basic RAG chat
n8n template #5028Summary
Use templateThis workflow demonstrates a simple Retrieval-Augmented Generation (RAG) pipeline in n8n, split into two main sections: 🔹 Part 1: Load Data into Vector Store Reads files from disk (or Google Drive). Splits content into manageable chunks using a recursive text splitter. Generates embeddings using the Cohere Embedding API. Stores the vectors into an In-Memory Vector Store (for simplicity; can be replaced with Pinecone, Qdrant, etc.). 🔹 Part 2: Chat with the Vector Store Takes user input from a chat UI or trigger node. Embeds the query using the same Cohere embedding model. Retrieves similar chunks from the vector store via similarity search. Uses Groq-hosted LLM to generate a final answer ba
Hand off to your agent
Prompt
Help me set up the n8n workflow "Basic RAG chat" (https://n8n.io/workflows/5028). It uses: Question and Answer Chain, Embeddings Cohere, Vector Store Retriever, Recursive Character Text Splitter, Simple Vector Store, Default Data Loader, Groq Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Question and Answer ChainEmbeddings CohereVector Store RetrieverRecursive Character Text SplitterSimple Vector StoreDefault Data LoaderGroq Chat Model
Similar workflows
NameViews
- Telegram chat with PDF16K
- Automated Book Summarization with DeepSeek AI, Qdrant Vector DB & Google Drive472
- Advanced AI Demo (Presented at AI Developers #14 meetup)24K
- Supabase Insertion & Upsertion & Retrieval24K
- Breakdown Documents into Study Notes using Templating MistralAI and Qdrant22K
- Build a Financial Documents Assistant using Qdrant and Mistral.ai17K
- Bitrix24 AI-Powered RAG Chatbot for Open Line Channels4,903
- Document Analysis & Chatbot Creation with Llama Parser, Gemini LLM & Pinecone DB2,769