Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Troubleshoot EvaluationBeta

Beta
This is coming — this page describes a feature that's still being rolled out and may not be available to you yet.

Fix common problems that come up when you evaluate your pipeline with Datasets, metrics, experiments, and Evaluation goals.

Datasets​

Fix a Dataset Built from Pipeline Traffic​

These problems can come up when you create a Dataset from pipeline traffic:

  • No Sessions in the window. With As recorded, the platform creates no Dataset. With Convert with AI, the conversion fails with a message that the pipeline has no Sessions in the window, and nothing is created. Choose a longer window or a pipeline that received traffic.
  • The window is too long. A window over 90 days is rejected. Choose a shorter one.
  • Convert with AI is turned off. Your platform setup can't generate test cases. Choose As recorded, or ask your administrator whether conversion can be set up.
  • The Dataset is smaller than the size you set. The window held fewer Sessions than the size, or, with Convert with AI, some Sessions were skipped.

Metrics​

Fix Sessions Where the Judge Didn't Conclude​

If a session shows as broke and the run reports that the judge didn't conclude, an LLM judge read the session but never sent a complete, valid report of its answers. Your pipeline, rate limits, and capacity aren't the cause.

An LLM judge gets up to eight steps to read the session and report. If it hasn't sent a valid report by then, it gets two more steps in which it can only report. In that closing round, it's told to answer from what it has read, to use not applicable with a reason instead of guessing, and to fix whatever was wrong with its earlier report. So some sessions can come back as N/A with a reason instead of as broke. A session ends in error only if the judge still hasn't reported after those two steps.

To reduce these errors:

  1. Open the metric and check that its criterion asks for one specific thing the judge can answer from the session. A criterion that needs a lot of reading uses up the judge's steps before it can report.
  2. Reduce the number of criteria in the metric, or split it into several metrics. Every criterion needs an answer in the same report.
  3. For a metric that answers per turn, check how many turns the failing sessions have. A long conversation takes more steps to read. If the failing sessions are long, run the experiment on shorter sessions.
  4. Use a model that calls tools reliably. A judge reports by calling a tool, so a model that handles tool calls poorly fails more often. In the metric, choose a different model under Which model should judge?.
  5. Test the metric on the failing sessions with Try, as described in Write and Test an Evaluation Metric, and then run the experiment again. When the run finishes, check the metric's scorecard: fewer sessions show as broke.

Fix Retrieval Metrics That Don't Match Your Documents​

These problems can come up when you compare rankers with retrieval metrics:

  • The Metric is not applicable. The test case has no expected column that lists documents. Add one, or set EXPECTED_COLUMN at the top of the Metric's code to the name of the column.
  • Expected documents are never found. The Metric matches an entry against the document's ID, a metadata value such as the file name, or, if the entry contains a space, the document's text. Set ID_META_FIELD to the name of the metadata field that holds the ID.
  • Reranker scores don't differ from the retriever's. COMPONENTS is still None, or it names a component that isn't in the pipeline. Set it to the ranker's name.

Experiments​

Fix Failed Replays in an Experiment​

When replays of a Candidate and Baseline Experiment fail, the Experiment detail page lists the errors and links to the failed replays. To inspect them and rerun only the failed ones, see Diagnose a Failed Experiment.

Fix Failed Evaluations​

When some evaluations of an Experiment fail, the side's card shows a warning with the number of failed evaluations. The results leave them out.

  1. Read the warning. If it says that evaluations failed in the Metric's code, fix the Metric first, because rerunning doesn't help until you do.
  2. Click Rerun failed evaluations to score the failed evaluations again. Evaluations that succeeded aren't repeated.
  3. If you changed a Metric, click Rescore instead. It scores both sides again with the Metric Group as it is now. Every evaluation runs and is billed again. Conversations aren't replayed.

For the other actions on the Experiment page, see Compare Pipeline Versions.

Evaluation Goals​

Fix a Goal That Can't Be Saved​

A goal is refused when its rule doesn't fit the metric. The message names the field to fix. The most common causes are:

  • The Evaluator doesn't meet the prerequisites: it must declare exactly one metric, with better for a Score or a fixed list of words for a Label. Fix the Evaluator code and save again.
  • The rule field doesn't match the metric: you set a threshold for a Label, or passing values for a Score.
  • The threshold is outside the score's declared range.
  • A passing value isn't one of the label's words.
  • The Evaluator code declares a metric that can't be read as written, for example one that uses a variable where a fixed value is needed. Write the declaration with plain values.

Fix Goals That Show No Verdict​

If you click Evaluate now and no verdicts appear, check these causes:

  • The pipeline has no live Sessions in the last 7 days: Send queries to the deployed pipeline, for example from an app or the API, and evaluate again.
  • The pipeline has no Evaluation goals: Add at least one goal, and evaluate again.
  • Too many Scoring Runs are in progress in your workspace: Wait for some to finish, and evaluate again.
  • The run couldn't be queued: Try again in a moment. If it keeps failing, contact support.

For how verdicts work, see Check Whether Your Pipeline Meets Its Evaluation Goals.

Fix Problems When Importing Goals​

These problems can come up when you import Evaluation goals from another pipeline:

  • The pipeline list is empty: The workspace has no other pipeline to import from. Create or duplicate a pipeline first.
  • The source pipeline shows no goals: Add goals to that pipeline first. See Define Evaluation Goals on a Pipeline.
  • The import fails: The dialog stays open and an error notification explains why. Nothing was copied, so you can try again.

Fix Suggested Budget and Response Time Goals​

These problems can come up when you add suggested Budget and Response time goals:

  • A suggestion is missing. A suggestion appears only when its Evaluator template is available in your environment. If only the Budget suggestion appears, the Max turn duration template isn't available yet. Click New Evaluation goal to add a goal manually in the meantime.
  • Only one goal exists after Add both goals. Add both goals saves the goals one after the other. If the second save fails, no error appears and the list lacks that goal. Click New Evaluation goal to create the missing goal.