Skip to main content

Retrieve evidence before generating an answer

Context and alternatives​

The corpus now needs explicit source selection. Compare larger prompts, keyword lookup and embedding retrieval. Choose retrieval only where the evaluation set shows useful evidence.

Decision​

Retrieve versioned chunks and include document identifiers and source references with the answer. Treat retrieved text as data, not instructions. Keep model and retrieval adapters separate so either can be replaced behind the consumer contract.

Consequences​

Source selection becomes inspectable, but retrieval can still miss relevant evidence. Measure retrieval and answer quality separately. Abstain when evidence is insufficient. A passing evaluation for one dataset does not establish universal correctness.

This supersedes ADR-0001, applies to the AI gateway and depends on a usable evaluation protocol.