2 Framing and scoping the evaluation
Before evaluating an AI system, the chapter argues, you need to decide what you are trying to learn and what decisions the evaluation should support. It shows how teams can get lost when they jump straight to metrics without first aligning on goals, assumptions, and stakeholder needs. Using a medical advice chatbot as an example, it emphasizes that evaluation should be framed as a deliberate process of clarifying success, choosing priorities, and translating a vague question into a focused plan.
The chapter then outlines several common evaluation goals: setting realistic expectations, comparing systems or versions, making go/no-go deployment decisions, assessing risk, checking compliance, and diagnosing failures. These goals are distinct, often in tension, and should be prioritized based on decision urgency, lifecycle stage, domain risk, available resources, and desired scope and depth. The key message is that not every evaluation needs to do everything; in high-stakes settings like healthcare, safety, compliance, and risk often deserve attention before usability or general performance comparisons.
It also explains that a good evaluation requires choosing the right object, task, and dimensions to assess. For complex systems such as retrieval-augmented chatbots, this may mean evaluating the full system, a subsystem like retrieval or generation, or the underlying knowledge source depending on the goal. The chapter stresses the need to define the task precisely, including inputs, outputs, ground truth, exclusions, risk level, and autonomy, because ambiguity leads to scope mismatches and misleading judgments. Finally, it recommends selecting only the evaluation dimensions that inform the current decision, such as effectiveness, robustness, fairness, safety, explainability, security, efficiency, and broader societal impact.
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