1
Create a dataset
- Download travel-support.csv: three Basic fare questions, each with its correct answer.
- Go to Datasets → New Dataset → Upload CSV, name it
travel-support, add the file, and click Create Dataset.
2
Load the dataset in the Playground
-
Go to Playgrounds and choose
travel-supportfrom Select a Dataset. Its columns become variables like{question}. -
Use this as the user prompt:
Selecting a dataset in the Prompt Playground.
3
Add an evaluator
-
Click Add Evaluator → New Evaluator and pick the Q&A template, which labels each answer
correctorincorrectagainst reference data. -
Under Map Variable to Data:
- Save the evaluator.
4
Run the first experiment
- Click Run. The Playground runs the prompt over every row and saves the results as an experiment.
- Click View Experiment and hover each label to read the judge’s explanation.
incorrect labels, since the prompt doesn’t know the policy. This first experiment records how your prompt performs today. It is the baseline you measure every later change against.5
Change the prompt and rerun
-
Click Add → Duplicate and replace the copy’s user prompt with:
- Click Run All.
6
Compare experiments
- Open the dataset’s Experiments tab, select both runs, and click Compare.
- Did quality improve? Rows labeled
incorrectin the baseline are nowcorrect. - Did anything get worse? Rows labeled
correctin the baseline are stillcorrect. - What does the gain cost? Latency and token usage show the speed and cost of the new prompt.

Two experiments compared side by side on the same evaluator.
7
Save the prompt
- If the new prompt wins, click Save Prompt to version it in Prompt Hub.
- Add new failing traces from production to the dataset as you find them, so each experiment tests against more real-world cases.
Other ways to run experiments
This guide uses the Prompt Playground. Choose a method based on what you’re changing and where you work.
On your full agent, in the Agent Playground. Register your agent’s endpoint, then click New Experiment → Run in Agent Playground. The same dataset runs through your entire agent system, so a change to a tool, retrieval, or routing is scored the same way as a prompt change. Compare outputs, traces, and evaluation scores across runs.
With your coding agent, using Arize Skills (
arize-dataset, arize-experiment, arize-evaluator, and arize-prompt-optimization). See coding agent setup for authentication.
ax CLI: