How to Build a RAG Chatbot with n8n | Vector Database + AI Agent + OpenAI

11 Oct 2026 Online Session - Long Video
How do you build a chatbot that can answer questions from your own documents instead of relying only on an LLM's general knowledge? In this AI4LIB session, Mr. Bhavesh Patel demonstrates how to create a Retrieval-Augmented Generation (RAG) chatbot using n8n, a vector database and an LLM. The session begins with the basics of RAG and gradually moves into a practical implementation. You will see how documents are converted into chunks, transformed into embeddings and stored in a vector database. The session then connects that knowledge base to an AI-powered chat interface so that users can ask questions and receive answers based on the uploaded documents. The demonstration uses n8n, Qdrant vector database, OpenAI embeddings and an OpenAI chat model. The workflow also covers AI Agent configuration, system prompts, memory and testing the chatbot with real document-based questions. What you will learn • What Retrieval-Augmented Generation (RAG) means • Why ordinary LLMs can hallucinate or lack organisation-specific information • How RAG connects an LLM with an external knowledge base • The difference between a traditional programming model and machine learning • How documents are converted into pages and chunks • How chunks are converted into embeddings • How embeddings are stored in a vector database • Semantic and similarity search • How to create a Qdrant vector database and collection • How to connect Qdrant with n8n • How to use OpenAI embedding models • How to build the backend knowledge-base workflow in n8n • How to create a frontend chat interface • How an AI Agent uses the vector database as a tool • How to connect an LLM to the AI Agent • How memory/context windows work • How system prompts can restrict answers to information in the knowledge base • How to publish and test the chatbot • How newly uploaded documents become searchable through the RAG pipeline • How the chatbot retrieves information from uploaded PDF documents Live demo of RAG Pipeline