Evaluations are off until your deployment administrator turns them on.By default, the Owner, Admins, and Editors can evaluate anything they can access.
What You Can Evaluate
Open Evaluation in the sidebar of what you want to test:- A Workflow app: the LLM, Knowledge Retrieval, and Agent nodes.
- A snippet: the LLM and Agent nodes.
- A knowledge base: how well it retrieves. External knowledge bases aren’t supported.
- An Agent: how well it completes tasks and uses its tools.
Before You Start
- Publish the workflow, snippet, or Agent you want to test. An evaluation runs the published version, not the draft.
- For a Workflow app, make sure its User Input node has no Single File, File List, or JSON Code field.
- If you’ll use metrics that need an embedding model, make sure the workspace has a default embedding model.
- Try a small test set first to see what a full run costs. Each test case costs one run of your app plus the judge’s calls to score it.
Choose What Gets Scored
On the Evaluation page:- Add the metrics. For a Workflow app or snippet, if no built-in metric checks a rule you need, such as a required answer format, build a custom evaluator.
- Choose an Evaluation Framework. It affects only LLM answer and retrieval metrics.
- For the Judge Model, pick a capable model, since it scores more consistently. Where you can, also pick one other than your app’s model, so the judge isn’t grading its own writing.
Leaving the Evaluation page without saving discards your changes.
Decide What Counts as a Pass
To hold every test case to a bar you set, add conditions:- Under Judgment Conditions, add a condition for each score a test case must reach, such as Faithfulness ≥ 0.8 on the node that writes the answer.
- With more than one condition, choose AND to pass only test cases that meet all of them, or OR to pass those that meet any one.
Prepare a Test Set
Base the test cases on real inputs, such as questions your users have actually asked. Include cases that already work, not only the ones that fail. Then, if a change that fixes the failing cases breaks one that used to work, you’ll know from the next evaluation run.Give each node you’re scoring a unique title and publish before you download the template. The template names each node’s
expected_output column after its title, so nodes with the same title would share one reference answer.- Under Input Fields, click Download XLSX Template. Download it again whenever you change the metrics.
-
Fill in one row per test case:
-
index: number the rows 1, 2, 3, and so on. - Inputs: fill in every required input column. A Select column takes one of the field’s options, exactly as written. A Checkbox column takes true/false, yes/no, or 1/0.
-
expected_output(for metrics that compare with a reference answer): on every row, write the answer you’d accept. For a knowledge base, you can list the key facts the retrieved content should cover instead. -
success_criteria(for Task Completion): list what the agent must get done, one requirement per line. The judge checks each one separately. For a travel-booking Agent, a row might hold:If you leave it blank, the judge works from the task alone.
-
- Delete row 2, which explains each column.
-
Save the file as a single-sheet XLSX, or as a CSV in UTF-8. A test set can have up to 500 rows by default (adjustable with
EVALUATION_MAX_DATASET_ROWS).
Run the Test Set
Click Upload & Run Test, choose your file, and click Run Test. The run goes on in the background, and you can follow it in Test History. A workspace can have up to three evaluations pending or running at once by default (adjustable withEVALUATION_MAX_CONCURRENT_RUNS).
In a Workflow app, the runs an evaluation makes are ordinary runs of the app. Expect them among the real ones in:
- Logs, where they show as
WebAppruns by the app’s creator - Monitoring and any tracing integration you’ve connected
- Retrieval Testing > Records of any knowledge base the workflow queries, where their queries show
Appas the source
If the Run Doesn’t Start
A run usually fails to start for one of these reasons:Dataset headers must not be empty.: row 2 of the template, the one that explains each column, is still in the file. Delete it and upload again.Dataset headers must be unique.: two columns share a name. Rename or remove one.Dataset index '…' is duplicated.: two rows share thatindex. A row whoseindexis blank or not an integer is numbered by its position below the header, starting from 1. That number can collide with another row’sindextoo. Give each row its own number.The selected metrics require a non-empty expected_output; invalid rows: …: the listed rows have no reference answer, and a metric you selected needs one. Fill them in.Maximum concurrent runs (…) reached.: your workspace already has as many evaluations pending or running as it allows, including any your teammates started. Wait for one to finish, or cancel one.The customized evaluator must be a published evaluation workflow.: the custom evaluator you added was switched back to a standard workflow. Make it an evaluation workflow again, or use a different evaluator.You do not have permission to run this evaluation workflow.: you lack access to the custom evaluator’s app, or the Test and use app permission on it. Ask for what’s missing, or use a different evaluator.
Cancel or Retry a Run
To stop a run that’s pending or running, click Cancel run in Test History. Rows already scored stay in Test Details, but a cancelled run has no result file. If a run seems stuck atRunning, wait a few minutes. A run that has actually stopped switches to Task could not be completed on its own.
To finish a run that stopped partway, click Retry run in Test History. It scores only the rows that have no result yet. For rows that ended with an error, fix the cause and start a new run.
Read the Results
Click a run in Test History to open Test Details. For a snippet, choose Download result from the run’s menu instead. A- in place of a score, or an empty cell in the result file, means the metric had no value for that row. For what drives each metric’s score, see Evaluation Metrics.
When a row shows an error in place of its actual result, look it up in Troubleshooting.
To share the results or work with them in a spreadsheet, choose Download result from the run’s menu, or click Export in Test Details.
Compare Results After a Change
- Run your test set.
- Change one thing, such as the prompt, the model, or a retrieval setting, and publish it. Leave the evaluation’s framework, metrics, conditions, and judge model as they were, so any difference in the scores comes from your change.
- Run the same file again. If you no longer have it, choose Download test file from the first run’s menu.
-
Open each run in Test Details, or match the rows of their result files by
index.
Troubleshooting
EVAL_TARGET_FAILED
EVAL_TARGET_FAILED
For an Agent, the run failed on this row. Send it the row’s query yourself and watch where it goes wrong.For a Workflow app or snippet, the run couldn’t start for this row. Check the row’s inputs first. A required Number or Checkbox input left empty, a Select value that isn’t one of the field’s options, or text longer than the field allows stops the row before it runs.If every row fails this way, check whether the person who created the app or snippet has left the workspace.
EVAL_METRIC_FAILED
EVAL_METRIC_FAILED
An LLM answer or retrieval metric couldn’t score this row. Find the cause that fits:
- Model problem: the judge or the embedding model failed, or the judge’s answer couldn’t be read. Check that the judge model works, or switch to a more capable one. For metrics that use the default embedding model, check that it works too.
- Nothing to score (Ragas): Faithfulness, for example, has nothing to check in an answer that makes no claims.
- No context (DeepEval Faithfulness): the LLM node’s Context isn’t set, and the prompt the model received on this row had no
<context>tags, or empty ones (as with the result of a retrieval that found nothing). See Faithfulness for the two ways to supply context.
EVAL_CONTEXT_MISSING
EVAL_CONTEXT_MISSING
Under Ragas, a metric that needs context had none on this row. Either retrieval returned nothing for the row’s query, or, for Faithfulness, the LLM node’s prompt held no context in a form Faithfulness reads. See Faithfulness for the two ways to supply context.
EVAL_MODEL_REQUEST_FAILED
EVAL_MODEL_REQUEST_FAILED
The call to the judge model for an Agent metric failed, or its answer couldn’t be read. Check that the judge model works, or switch to a more capable one.
EVAL_TARGET_DATA_MISSING
EVAL_TARGET_DATA_MISSING
An Agent metric didn’t get the run data it needs to score this row. Start a new run.
EVAL_RETRIEVAL_FAILED
EVAL_RETRIEVAL_FAILED
The query to the knowledge base failed for this row. Run the row’s query on the knowledge base’s Retrieval Testing page to see whether it fails there too.
EVAL_CUSTOM_EVALUATOR_FAILED
EVAL_CUSTOM_EVALUATOR_FAILED
Your custom evaluator failed while scoring this row. For the causes and how to fix each, see When the Evaluator Fails on a Row.
No evaluation metrics were generated for this row.
No evaluation metrics were generated for this row.
None of the scored nodes ran successfully for this row, for example because a branch skipped them or one of them failed. In a Workflow app, find the row’s run in Logs to see what happened.