Context and knowledge

Retrieval-augmented generation (RAG)

stable definition

Definition

Generating a response after retrieving relevant material from an external knowledge source and adding it to model context.

Distinguish it from nearby terms

RAG changes runtime context without changing model weights; fine-tuning changes the model.

Check your understanding

Retrieval can improve relevance but does not guarantee source quality, instruction safety, or correct synthesis.