← Dictionary

3. Getting facts right

RAG (retrieval-augmented generation)

The standard recipe for grounded answers: when a question arrives, first search your documents for the relevant passages, then hand those passages to the model and say "answer using only this." The model becomes an open-book exam taker instead of answering from memory.

Why it matters: RAG is how AI answers from your knowledge — policies, contracts, case notes — without retraining any model. Most "chat with your documents" products are RAG under the hood.