Retrieval-augmented generation (RAG)

Retrieval-augmented generation (RAG) is a method in which a large language model first retrieves passages from a chosen set of documents and then writes its answer from those passages, usually with references to them. It ties answers to a document set and lets the content change without retraining the model.

What it is

Retrieval-augmented generation (RAG) is a way of answering questions with a large language model in which the system first looks up relevant passages in a chosen document set and then asks the model to compose its answer from those passages. The facts come from the retrieved text, not from what the model absorbed in training. A well-built system also shows which passages it used.

The parts of a RAG system are:

Why it matters

A large language model on its own writes fluent text that can contain statements with no support, a failure known as hallucination. In finance, an invented clause or a misread definition can reach a client, a regulator or a decision.

RAG narrows that gap by tying the answer to documents a reader can open and check. The Irving Fisher Committee bulletin on data science in central banking, published by the BIS, describes it as a way to improve the accuracy and reliability of model output by drawing on verified sources. It does not remove errors: the retriever can miss the right passage, and the model can still misstate what it found.

A second benefit is maintenance. When a policy changes, the owner updates the document store. The model is not retrained.

Worked example

Illustrative numbers. A policy library holds 200 documents, split into 2,000 passages. An analyst asks which approval a certain type of client request needs. The retriever returns the 3 passages that match best, and the model answers from them, citing passage 2.

To test the system, the team prepares 20 questions with known answers. For 18 of them, the passage that holds the answer is among the 3 returned. The retrieval hit rate is 18 divided by 20, which is 90 percent.

The 2 failures are traced to a policy written under a different title from the one used in the question. The owner adds that wording to the document, and the test is run again.

Assumptions

Who uses it

Common confusions

7Roles that need it

8Skills behind it

Sources behind this page (2) · Updated 4 Nov 2026

Concept