2 Framing and scoping the evaluation
Before evaluating an AI system, the chapter argues, you first need to decide what you are trying to learn and what decision the evaluation is meant to support. Teams often fail by jumping straight to metrics without agreeing on goals, assumptions, or stakeholder expectations, so the chapter reframes evaluation as a process of turning a vague question into a shared, decision-oriented plan. Using a medical advice chatbot as a running example, it shows how different stakeholders can want very different things from the same evaluation: adoption and usefulness, safety and harm prevention, defensible evidence for audits, diagnostic insight for debugging, or a simple go/no-go deployment answer.
The chapter then explains how to prioritize among common evaluation goals such as setting expectations, comparing systems, deciding go/no-go, assessing risk, ensuring compliance, and diagnosing problems. These goals are related but not interchangeable, and trying to satisfy all of them at once usually makes the evaluation shallow and unfocused. Instead, the chapter recommends choosing goals based on decision urgency, system lifecycle stage, domain risk, resource constraints, and the need for scope control, with higher-stakes settings like healthcare pushing attention toward safety, compliance, and risk assessment much earlier. It also stresses that the most useful evaluation often depends on the system’s object of evaluation: sometimes you need the end-to-end experience, and sometimes you must inspect specific subsystems to understand where performance or risk originates.
The chapter also emphasizes that an evaluation must be anchored to a precise task definition and a carefully chosen set of evaluation dimensions. A vague task description can hide mismatches between what stakeholders expect and what the system actually does, leading to scope mismatch, equivalence mismatch, or unclear correctness criteria. To avoid this, the chapter recommends specifying inputs and outputs, defining ground truth, stating what the task does not cover, estimating risk level, and clarifying the system’s autonomy. Finally, it distinguishes evaluation dimensions from metrics and advises selecting only the dimensions needed for the immediate decision—such as effectiveness, robustness, fairness, explainability, security, safety, efficiency, collaboration, ethical alignment, or societal impact—rather than trying to measure everything at once.
Common goals of AI evaluation and the decisions they support.
Typical architecture of a retrieval-augmented generation (RAG) system. The system retrieves relevant content from an external knowledge base based on the user query and supplies it as context to a language model, enabling responses that combine domain knowledge with natural-language generation.
Two common sources of task-definition failure. In a scope mismatch, the system is expected to perform tasks it was never designed to handle while in an equivalence mismatch, stakeholders assume that solving one task is equivalent to solving a different one.
A process for transforming a vague task description into a precise and evaluable task definition. Each step narrows the space for interpretation and reduces the risk of misalignment between stakeholders, developers, and evaluators.
Risk-based classification of AI systems under the EU AI Act. The framework distinguishes between unacceptable, high, limited, and minimal risk systems, with regulatory requirements scaled according to the potential harm and impact of the system.
Common evaluation dimensions for AI systems. Beyond effectiveness, AI systems may need to be evaluated for properties such as robustness, fairness, safety, explainability, security, efficiency, and others.
Summary
- Always start an evaluation by identifying what you need to learn from it and which decisions its results should support.
- Prioritize your evaluation goals. Because different goals require different kinds of evidence and resources, focus on those that matter most given your current priorities, resources, and risks.
- Make sure you have defined the AI task to be evaluated as precisely as possible. Specify the expected inputs and outputs, what counts as correct or acceptable behavior, what falls outside the task's scope, and its potential risks.
- Select and focus on the aspects of system performance and behavior that matter for your goals, rather than attempting to measure everything.
Evaluating AI Systems ebook for free