Skip to main content
The Prompt Playground is where you build a prompt, run it across a dataset, score the outputs, and compare variants without writing code. This guide covers the full loop: drafting a prompt, running it as an experiment, comparing runs, and saving the winning version to Prompt Hub. In Arize AX a prompt is a versioned artifact holding its messages, model, invocation parameters, tools, and response format together. See the prompt object for what each version stores and why those pieces are versioned together.

Build a prompt

Navigating to Playgrounds and clicking New Playground in Arize AX

Open Playgrounds and create a new playground

1

Create a playground

Open the Playgrounds page, click New Playground, and choose a prompt playground from the menu.
2

Choose a provider and model

Select the LLM provider and model to run against. Options include OpenAI, Anthropic, Azure OpenAI, Gemini, AWS Bedrock, Google Cloud, NVIDIA NIM, and custom providers. Each provider needs credentials stored in the space before you can run against it, which an admin sets up under model provider integrations.
LLM provider and model dropdowns in the Arize AX Prompt Playground

Provider and model selection in the Prompt Playground

3

Write the messages

Add the system, user, and assistant messages that make up the prompt. Wrap variable names in curly braces, such as {destination}, to fill them from dataset columns at run time.

System and user messages with template variables

4

Add tools (optional)

Open Functions and paste your tool definitions as JSON, adding one entry per tool. Use Functions Selection to tell the model when each tool should be called.
Adding function definitions and setting function selection in the Arize AX Prompt Playground

Tool definitions and function selection

5

Set invocation parameters

Open Params to set temperature, max completion tokens, stop sequences, and the other parameters your provider exposes. Available parameters differ by provider.

Invocation parameters in the Prompt Playground

To start from a prompt your team already has, use the Load a prompt selector in the playground header to pull it from Prompt Hub instead of drafting from scratch.

Run the prompt as an experiment

Running a prompt against a dataset creates an experiment on that dataset, so the results are directly comparable to your other runs.

Running a prompt against a dataset in the Prompt Playground

1

Select a dataset

Choose the dataset to run against, then confirm each {variable} in your messages maps to a dataset column. The Input Variables panel shows the mapping. To reach the playground with a dataset already selected, use New Experiment → Run in Prompt Playground from the dataset.
2

Attach evaluators

Click Add Evaluator to score every row automatically. Load an evaluator saved in the space or create one. See create evaluators.
3

Run

Click Run. With multiple prompts in the playground, the button becomes Run All and each prompt runs against the same rows. Outputs and evaluator scores stream into the table as they complete.

Compare experiments

The playground compares variants you are editing now. The dataset’s Experiments tab compares completed runs, including runs produced by a different experiment type. Side by side in the playground. Add a second prompt to compare wording changes directly, or use Compare Models to run the same prompt against different models. Both hold the dataset fixed, so the wording or model change is the only variable. Open a row’s output, then click View Diff on Experiments to see that row’s change against a baseline. Across runs on the dataset. Open the dataset’s Experiments tab, select two or more runs, and click Compare Experiments for per-row output differences, evaluator deltas, and summary metrics per run. This is where a run from last week and a run from today become directly comparable, whichever experiment type produced them.
Arize AX Compare Experiments view with diff mode enabled, highlighting insertions and deletions against a baseline run

Comparison view with diff mode enabled against a baseline run

Classification metrics

When your task returns a label rather than free-form text, accuracy, F1, precision, and recall are more useful than an output diff. Configure them once per dataset in Metrics Settings on the dataset’s Experiments tab:
  • Ground Truth Column, chosen from the dataset’s own columns.
  • Predicted Column, chosen from the experiment’s output columns.
  • Positive Class Value, the label that counts as positive.
With all three set, the metrics you select are computed for every experiment on that dataset, so classification runs become comparable on the same numbers.

Save the winning prompt

When a variant wins, save it to Prompt Hub so your app can resolve it at runtime and your team can see what changed.
Prompt Hub in Arize AX showing the prompts list and version management

Prompt Hub with its prompt list, versions, and labels

1

Save from the playground

Click Save Prompt to write the current state, including messages, parameters, tools, and response format, as a new immutable version. Add a Commit Message describing what changed, the same way you would for code.
2

Review the version history

Open Prompt Hub to compare versions and see what changed between them.
3

Tag the version you ship

Tag the winning version with your deployment label, such as production, so your app resolves the approved prompt rather than a specific version number.

Prompt version history and comparison in Prompt Hub

For version management from code, see save and version prompts.

Save your playground session

A playground view is a named snapshot of a playground session, holding its prompt messages and tools, model and parameter configuration, dataset selection, and results. Views let you return to a setup, hand it to a teammate, or branch a new variant without rebuilding it. Saved views are listed under Playgrounds, where All, Prompt, and Agent filter by playground type. Each view can be renamed, duplicated, or deleted, and Enable view auto-save keeps a view current as you work.
Arize AX Playgrounds list with options to edit the name, duplicate, or delete a saved playground view

Saved playground views with rename, duplicate, and delete actions

Next steps

Remote agent experiments

Test a deployed agent end to end when the change spans more than one model call.

Code experiments

Run experiments from your own runtime for pipelines and multi-step workflows.

Run evals on experiments

Score outputs with LLM and code evaluators.