Troubleshoot EvaluationBeta
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.
Fix Retrieval Dataset Generation
These problems can come up when you generate a retrieval Dataset from an index:
- The window closed or you left the page. Closing the dialog, leaving the page, or switching workspaces stops the run and saves nothing. Start again and keep the window open.
- The LLM list is empty. Connect an LLM in this workspace, then open the dialog again.
- The index has no suitable passages. The index has no chunks of at least 200 characters among its first 400. Choose an index with indexed files.
- Every question failed. The dialog shows the LLM's error and saves nothing. Fix the cause the error names, for example the model connection, and click Generate again.
- The save failed. The written questions are kept, and the button changes to Save Dataset. Click it to save again. This makes no new LLM calls.
Fix Input Warnings for a Pipeline Version
A test case sends its inputs to a pipeline by key. A key that the pipeline version doesn't declare under inputs in its YAML is dropped. An input the version needs that no key fills stays empty. A warning lists both, before the test cases run. The warning never blocks you: you can still import the table or start the Experiment.
The check runs in two places:
- Table import: Under the table, you can optionally pick a pipeline and a version. The Dataset isn't tied to that pipeline, and you can clear the picker. If you open the import from a pipeline's tab, that pipeline is preselected and you can change only the version.
- New Experiment: After you pick a Dataset and a Candidate version, the check covers the Dataset's table rows.
The check needs write access to the pipeline, because the platform builds the version's components to learn which inputs are required.
To fix the warning:
- Pick a pipeline version in the import form or in the New Experiment form.
- For each required input that no column fills, add a column with that name, or rename an existing column to it. If the warning names several options joined by or, any one of them fills the input. A
querycolumn also fills amessagesinput. - For each column the version drops, rename it to an input the version declares, or leave it as it is if you don't need it as an input.
- Check the warning again. The check updates about half a second after you stop editing. When the warning is gone, every input the version needs has a column.
If you expect a warning and don't see one, check these causes:
- No version or no input columns: Nothing is checked until a version is picked and the table has input columns.
- No write access: Ask a workspace admin for write access to the pipeline.
- The platform can't check the version: The version isn't in this workspace, or its YAML can't be read. Open the version in the pipeline and fix it.
- Multi-turn test cases or the Baseline: The Experiment check covers only single-turn table rows and only the Candidate. The run's own replay check still reports inputs that fail there.
If the warning says the required inputs are unknown, the platform couldn't build the version's components, so it lists only the columns the version drops. Fix the version's configuration, then check again.
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:
- 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.
- Reduce the number of criteria in the metric, or split it into several metrics. Every criterion needs an answer in the same report.
- 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.
- 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?.
- 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_COLUMNat 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_FIELDto the name of the metadata field that holds the ID. - Reranker scores don't differ from the retriever's.
COMPONENTSis stillNone, 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.
- 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.
- Click Rerun failed evaluations to score the failed evaluations again. Evaluations that succeeded aren't repeated.
- 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
betterfor 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.
Fix Goals Suggested by the AI Assistant
These problems can come up when you start with suggested Evaluation goals:
- A suggestion appears as a read-only card and doesn't fill in anything. No create form is open, so the assistant can't fill one in. Nothing is stored. Click New Evaluation goal to create the goal with the assistant. After you open the form, click Fill form on the card to fill it in.
- A suggestion in a restored chat doesn't fill in the form. Suggestions from an earlier chat only fill in the form when you click Fill form on the card while a create form is open.
- The form didn't fill in on its own. The reply holds several suggestions or a card for creating several goals, so no single suggestion is chosen for you. Click Fill form on the suggestion you want.
- The form is filled in without a Metric. The assistant's suggestion uses code that the form can't read as a Metric declaration, or the Evaluator list couldn't be loaded. Check the Evaluator code, and set the pass rule yourself after the form reads the Metric.
- The chat's Create button isn't available. Another goal is being created, or the form holds this suggestion and its values are still loading or don't pass the checks for Create in the form. Fix the form values, or wait for the other goal to finish.
- Some goals weren't created. When you create several goals at once, the card shows the error on each failed goal's row. Click Retry on the row to try again. If the error is that a goal or Evaluator conflicts with one that already exists, rename it or change its code. To adjust a goal with the assistant, click Fix in chat on its row. The goals that were created stay, and the card creates only the ones that are still missing.
- A revision isn't saved and the card reports a failed save. The assistant couldn't read the code of the Evaluator that the revision names, so nothing was sent. Try again, or open the goal and edit its Evaluator yourself.
Related Information
Was this page helpful?