A RAG pipeline indexes your documents into a vector database. When a user asks a question, the bot retrieves the right content first, then generates the answer from that content, not from guesswork. If a question falls outside your knowledge base, it says so instead of inventing an answer.