Retrieve relevant documents, augment the prompt, then generate an answer.
Retrieval-Augmented Generation = search your knowledge base first, then let the LLM read those snippets and answer. The model stays general; your data stays external and updatable.
Each step below answers: What is this? Why? How? What if removed?
What:
Why:
How:
If removed:
Fine-tuning bakes knowledge into weights (expensive, slow to update). RAG updates documents instantly without retraining.
Context windows are finite. Retrieval picks only the top-K relevant chunks.