Salman Shabbir.
Menu
العربيةGet in touch
All research articles
Paper note · Enterprise search

How to test an answer against its source

What retrieval-augmented generation offers an engineering team.

Published 7 November 2026

The research question

Patrick Lewis and colleagues studied generation conditioned on retrieved passages. Their 2020 work combined a language model with an external index and evaluated the approach on knowledge-intensive tasks. For a team searching project records, the relevant design question is which passage the system can retrieve for inspection.

A revision changes the answer

Consider a hypothetical query about a contract milestone. Revision A specifies June and revision B specifies August. Both passages match the question closely. Showing a source lets the planner check its revision and applicability. Retrieval alone cannot decide which issue governs the project.

A practical evaluation

Prepare questions with known source files, including superseded records and questions the library cannot answer. Check the retrieved passage first, then whether the answer follows from it. A correct passage paired with an incorrect answer points to a different problem from a search that never found the current revision. This is a proposed evaluation for enterprise use, separate from the original paper’s benchmark.

Read the paper by Lewis and colleagues
An engineer compares a marked passage on paper with a document on screen.