Overview

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.
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.
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.
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.
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.
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.
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.

FAQ

What is the main purpose of framing and scoping an AI evaluation?Framing and scoping turn a vague question like “Is this system any good?” into a clear, shared understanding of what success means, for whom, and under which assumptions. This helps ensure the evaluation answers meaningful questions and supports real decisions.
Why is it important to define explicit evaluation goals before choosing metrics or benchmarks?Because metrics and benchmarks should follow from the decision you want to support. If the goal is unclear, teams may choose measures that are interesting but not useful, leading to bloated or misleading evaluations.
What are the common evaluation goals discussed in this chapter?The chapter highlights six common goals: setting expectations, comparing systems, deciding go/no-go, assessing risk, ensuring compliance, and diagnosing/debugging problems.
When should an evaluation focus on setting expectations?Use this goal when stakeholders need a shared understanding of what the system can and cannot do. It is especially useful early in development and before showing the system to executives, clients, regulators, or pilot users.
What is the difference between a comparing evaluation and a go/no-go evaluation?Comparing evaluates the system relative to a reference point, such as a previous version or competitor. Go/no-go evaluates whether the system meets minimum requirements for deployment, using explicit thresholds and decision criteria.
Why does the chapter emphasize risk assessment for high-stakes AI systems?Because a system can perform well on average but still be dangerous in certain conditions, for certain groups, or under adversarial use. Risk assessment looks for failures, their frequency, and their potential harm before those failures cause real damage.
What makes compliance evaluation different from other evaluation goals?Compliance evaluation is about proving, with evidence, that the system meets regulatory, legal, and organizational requirements. It is often easier to operationalize because requirements can usually be translated into test cases, controls, and documentation.
Why is diagnosing and debugging considered a distinct evaluation goal?Diagnosis is less about proving the system is good and more about finding root causes when something goes wrong. It helps teams trace problems to the model, data, or upstream components so they can apply the right fix.
Why is it important to decide what object of the evaluation to assess?AI systems are often multi-component pipelines, so evaluating the wrong object can produce misleading results. Depending on the goal, you may need to evaluate the end-to-end system, a retrieval module, a generation module, or external knowledge sources.
How should teams choose which evaluation dimensions to include?They should choose dimensions that directly support the current decision and scope. The chapter recommends starting with the smallest useful set of dimensions, considering factors like effectiveness, safety, robustness, fairness, explainability, security, and efficiency based on the system’s context and risk.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Evaluating AI Systems Evaluating AI Systems ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Evaluating AI Systems Evaluating AI Systems ebook for free