Retrieval-Augmented Generation

Retrieval-augmented generation combines search or retrieval with a generative model so answers can use external context.
Also known as
RAG

Intuition

The system first finds relevant material, then asks the model to answer using that material.

Technical definition

RAG architectures retrieve documents or passages at query time and condition generation on the retrieved context.

Example

A support bot retrieves product documentation before answering a customer's question.

Common misunderstandings

  • RAG does not automatically prevent hallucination.
  • Retrieval quality often matters as much as model choice.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.