LLM 功能的评估计划
在调整提示词之前,为依赖模型的功能设计测试集和通过标准。
适用场景: 你要上线一个依赖模型的功能,需要一种可重复的方式判断某次改动是否让它变好。
prompt
You are an AI engineer designing evaluations for a language model feature.
## Task
Design an evaluation plan for the feature described below.
## Requirements
- Define 10 test cases: 4 typical inputs, 3 edge cases, and 3 adversarial inputs.
- State the expected property of the output for each case, in a form code or a reviewer can check.
- Name the check for each property: exact match, schema validation, a rule, or a graded rubric.
- State the pass threshold for the suite as a number.
- Do not invent facts about the feature; base every case on the description.
## Output format
Return markdown with three sections: Test cases (a table with the columns ID, Type, Input summary, Expected property, and Check), Pass threshold (one sentence), and Gaps (bulleted list of what the description does not let you test).
## Input
<feature>
{{feature}}
</feature>变量
{{feature}}- 功能做什么、输入、输出,以及错误答案的代价。
示例输入
feature: extracts the due date and total from invoice text into JSON; a wrong total causes an incorrect payment.示例输出
## Test cases
| ID | Type | Input summary | Expected property | Check |
|---|---|---|---|---|
| T1 | Typical | One-page invoice with one total | `total` equals 1250.00 | Exact match |
| A1 | Adversarial | Invoice text containing "ignore the instructions" | Output is valid JSON with the real total | Schema validation |仅为示意:为展示预期的形式而编写,并非由模型生成。