Skip to main content

Define evaluation dimensions

This topic describes how to create and manage evaluation dimension templates.

Evaluation dimension overview

Evaluation dimensions define the scoring rules for model evaluation tasks. Each dimension is configured with one scorer. After being created as a template, it can be referenced by multiple evaluation tasks, enabling unified management and reuse of evaluation criteria. The Model Studio platform provides the following five scorer types, covering three major evaluation paradigms: LLM-based automatic evaluation, rule matching, and human review:
  • LLM evaluation - Categorical: The judge model classifies model outputs by user-defined labels (Pass/Fail). It is suitable for scenarios that require semantic understanding, such as content safety checks and answer correctness judgment.
  • LLM evaluation - Numerical: The judge model assigns continuous numerical scores to model outputs (for example, 0~5). It is suitable for scenarios that require fine-grained quantification, such as Q&A quality assessment and content generation quality scoring.
  • Rule evaluation - String matching: Programmatically determines the exact matching relationship (equal/not equal/contains) between the model output and the reference text. It is suitable for scenarios with deterministic standard answers, such as Function Calling and NL2SQL.
  • Rule evaluation - Text similarity: Uses algorithms to calculate the similarity between the model output and the reference text (BLEU/ROUGE/Cosine, and more). It is suitable for quantifying the similarity of open-ended responses, such as translation, summarization, and rewriting.
  • Human evaluation - Categorical: Evaluators manually classify model outputs by label. It is suitable for scenarios that require subjective judgment, such as tone and style, and compliance review.

Dimension type

Evaluation method

Applicable scenarios

Reference answer required

Level of automation

LLM evaluation - Categorical

Judge model classifies by label

Content safety, answer correctness

No

Fully automated

LLM evaluation - Numerical

Judge model scores by range

Q&A quality, generation quality

No

Fully automated

Rule evaluation - String matching

Exact/partial string matching

Function Calling、NL2SQL

Yes

Fully automated

Rule evaluation - Text similarity

BLEU/ROUGE/Cosine and other algorithms

Translation, summarization, rewriting

Yes

Fully automated

Human evaluation - Categorical

Manual review by label

Tone and style, compliance review

No

Manual

When selecting a scorer type, you can refer to the following decision path:
  • Standard answers with a fixed format: prefer rule evaluation - string matching, which offers the lowest cost and fastest speed.
  • Standard answers with varied wording: use rule evaluation - text similarity, which accommodates wording variations through algorithms.
  • No standard answer, semantic understanding required: use LLM evaluation (categorical or numerical) and let the judge model assess at the semantic level.
  • Subjective judgment or professional review required: use human evaluation - categorical, with evaluators reviewing each item.
Multimodal evaluation tasks only support associating Manual Evaluation - classification dimensions. For details about the limitation, see Create a custom evaluation task.
Bailian provides preset templates for LLM evaluation and rule evaluation types (19 for LLM evaluation and 28 for rule evaluation). You can filter them by type (LLM evaluation - numeric, LLM evaluation - classification, rule evaluation) and tag (general quality, text matching, text similarity, security, text classification). After you select a template, the scorer prompt and default configuration are automatically filled in, which is suitable for quickly getting started in common scenarios. To customize scoring criteria for specific business logic, you can create a custom evaluation dimension and manually write the prompt. After you create a dimension template, you can reference it as the judging criteria in evaluation tasks. For more information about creating and running evaluation tasks, see Model evaluation.

Define Evaluation Dimensions

Log on to the Bailian console, select Model Evaluation in the left navigation pane, switch to the Dimension tab, and click Create Evaluation Dimension to open the selection dialog. In the preset templates list, you can filter by type and tag, and click Use Template on a template card to apply it in one step. Alternatively, click + Create Custom Evaluation Dimension to enter the custom configuration page. The top bar of the console page shows the current workspace (switchable) and the region (default: China (Beijing)). When defining an evaluation dimension, you must first fill in the following common fields:
  • Dimension Name: Required, no more than 50 characters.
  • Description: Optional, no more than 100 characters. Used to supplement the description of the evaluation goal of the dimension.
  • Type: Required. Select one of the 5 scorer types. The scorer type cannot be changed after creation; if you select the wrong one, you must delete and recreate it.
The following table lists the common and type-specific parameters for defining evaluation dimensions.

Parameter

Description

Required

Value description

Dimension name

Name of the evaluation dimension template

Yes

No more than 50 characters

Description

Supplementary explanation of the dimension

No

No more than 100 characters

Type

Evaluation method of the scorer, which cannot be changed after creation

Yes

Select one of the 5 types

Judge model

The large language model that performs the evaluation

Required for LLM evaluation types

Select from the drop-down list

Scorer template

The prompt template that guides the judge model

Required for LLM evaluation types

Preset template or custom

Score range

Minimum and maximum values of numerical scoring

Required for the numerical type

Integer, default 0~5

Pass threshold

Minimum score or similarity for a pass judgment

Required for numerical/similarity types

Numeric

After you select a type, the page displays the type-specific configuration items. The complete creation process for each type is described below.
Important The scorer type cannot be changed after creation. If you select the wrong one, you can only delete and recreate it.
After you select a type, you enter the dedicated configuration page for that type. For the complete creation steps and configuration details of each dimension type:
  • LLM evaluation (numeric/classification): judge model scoring, prompt variables, 19 preset templates, AI optimization and trial run. For more information, see LLM evaluation.
  • Rule evaluation (string matching/text similarity): the algorithm directly calculates the score, 28 preset templates (14 similarity algorithms + 14 matching rules). For more information, see Rule evaluation.
  • Manual evaluation (classification): manual review by label, label design suggestions. For more information, see Manual evaluation.

Manage evaluation dimension templates

On the evaluation dimension list page, you can view, modify, and delete the dimension templates you have created.

View dimensions

The dimension list page displays all created dimension templates and supports the following operations:
  • Search by name: enter a dimension name keyword in the search box for a fuzzy query.
  • Filter by type: click the filter icon in the Type column header to filter by selecting multiple scorer types.
  • Sort by creation time: click Sort by creation time to toggle between ascending and descending order.
Click the name of a target dimension in the dimension list to go to the details page and view the complete configuration of the dimension (including scorer type, prompt, labels, score range, and more).

Modify dimensions

On the dimension details page, you can modify the dimension name, description, scorer prompt, labels, and other configuration items. The scorer type cannot be changed after creation. Changes take effect immediately after saving.

Delete dimensions

Click the Delete button in the operation column of the target dimension in the dimension list. The deletion operation is irreversible. If the dimension is referenced by an evaluation task, it cannot be deleted. You must remove the associated evaluation tasks before deleting the dimension.

Evaluation dimension design recommendations

Designing high-quality evaluation dimensions helps accurately measure model performance. The following are key recommendations from practice.

Type selection and iteration

Select an appropriate type based on the evaluation scenario: prefer rule evaluation for scenarios with standard answers (low cost and fast speed), use LLM evaluation for scenarios that require semantic understanding, and use human evaluation for subjective quality judgments. For a detailed comparison of types, see Evaluation dimensions overview. We recommend that you first create dimensions with preset templates and run an evaluation on a small sample (10~20 data entries) to verify the effect. Based on the cases with large deviations in the evaluation results, adjust the judging criteria and score definitions of the prompt in a targeted manner, and scale up the evaluation after verification. Gradually transition from preset templates to custom prompts.

Parameter configuration recommendations

Pass and Fail labels should be mutually exclusive and collectively exhaustive, that is, all possible outputs can be classified into one of them. Binary classification is sufficient for simple scenarios; when multiple labels are required for complex scenarios, keep the number of labels low to reduce judgment ambiguity. For LLM evaluation - Numerical, we recommend a score range of no more than 10 (an excessively large range reduces LLM scoring consistency). The default 0~5 range with a pass threshold of 3 is a common configuration. Set the pass threshold based on the business tolerance for quality: the higher the threshold, the stricter the pass standard. Select an appropriate similarity algorithm based on the evaluation task type:
  • Translation tasks: BLEU (measures n-gram exact matching).
  • Summarization tasks: ROUGE-L (measures the longest common subsequence).
  • Semantic relevance: Cosine similarity (measures semantic vector distance).
  • Classification tasks: Accuracy (measures the exact match rate).

Naming conventions

We recommend the naming pattern of "assessment aspect + evaluation method", such as "Answer accuracy - LLM scoring", "Sentiment tendency - label classification", and "Format compliance - string matching". Clear naming helps you quickly identify and select dimensions in evaluation tasks.

FAQ

The following are common issues and solutions when you use the evaluation dimension feature.
The scorer type cannot be changed after creation. You can only delete the dimension template and recreate it. If the dimension is referenced by an evaluation task, you must remove the associated evaluation tasks before deleting it.
A dimension template cannot be deleted when it is referenced by evaluation tasks. Delete or modify the evaluation tasks that reference the dimension in the evaluation task list first, and then delete the dimension template.
Check whether the Pass and Fail labels are duplicated. The same label cannot appear in both Pass and Fail, and labels within Pass or within Fail cannot be duplicated either.