Before you start
Use the requests you reviewed in Investigate and label a failed run. Start with the $25, $35, and $1 shopping requests, using the outcomes you actually observed. You’ll run these requests again to test changes, so each one needs enough context on its own. The shopping requests above include the shopper’s requirements; a follow-up question would also need the earlier conversation.Ask PXI to help build the dataset
Ask PXI to help build the dataset

PXI's revised proposals after reviewing the budgets and source spans. These proposals haven't been saved.
Step 1: Choose cases that test different conditions
Choose requests that reflect the situations your users encounter. Include:- Failures you want to fix. For example, the recorded $25 request returned an over-budget recommendation.
- Successful requests you want to keep working. The recorded $35 request returned products below its limit.
- Difficult conditions the agent should handle. The $1 request checks what happens when no product meets the budget.

An AI assistant added these budget reviews: 1 means pass and 0 means fail.
Step 2: Add a request to a dataset
Use the top-level span because this dataset will test the complete shopping request. AChatAnthropic or search-products span would give you the input and output of just that step.
- Open a reviewed trace and select Wonder Toys at the top of the tree.
- Choose Add to Dataset, then select
wonder-toys-shoppingif it already exists. - To create it, select the + beside the dataset selector, enter
wonder-toys-shopping, and select Create Dataset.

Select the top-level Wonder Toys span, then use the highlighted database icon to add it to a dataset.
Step 3: Set the expected behavior
Phoenix fills the editor from the span. Check these fields before saving:- Input: Keep the shopper’s complete request in the
inputfield. - Output: Replace the captured answer with your expected behavior. This is the reference output you’ll use when assessing future answers.
- Metadata: Optionally record why you selected the case, such as
case_type: budget_failure.
expected_behavior to describe a good response without requiring exact wording. This is a field we chose; saving it doesn’t run an evaluation. Keep it consistent with the request. Editing the example won’t change the original trace.

Check the request and replace the recorded response with the behavior the test should expect.
Step 4: Review the saved cases
Open Datasets & Experiments → wonder-toys-shopping → Examples. Select an example’s ID to read its full input and reference output, then check that:- Each input contains enough information to run the request again.
- Each reference describes the expected behavior rather than copying a failed answer or its pass/fail label.
- Cases cover different conditions, including passing requests and any failures you observed.

The dataset keeps the reviewed requests and their expectations together for future experiments.
Keep cases useful as the application changes
Keep cases useful as the application changes

