Definition

RAG

Retrieval-augmented generation supplies retrieved information to a model when it answers. The retriever can use keyword search, vector similarity, filters or a combination. The generator uses the selected material as context. Evaluate retrieval and answer quality separately to find where a workflow lost relevant evidence.

Diagnose the retriever before changing the generator

A customer asks whether an item bought on promotion can be returned. A search result includes the standard policy but omits the promotion exception. Check first whether the exception was indexed and whether the query can retrieve it. If both policies reach the model and the answer still ignores the exception, inspect how the generator chooses and cites evidence.

Original retrieval-augmented generation paper

Intelligence at Scale by Shashank Agarwal

RAG diagram from Intelligence at Scale
Diagram from chapter 9, What Is an Agent?

Explained in

Chapter 9: What Is an Agent?

The moment you give an LLM access to knowledge or tools, it becomes an agent. And that makes all the difference.

Related terms

This is one term. The chapter is the argument.

Intelligence at Scale: 22 chapters, 65,000 words, 80-plus diagrams. Kindle, paperback and hardcover on Amazon.

Buy on Amazon.com
← All terms