Retrieval-augmented generation (RAG) first searches your own documents for the most relevant passages, then gives those passages to the model with the question. The model answers from your data instead of only from memory, and can point to its sources.