05 · Getting Models to Act
RAG
Retrieval-Augmented Generation
A way to give a model knowledge it wasn't trained on. When you ask, the system first retrieves relevant documents, then feeds them into the prompt so the model answers from that material. The standard way to build AI over private or current data.
Concrete example
A company chatbot that answers from your internal handbook by fetching the right pages, then summarizing them.
Why it matters
Reduces hallucination by grounding answers in real source text rather than the model's memory.