An answer with a reading list #

A patron asks when a particular edition of a book was published. A model might supply a date from patterns learned during training. A retrieval-augmented system first looks for relevant passages in a collection, then generates an answer with those passages available. A library can update its catalog independently of the underlying model. It can also show the reader the document used to support a particular claim.

Section sources [1]

Retrieving useful passages #

A search system can rank documents by matching terms. A dense retriever instead learns numerical representations of queries and passages, then searches for representations that are close under a scoring function. This can connect different ways of expressing the same idea. Karpukhin and colleagues demonstrated a dual-encoder approach for open-domain question answering. The choice of retrieval method still depends on the collection and the kinds of questions readers actually ask.

Section sources [2]

The original RAG experiments #

In 2020, Patrick Lewis and colleagues combined a pretrained generator with a learned retriever accessing passages from Wikipedia. They compared a formulation that uses the same retrieved document choice across a generated sequence with one that can vary the choice by token. Their reported gains on selected knowledge-intensive tasks helped establish retrieval and generation as components that can be studied together.

Section sources [1]

Checking the whole answer #

Failures have different remedies. If the right edition is missing from the collection, changing the generator’s instructions cannot recover its catalog record. If the right passage appears among the results but the answer cites a date from a different edition, retrieval has succeeded while attribution has failed. Evaluators can check document coverage, ranking quality, answer correctness and whether the cited passage supports the specific sentence the reader sees.

Section sources [1] [2]

A retrieved passage can still be overlooked #

Nelson Liu and colleagues tested language models on questions with several documents in context and on tasks that required retrieving a value for a given key. They found that the position of the relevant information could affect accuracy. In their experiments, systems often performed better when evidence appeared near the beginning or end than when it appeared in the middle. Retrieving a relevant passage and giving it to a model therefore leaves a further question about whether the model uses it.

A collection of competing sources makes this observable. Hold the answer-bearing passage and the distractors fixed, then change their order. If an answer changes, its source collection has stayed constant while the presentation has changed. This test complements retrieval recall and citation checking. A reader who sees a long list of references benefits from knowing which passage actually supports the answer.

Section sources [3]

Does every sentence have supporting evidence? #

Suppose a generated answer says a railway station opened in 1895 and was rebuilt after a flood. Its single reference confirms the opening date but gives a different reason for the rebuilding. The name of the station is right and the document is relevant, yet it supports only part of the sentence. Adding a second reference helps only if the two sources together support what the sentence says.

Tianyu Gao and colleagues built the ALCE benchmark to examine this problem. They evaluated whether the cited passages supported a statement and whether individual citations contributed evidence. On the ELI5 long-form question set, even the best systems they tested lacked complete citation support about half the time. Support from a passage and accuracy in the world are distinct tests. An answer can faithfully repeat an error in an outdated source, while an accurate answer can leave the reader unable to verify it. Research on AI hallucinations takes the answer apart into individual claims so that one sound detail cannot hide a second, unsupported one.

Section sources [4] [5]

Sources

  1. Patrick Lewis and colleagues, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (2020) arxiv.org
  2. Vladimir Karpukhin and colleagues, Dense Passage Retrieval for Open-Domain Question Answering (2020) arxiv.org
  3. Nelson Liu and colleagues, Lost in the Middle: How Language Models Use Long Contexts (2024) aclanthology.org
  4. Tianyu Gao and colleagues · Enabling Large Language Models to Generate Text with Citations (2023) aclanthology.org
  5. Sewon Min and colleagues, FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generation (2023) aclanthology.org