Concept 10 of 19
frameworkRetrieval-Augmented Generation (RAG)
(Retrieval-Augmented Generation)
Open-book exam for the model. Fetch the right page, then let it answer.
Definition
RAG is a pattern where, before the model answers, relevant chunks of your own documents are fetched and pasted into the prompt, so the answer is grounded in your sources instead of the model's frozen memory.
Step 1