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

Preserve context when splitting documents

A passage should retain enough context to interpret its facts and conditions.

A passage should retain enough context to interpret its facts and conditions.

Keep source identity, version and relevant headings with the text. Splitting a statement away from its exception can create a misleading answer.

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

Identify the condition attached to the fact.

Keep related text and metadata together.

Test a question about the exception.

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.