Introduction
A dataset is the set of test cases an experiment runs. This page is for anyone who builds evaluations for an agent. It explains what a dataset and a test case contain and shows one example, so you know what to prepare before an experiment can score your agent.
Where to find it
AI Governance > Datasets, in the AI Evaluation group. It opens the Datasets tab of the Evaluation workspace.
Before you begin
You need evaluation access to see Datasets.
Creating a dataset needs create access. Adding or changing its test cases needs edit access on that dataset. Without edit access you can still open a test case, but only to read it.
What a dataset holds
Select New Dataset and give it a name. Then choose the Type of Test Cases. You can also add a description and tags.
Type | Use it for |
|---|---|
| A single input and its response, for example a retrieval (RAG) agent. |
| Multi-step conversations, for example a customer care agent. It also asks for a |
What a test case contains
A test case is one record in the dataset. In an LLM dataset, only Input is required. The other fields are optional, but the metrics you run can only score what the case holds.
Field | What it holds |
|---|---|
| What the agent is asked. |
| The answer you expect for that input. |
| Ground truth for the input: the facts a correct answer rests on. |
| The tools you expect the agent to call for that input. |
| The output the agent generated for the input. |
| The text chunks that were retrieved for the input. |
| The tools the agent called when it generated the output. |
The first four fields are the question and what should happen. The last three describe what the agent did. A case you create from Add from Sessions brings the input, the agent's actual output and the tools it used from the real conversation. Conversational test cases also carry Turns and Agent Role. You can add your own fields to a dataset with Manage Fields.
How a test case is scored
When you run an experiment, the agent answers each test case and every metric you selected scores the answer. Each metric reads certain test-case fields, produces a score, and passes or fails the case against the criteria you set. Fill in the fields your metrics read. For example, an accuracy check compares the agent's answer with Expected Output, and a retrieval metric needs the retrieved context.
Example
An illustrative test case for a support agent in an LLM dataset:
Field | Value |
|---|---|
| What is your refund window? |
| You can request a refund within 30 days of purchase. |
| Refund policy: refunds are accepted within 30 days of purchase. |
An experiment sends the input to your agent and compares its answer with the expected output and the context. If the right behaviour is an action rather than an answer, fill in Expected Tools too.
Go deeper
For the ways to add test cases, scenario-based datasets and dataset permissions, see Evaluation Datasets.