retrieval-augmented generation (RAG) is a technique that links a language model's pre-trained knowledge to outside material, such as documents or databases. The material is split into chunks and indexed in a vector database, and the model pulls from it when it answers. Users meet it in chatbots that answer from uploaded files or company documents, and in answers that cite sources. source: https://www.redhat.com/en/topics/ai/what-is-retrieval-augmented-generation