This topic describes how to create and manage evaluation dimension templates.
Evaluation dimensions 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 |
- 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.
Create an evaluation dimension template
Log on to the Model Studio console. In the left-side navigation pane, choose Model Evaluation > Evaluation Dimensions, and click Create Evaluation Dimension to open the selection dialog: you can filter the Preset templates list by type and tag, and click Use Template on a template card to apply it in one click; or click + Create Custom Evaluation Dimension to enter the custom configuration page.
When creating an evaluation dimension template, you must first fill in the following common fields:
- Dimension name: required, no more than 20 characters.
- Description: optional, no more than 100 characters. It is used to supplement the judging objective of the dimension.
- Type: required. Select one of the five scorer types. The scorer type cannot be changed after creation. If you select the wrong one, you can only delete and recreate it.
Parameter | Description | Required | Value description |
|---|---|---|---|
Dimension name | Name of the evaluation dimension template | Yes | No more than 20 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 |
Important The scorer type cannot be changed after creation. If you select the wrong one, you can only delete and recreate it.
- LLM evaluation - Categorical
- LLM evaluation - Numerical
- Rule evaluation - String matching
- Rule evaluation - Text similarity
- Human evaluation - Categorical
- Select a judge model: select the large language model used for evaluation from the drop-down list.
- Select a scorer template: use Select preset template to apply a platform preset template (see Preset templates for categorical templates), or modify the default prompt in the editor on your own. After you select a preset template, the system automatically populates the prompt and default labels. For more information, see Configure scorer prompts.
- Write the scorer prompt: the prompt must contain at least one variable (${messages}, ${completion}, ${output}) and be no more than 20000 characters. The prompt defines the judging criteria and output format of the judge model.
- Configure Pass labels and Fail labels: define the classification labels for pass and fail, each no more than 20 characters. Pass and Fail labels cannot be duplicated.
- Click Save.
Configure scorer prompts
The scorer prompt is the instruction that guides the judge model in evaluating output quality. It applies only to LLM evaluation types (categorical and numerical). By writing the prompt, you define the judging criteria and output format of the judge model.
Prompt variables
Scorer prompts support the following three variables, which the system automatically replaces with actual values during evaluation execution (type / in the prompt editor to quickly reference a variable):
- ${messages}: the complete conversation. For multi-turn (ChatML) evaluation datasets, it is all messages; for single-turn (prompt&completion) evaluation datasets, it is the user input.
- ${completion}: the reference reply, that is, the reference answer preset in the evaluation dataset (for multi-turn datasets, the last assistant message).
- ${output}: the output of the model under test, that is, the model's reply to the current question.
Preset templates
The system provides preset scorer templates for LLM evaluation types. After you select one, the prompt content and default label configuration are automatically populated. The template list is dynamically retrieved from the system configuration. In the Create Evaluation Dimension dialog, you can filter templates by type (LLM evaluation - Numerical, LLM evaluation - Categorical, rule evaluation) and tag (general quality, text matching, text similarity, safety, text classification), and then click Use Template to apply one.
Preset templates for the numerical type (9):
- Translation Quality: evaluates how comprehensively the translation restores the meaning, tone, terminology, and expression of the source text.
- Content Creativity: evaluates whether the response is novel and valuable in expression or conception while meeting the task requirements.
- Risk Identification Completeness: evaluates whether the response completely identifies the key risks in a plan or behavior.
- Privacy Protection: evaluates whether the response properly protects personal information, sensitive data, and user privacy.
- Suggestion Actionability: evaluates whether the suggestions in the response are specific, feasible, and able to guide next steps.
- Answer Helpfulness: evaluates whether the response truly helps the user achieve the current goal.
- Logical Coherence: evaluates the argumentative structure, consistency, and reasoning flow of the response.
- Answer Conciseness: evaluates whether the response avoids redundancy and completes the task with the necessary length.
- Language Fluency: evaluates whether the response is natural, smooth, and easy to read.
- Problem Resolution Status Classification: determines whether the response solves the user's current problem.
- Question Answerability Classification: determines whether the current question can be directly answered based on the provided information.
- Safety Risk Classification: identifies whether the response is safe, has potential risks, or contains high-risk content.
- User Intent Classification: identifies the user's primary intent in the complete conversation.
- Sentiment Classification: marks the response under evaluation as positive, neutral, or negative.
Write a custom prompt
When you select the custom template, write the scoring guidelines in the prompt editing area. Key points:
- Use the ${messages}, ${completion}, and ${output} variables to reference evaluation data.
- Clearly define the scoring criteria. For the categorical type, define the judgment conditions for each label; for the numerical type, define the quality standard corresponding to each score.
- Specify output format requirements to ensure that the judge model's evaluation results can be correctly parsed by the system.
- AI optimization: click Optimize in the toolbar of the prompt editor, and the system generates an optimized version based on the current prompt. In the dialog, you can choose Use Now, Regenerate, or exit.
- Trial run: after configuration, click Start Run in the trial run area to verify the scoring effect with sample data; the run result is displayed on the right. Trial runs and judge model calls are currently free of charge for a limited time.
Manage evaluation dimension templates
On the evaluation dimension list page, you can view, modify, and delete the dimension templates you 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.
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.
Issue: After creating an evaluation dimension template, I found that the wrong scorer type was selected.
Issue: After creating an evaluation dimension template, I found that the wrong scorer type was selected.
Issue: A message appears when I delete a dimension template, indicating that it cannot be deleted.
Issue: A message appears when I delete a dimension template, indicating that it cannot be deleted.
Issue: When I submit a scorer prompt, the system prompts that variables are missing.
Issue: When I submit a scorer prompt, the system prompts that variables are missing.
Issue: The submission fails after I configure Pass/Fail labels.
Issue: The submission fails after I configure Pass/Fail labels.
Issue: After I switch scorer templates, the prompt content I manually edited disappears.
Issue: After I switch scorer templates, the prompt content I manually edited disappears.
Issue: Does using evaluation dimensions of the LLM evaluation type incur fees?
Issue: Does using evaluation dimensions of the LLM evaluation type incur fees?