Skip to content

Quality Output Evaluation

Quality Output Evaluation is used to check whether LLM outputs meet expectations. By configuring evaluation rules, you can evaluate online model calls or data within a specified scope, and view scores and rule hit results.

Currently, two evaluation types are supported: Prompt Eval and Schema Eval.

Create an Evaluator

Go to Agent Monitoring > Evaluation and click Create Evaluator.

Configure the following information:

  1. Select the evaluation type. When using Prompt Eval, you can select an evaluator Skill template or describe the evaluation goal to generate a configuration;
  2. Select the evaluation target type;
  3. Confirm the evaluation instructions, input structure, and result type;
  4. Run a test with test data;
  5. After confirming that the results meet expectations, publish the evaluator.

Prompt Eval

Prompt Eval uses prompts to judge model inputs or outputs. It is suitable for evaluation scenarios such as content quality, relevance, completeness, and safety.

When configuring, you need to set:

  • Evaluation prompt;
  • Evaluation result and scoring rules.

It is recommended to specify the evaluation goal, judgment criteria, and return format in the prompt to ensure stable evaluation results.

Describe Evaluation Goal

After selecting Prompt Eval, you can enter natural language requirements in "Describe Evaluation Goal" to generate an evaluation configuration. The description should specify the evaluation object, judgment criteria, exceptions, and expected result type. For example:

Check whether the LLM response is polite. Evaluate only the expression style, not factual accuracy. Return whether it passes and explain the reason.

After generation, verify the target type, evaluation instructions, result type, and recommended input, and modify them as needed. In particular, check whether the exception conditions are accurate and whether the selected data contains the evidence required for judgment. Descriptions without valid evaluation dimensions must be supplemented and regenerated.

You can return to the previous step to modify the description. When selecting a platform template, if the page prompts you to clear the existing description, confirm before switching. Description generation applies to Prompt Eval; Schema Eval uses the corresponding structure validation configuration.

Customize Evaluation Input

In "Evaluation Input Structure" under "Evaluation Configuration", you can edit the input template passed to the evaluator, combining explanatory text with Trace or Span context fields. The evaluation instructions explain how to judge, and the input template determines which data is used as the basis for judgment.

The template references variables using double curly braces and supports field paths, array indices, and [*]. For example, to evaluate the input and output of the root node, you can use:

User input:
{{root.input}}

Final output:
{{root.output}}

Field paths should use variables available from the current evaluation perspective. The template must contain valid variables; plain text without variables cannot proceed to the next step. For evaluations involving tool calls, confirm that the template includes the tool name, parameters, return result, or execution status required for judgment.

In the test run results, expand "Actual Evaluation Input" to check whether the content after variable substitution meets expectations. If a field is not collected, first check data collection and input configuration; do not judge data completeness based solely on the score.

Manually entered fixed content is used only as the input for this evaluation and does not modify the original Trace. After modifying the evaluation instructions or other key configurations, you need to run the test again.

Schema Eval

Schema Eval is used to check whether model output conforms to a specified data structure. It is suitable for scenarios that require the model to return JSON or other structured content.

When configuring, you need to set the target Schema. After the evaluation is executed, the system checks whether the fields, types, and structure of the output content meet the requirements.

Test the Evaluator

Before publishing the evaluator, select a time range and real Trace samples to run a test. When using a custom input template, also verify the actual evaluation input, result, and judgment reason.

Test results show the evaluation output, score, or structure validation result. You can adjust the prompt, Schema, or judgment rules based on the results and then test again.

You can proceed to the publishing step only after the current configuration completes a test run successfully. Modifying key configurations such as evaluation instructions invalidates previous test run results and requires running the test again. After confirming that the results meet expectations, click Publish so that the evaluator can be used for formal evaluation tasks.

Run Evaluations

Online Evaluation

Online evaluation is used to continuously check model call data generated online.

Select the target application and evaluator, and configure the data scope to be evaluated. After the task is enabled, the system evaluates data that meets the conditions based on the configuration.

Batch Evaluation

Batch evaluation is used to evaluate historical model call data within a specified time range or under specified query conditions.

When creating a batch evaluation task:

  1. Select the target application;
  2. Set the time range and filter conditions;
  3. Select the evaluator to use;
  4. Confirm and start the evaluation task.

View Evaluation Results

Go to the evaluation results page to view:

  • Evaluator and evaluation method;
  • Evaluation status;
  • Score or rule validation result;
  • Model input and output;
  • Evaluation time;
  • Failure reason.

You can filter evaluation results by conditions such as application, evaluator, evaluation status, and time range.

Note

Evaluation results depend on the model output, evaluation prompt, and Schema configuration. Before formally enabling an evaluation task, it is recommended to use representative test data to verify the evaluator's performance.

Manual Annotation

Manual annotation allows you to review evaluation results by combining model input, output, and call chains, and to add samples to a dataset.

Create an Annotation Queue

Create a queue of items to be annotated based on Trace query conditions. Supports marking data such as failures and Agent judgment anomalies.

The queue displays the numbers of pending, completed, and skipped items, as well as the current processing progress. The queue uses a shared pending annotation list and does not currently support assignee allocation, claiming, or arbitration workflows.

Submit Annotations

In the annotation workbench, view the input, output, call chain, tool calls, user feedback, and existing evaluation results, and then fill in:

Annotation Content Requirement
Pass / Fail Required
Score Optional; supports 1–5 points
Issue Type Required when Fail is selected
Reference Answer, Notes, and Tags Optional

After completing the form, you can select "Save and Next" to continue annotating, or select "Save and Add to Dataset" to retain the sample.

Re-annotating retains the history. Manual annotation results are labeled with their source and displayed separately from platform evaluation results and external Scores.

Dataset

Datasets are used to centrally manage samples that meet production Trace conditions and manual annotation conditions.

Permissions

Configuration operations such as evaluator management, evaluation execution, annotation queue and dataset management, and manual annotation uniformly use the Agent Monitoring > Application Configuration Management permission. This permission applies to both Agent and LLM access types. Viewing related Trace data also requires the corresponding data query permission. Datasets, annotations, and evaluation results all follow the access permissions of the current workspace and the original Trace.