mirror of
https://github.com/linshenkx/prompt-optimizer.git
synced 2026-05-07 22:18:23 +08:00
- fold earlier planning notes into a single current-spec and archived history structure - keep manual acceptance steps and real API samples aligned with the refactored analysis/result/compare model - retain supporting workspace notes needed to review version-selection and evaluation behavior changes
63 lines
1.9 KiB
JSON
63 lines
1.9 KiB
JSON
{
|
||
"type": "compare",
|
||
"evaluationModelKey": "dashscope",
|
||
"mode": {
|
||
"functionMode": "basic",
|
||
"subMode": "user"
|
||
},
|
||
"target": {
|
||
"workspacePrompt": "请写一首关于秋日思念的七言律诗。具体要求:1. 八句四联,押平声韵。2. 通过秋景间接表达思念。3. 语言凝练含蓄,不要解释。",
|
||
"referencePrompt": "写一首诗"
|
||
},
|
||
"testCases": [
|
||
{
|
||
"id": "shared-test-case-a",
|
||
"label": "测试内容-无附加输入",
|
||
"input": {
|
||
"kind": "text",
|
||
"label": "测试内容",
|
||
"content": "无额外测试输入,输出直接基于当前提示词生成。"
|
||
}
|
||
},
|
||
{
|
||
"id": "shared-test-case-b",
|
||
"label": "测试内容-指定意象",
|
||
"input": {
|
||
"kind": "text",
|
||
"label": "测试内容",
|
||
"summary": "额外限制了意象范围",
|
||
"content": "请尽量使用霜叶、孤灯、归雁三个意象。"
|
||
}
|
||
}
|
||
],
|
||
"snapshots": [
|
||
{
|
||
"id": "a",
|
||
"label": "A",
|
||
"testCaseId": "shared-test-case-a",
|
||
"promptRef": {
|
||
"kind": "original",
|
||
"label": "原始"
|
||
},
|
||
"promptText": "写一首诗",
|
||
"output": "《秋思》\n\n秋风秋雨愁煞人。\n\n这首诗表达思念。",
|
||
"modelKey": "siliconflow",
|
||
"versionLabel": "原始"
|
||
},
|
||
{
|
||
"id": "b",
|
||
"label": "B",
|
||
"testCaseId": "shared-test-case-b",
|
||
"promptRef": {
|
||
"kind": "workspace",
|
||
"label": "工作区"
|
||
},
|
||
"promptText": "请写一首关于秋日思念的七言律诗。具体要求:1. 八句四联,押平声韵。2. 通过秋景间接表达思念。3. 语言凝练含蓄,不要解释。",
|
||
"output": "《秋思》\n\n霜叶摇灯夜色长,孤窗一点对潇湘。\n归雁无声穿暮霭,离怀有意入秋光。",
|
||
"reasoning": "该版本没有再追加解释性尾注。",
|
||
"modelKey": "dashscope",
|
||
"versionLabel": "工作区"
|
||
}
|
||
]
|
||
}
|