Course contents · Chapter 3
Building with AIChapter 3 of 42 min reading + practice

Retrieve the right material for the right user

Relevance is not permission, and similarity is not proof that a passage answers the question.

Relevance is not permission, and similarity is not proof that a passage answers the question.

Apply access boundaries before exposing documents. Evaluate retrieval on known questions, including cases with no acceptable source.

The bigger picture

A document-grounded answer has two distinct dependencies: finding appropriate evidence and using that evidence correctly. Improving the wording cannot repair a system that selected an irrelevant or superseded document.

  1. Identify question
  2. Retrieve evidence
  3. Write supported answer
  4. Verify citations
A working model for this course. Use it to locate where a decision or failure occurs.

Concepts to keep close

Retrieval
Selecting potentially relevant material for a question.
Grounding
Supporting an answer with the evidence actually supplied.
Version
A particular state of a document, which may be current or superseded.

Reasoning through the problem

Determine which documents the requester may access.

Search within the permitted collection.

Check whether a relevant permitted answer exists.

Use the idea carefully

Build a source register and questions with known supporting passages. Inspect retrieval separately from the generated answer. Include absent, ambiguous and conflicting information. A system should acknowledge insufficient evidence instead of completing a plausible story. Access checks must apply before private material is included in a response.

Further reading & course resources

Original documentation and teaching references for further investigation.