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

Defining Quality and Acceptance Criteria

Turn a product requirement into a measurable rubric with explicit denominators and failure gates.

45 minutes · Free with an account · preview

What you will learn

  • Turn a bounded application task into measurable acceptance criteria with explicit denominators.
  • Separate task quality from critical failures, latency, and cost when comparing candidates.
  • Calculate slice-level results and make an evidence-based release decision on an original example.

You have built a small assistant that answers questions about a fictional shop's returns policy. It responds fluently, and several examples look correct. Your teammate changes the prompt and says the new version is better. Before you choose between them, you need a definition of better that another person can apply consistently.

This lesson comes after model behavior and application contracts. You already know that a valid response can still be wrong and that repeated calls can behave differently. Here you will turn a product requirement into an evaluation contract. The next lesson covers how to construct the test set and choose graders; the separate evaluation-harness practice turns both lessons into working code.

All products, policies, counts, costs, and thresholds below are invented teaching data. The sample is intentionally small so you can check the arithmetic. Its thresholds are decisions for this exercise, not recommendations for every AI product.

Choose another lesson