Skip to main content
In the previous guide, your evaluator revealed a pattern, and Signal may have filed the same failure as an issue with a proposed change. Take a common one: your agent asserts things it cannot back up with a source, because the system prompt says “be helpful” and never tells the agent to stick to retrieved context or say “I don’t know.” Whatever failure you found, the workflow is the same. Start from the traces your evaluator flagged, often the same runs Signal linked as evidence. Fix the prompt in the Playground using the exact inputs that went wrong, then run the new prompt across a full dataset. A proposed fix, whether yours or Signal’s, is a hypothesis until an experiment confirms it improves your evaluator’s scores.
Arize AX Traces view with Alyx assistant open, a request about evaluator failures this week, and Alyx task plan and progress

Reviewing the traces an evaluator flagged, with Alyx open to help triage.

This is Part 4 of 4: InstrumentSignalEvaluateImprove. You should have evaluation scores from Evaluate your agent on the same project. Those scores are what you compare across experiments.

Choose how you want to work

Use Arize Skills to have your coding agent run improvement workflows from your editor, Alyx for a conversational approach inside the Arize platform, the UI for a hands-on step-by-step experience, or Code to run programmatically. In each path, you’ll build a dataset from failing traces, iterate on your prompt, and compare experiments before shipping.
Use Arize Skills with your coding agent to run the same workflow from your editor. The example prompts below are what you type to your agent. The skill loads automatically and handles the rest. Install the skills plugin and follow Set up Arize with AI coding agents for authentication and CLI setup.

Step 1: See evaluation results on your traces

arize-traceSpans include labels once an eval task has run; see Viewing results in the tracing UI.For example, you might say:
Export spans from my project where my evaluator failed this week
Terminal showing ax spans export command, export success message, summary of flagged spans, and a table of span and trace IDs with evaluator columns

Exporting the spans an evaluator flagged as failures for triage.

Step 2: Create a dataset

arize-datasetFor example, you might say:
Create a test dataset from those failing traces
Terminal: a test-cases dataset created from failing traces, with schema fields for input, reference text, original output, trace and span IDs, and status counts

A test dataset created from the failing traces.

Step 3: Improve the system prompt

arize-prompt-optimizationFor example, you might say:
Extract the system prompt from the failing spans and generate an improved version. Use my evaluator’s labels and explanations as signal for what to fix.
Improved system prompt with notes referencing evaluator labels and span-level failures

An improved system prompt generated from the failing spans, using the evaluator's labels as signal.

Step 4: Run both prompts as experiments

arize-experimentReuse the same evaluators you trust in production; see Run evals on experiments.For example, you might say:
Run both prompt versions (original and the updated one) against the dataset and compare my evaluator’s scores.
Experiment comparison table: original prompt at 4/5 versus improved prompt at 5/5 (100%)

An experiment comparison showing the improved prompt scoring higher than the original on the evaluator.

Congratulations!

You’ve completed the full improvement loop:
  1. Traced your app to see what’s happening inside it.
  2. Detected a recurring failure, with Signal or your own review of the traces.
  3. Evaluated responses automatically to measure that failure on every new run.
  4. Proved your fix works across a representative dataset with experiments.
You now have a repeatable, data-driven process for improving your LLM application. No more guessing, no more hoping: you can measure quality and demonstrate improvement. And the loop keeps running on its own, because Signal files the next issue while your evaluators score every new response. Next up: deepen your tracing foundation so your improvement loop stays grounded in complete, high-quality telemetry.

Previous: Evaluate your agent

Learn more about Experiments