What is retrieval-augmented generation (RAG)?
BeginnerConceptRAG & vector databases
Answer
RAG finds relevant documents for a question and puts them into the prompt so the model answers from real, current information instead of memory. A typical flow is: embed the question, search a vector index of your docs, take the top chunks, and ask the model to answer using only those chunks, with citations.