Skip to course content
Free generative AI app course

Generative AI Application Development with Python

Module 13 Activity

Scenario

The capstone: a useful assistant whose boundary is enforced in code and whose evaluation someone else could run.

What you build

A complete assistant - scoped, boundary-enforced, instrumented, tested offline - with an evaluation checklist ending in a verdict.

Steps

  1. Write the scope with a must-never list, refusal conditions, a fixed refusal string and a budget.
  2. Enforce every prohibition by not building the capability. Confirm no code path can set the forbidden flag.
  3. Emit one record per request with both versions, cost, the budget comparison and the boundary flags.
  4. Write the offline suite, forcing the refusal branch with a parameter.
  5. Build an eval set of at least 20 cases where a third expect refusal or escalation.
  6. Report the dimensions separately, keep the boundary checks exact, and end with a verdict.

Evidence to hand in

Review checklist