liveBook · Manning

Retrieval-augmented generation

As explained in Machine Learning System Design

A generation approach that retrieves relevant external information and supplies it to a generative model as input.

Retrieval-augmented generation separates information access from text generation: relevant data is pulled from a vector database and supplied to a large language model as prompt input. section 3.3

Use the pattern when:

  • A domain-specific language-model application needs information from an external data source. section 3.3
  • The system should decompose the task into retrieval and generation, then process the fused data downstream. section 3.3

How Machine Learning System Design covers it

How deep it goes
Defines the retrieval-and-prompting pattern but does not detail retrieval quality, indexing, prompting, or production operations.
Examples
Uses domain-specific LLM solutions that pull relevant data from a vector database before generation.
What it assumes
Assumes a generative model and an accessible external data source, specifically a vector database in the described pattern.
What you can do after
Apply it by retrieving relevant external data and inserting that data into a generative model’s prompt.
How it connects
Connects large language models, vector databases, data fusion, prompts, and problem decomposition.

Also explained in

Compare how 32 books explain retrieval-augmented generation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.