Glossary

Retrieval-augmented generation

RAG

Answering from documents the system retrieves at the time of the question, instead of from the model's training data alone. The retrieved passages go into the context, and the answer is grounded in them.

Early RAG ran one search for every question and passed on whatever came back. Most implementations now are agentic: search is a tool, and the model decides when to search, for what, and whether to search again.

The model is rarely the weak point. If the retrieved passages are right, most models answer well. If they are wrong, none do. The effort belongs in the search system, and in showing sources the reader can open.