What is Retrieval-Augmented Generation (RAG)?
RAG is a technique that enhances LLM outputs by first retrieving relevant documents from an external knowledge base and including them in the model's context. This grounds responses in factual sources, reduces hallucination, and enables LLMs to answer questions about information not seen during pre-training.