RAG is a pattern for grounding generation in information outside the model's original training data.

The basic flow

A system retrieves relevant material, places it in the model's context, and asks the model to answer using that evidence.

The hard part

Generation cannot compensate for poor retrieval. Teams need to test which sources are selected, how citations are shown, and what happens when evidence is missing.