Skip to course content
Free LLMOps course

LLMOps for Reliable AI Applications

Module 04 Activity

Scenario

The eval set is slow and costs money to run. This activity builds the fast suite that catches most regressions without a model.

What you build

An offline suite covering prompt rendering, schema contracts and every tool refusal branch, running in under a minute.

Steps

  1. Test prompt rendering separately from the model, with hostile inputs including braces in user content and an empty context.
  2. Replace every exact-match assertion with structural ones, including a hedging check.
  3. Test every tool directly, covering every refusal branch. Require the approver as a parameter where an action is gated.
  4. Record a golden payload and a type contract, and run them in CI.
  5. Split the suite into offline and paid, and report the count and wall clock of each.
  6. Confirm the offline suite runs in under a minute on every commit.

Evidence to hand in

Review checklist