All lessons in AI Engineering: From Foundation Models to Evaluated Applications

Grounded Answers and RAG Evaluation

Separate retrieval failures from generation failures and define citation and abstention checks.

60 minutes · Members lesson · preview

What you will learn

  • Calculate retrieval and grounded-answer metrics with explicit denominators.
  • Distinguish missing evidence from unsupported generation and invalid citations.
  • Design abstention and access-isolation tests for a retrieval application.

Your assistant quotes the returns policy and attaches a source label. A reviewer clicks the label and finds a real document, but the cited paragraph does not support the answer. A working citation link is useful evidence of plumbing. It is not evidence that the answer follows from the source.

T11 and T12 established how to retrieve and assemble passages. This core knowledge lesson evaluates the resulting application in layers. You will use the acceptance-criteria skills from T05 and test-design skills from T06 to separate retrieval, grounding, citation, abstention, and access failures. Required practice P06 produces the runnable application and its evaluation report.

The fictional shop permits unopened standard returns within thirty days, excludes clearance items, and routes damaged deliveries for human review. The counts and thresholds below are invented for learning. A pass on this small fixture set does not prove reliability on arbitrary customer documents.

Choose another lesson