LLM evaluation dimensions use a judge model to score the outputs of the model being evaluated according to a scorer Prompt. They support both numeric and categorical methods, and provide 19 preset templates, AI optimization, and trial run capabilities.
LLM evaluation overview
LLM evaluation uses a judge model (such as Qwen-Max) to score the outputs of the model being evaluated according to the scorer Prompt you configure. It comes in two forms:
- LLM evaluation-numeric: The judge model assigns continuous numeric scores to model outputs (such as 0~5), suitable for scenarios that require fine-grained quantification, such as Q&A quality assessment or content generation quality scoring.
- LLM evaluation-categorical: The judge model classifies model outputs by user-defined labels (Pass/Fail), suitable for judgment scenarios that require semantic understanding, such as content security detection or answer correctness verification.
Create an LLM evaluation dimension
Log on to the Bailian console, choose Model Evaluation in the left navigation pane, switch to the Evaluation Dimension tab, and click Create Evaluation Dimension to open the selection dialog: you can filter the preset template list by type and label 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 a custom evaluation dimension, first fill in the common fields:
- Dimension Name: Required, no more than 20 characters.
- Description: Optional, no more than 100 characters.
- Type: Required. Select LLM evaluation-numeric or LLM evaluation-categorical. The scorer type cannot be changed after creation; if you select the wrong one, you must delete and recreate it.
- Numeric
- Categorical
- Select a judge model (Qwen-Max is recommended for its strong reasoning capability; it is currently free for a limited time).
- Select a Scorer Template: use a platform preset template via Select a preset template (numeric preset templates are listed in preset templates), or modify the default Prompt in the editor yourself.
- Write the scorer Prompt: it must contain at least one variable.
- Set the Scoring Range: configure the minimum and maximum values, both integers. Minimum ≥ 0, maximum ≥ 1, default 0~5.
- Set the Pass Threshold: scores at or above this value are judged Pass, with a step of 0.1. The threshold automatically follows the scoring range.
- Click Save.
Configure the scorer Prompt
The scorer Prompt instructs the judge model on how to evaluate output quality, defining the evaluation criteria and output format.
Prompt variables
The scorer Prompt supports the following three variables, which the system automatically replaces with actual values at evaluation runtime (type / in the Prompt editor to quickly reference a variable):
- ${messages}: The complete conversation content. For multi-turn (ChatML) evaluation sets, this is all messages; for single-turn (prompt&completion) evaluation sets, this is the user input.
- ${completion}: The reference reply, that is, the reference answer preset in the evaluation dataset (for multi-turn evaluation sets, the last assistant message).
- ${output}: The output of the model being evaluated, that is, its reply to the current question.
Preset templates
Preset templates are applied in the evaluation dimension creation dialog: filter by type (LLM evaluation-numeric, LLM evaluation-categorical) and label (general quality, text matching, text similarity, security, text classification), then click Use template. The list is dynamically retrieved from system configuration.
Numeric preset templates (14):
- Translation quality: Evaluates how well the translation preserves the meaning, tone, terminology, and expression of the source text.
- Content creativity: Evaluates whether the reply, while meeting the task requirements, contains novel and valuable expressions or ideas.
- Risk identification completeness: Evaluates whether the reply fully identifies the key risks in the plan or behavior.
- Privacy protection: Evaluates whether the reply properly protects personal information, sensitive data, and user privacy.
- Suggestion actionability: Evaluates whether the suggestions in the reply are specific, feasible, and can guide next steps.
- Answer helpfulness: Evaluates whether the reply actually helps the user achieve the current goal.
- Logical coherence: Evaluates the argumentation structure, consistency, and reasoning flow of the reply.
- Answer conciseness: Evaluates whether the reply avoids redundancy and completes the task with the necessary length.
- Language fluency: Evaluates whether the reply is natural, smooth, and easy to read.
- Answer completeness: Evaluates whether the reply covers all the key content of the user request.
- Q&A relevance: Evaluates the relevance and completeness of the model reply to the user query.
- Hallucination: Detects whether the reply contains false or hallucinated information.
- Instruction following: Evaluates whether the reply strictly follows the given instructions, formats, and constraints.
- Consistency with reference answer: Checks the consistency between the reply and the reference answer.
- Problem resolution status classification: determines whether the reply resolves the user's current issue.
- Question answerability classification: determines whether the current question can be answered directly based on the provided information.
- Security risk classification: identifies whether the reply is safe, poses potential risks, or contains high-risk content.
- User intent classification: identifies the user's primary request in the complete conversation.
- Sentiment classification: labels the reply to be evaluated as positive, neutral, or negative.
Custom Prompt Writing
Key points for writing:
- Use the ${messages}, ${completion}, and ${output} variables to reference evaluation data.
- Clearly define the scoring criteria. For the classification type, define the judgment conditions for each label; for the numeric type, define the quality standard corresponding to each score.
- Specify output format requirements to ensure that the judge model's verdict can be correctly parsed by the system.
AI Optimization and Trial Run
- AI optimization: Click Optimize in the prompt editor toolbar. The system generates an optimized version based on the current prompt, and you can Use it immediately, Generate Again, or exit in the dialog.
- Trial run: After configuration is complete, click Start Running in the trial run area to verify the scoring effect using sample data. The run result is displayed on the right. Trial runs and judge model calls are free of charge for a limited time.
FAQ
Issue: The system prompts that variables are missing when I submit the scorer prompt.
Issue: The system prompts that variables are missing when I submit the scorer prompt.
Issue: After switching the scorer template, my previously manually edited prompt content disappeared.
Issue: After switching the scorer template, my previously manually edited prompt content disappeared.
Issue: The evaluation completed, but the scores did not meet expectations—the scores concentrated in a certain range or showed low discrimination.
Issue: The evaluation completed, but the scores did not meet expectations—the scores concentrated in a certain range or showed low discrimination.
Issue: Does using evaluation dimensions of the LLM evaluation type incur fees?
Issue: Does using evaluation dimensions of the LLM evaluation type incur fees?