|
| 1 | +{ |
| 2 | + "eval_set_id": "support_regression_train", |
| 3 | + "name": "离线客服回归训练集", |
| 4 | + "description": "三个训练 case,分别暴露最终回答、工具选择和参数错误。", |
| 5 | + "eval_cases": [ |
| 6 | + { |
| 7 | + "eval_id": "train_final_response_mismatch", |
| 8 | + "conversation": [ |
| 9 | + { |
| 10 | + "invocation_id": "expected-1", |
| 11 | + "user_content": { |
| 12 | + "role": "user", |
| 13 | + "parts": [{"text": "请确认售后工单 T-100 的状态。"}] |
| 14 | + }, |
| 15 | + "final_response": { |
| 16 | + "role": "model", |
| 17 | + "parts": [{"text": "工单 T-100 状态:已完成。"}] |
| 18 | + } |
| 19 | + } |
| 20 | + ], |
| 21 | + "session_input": { |
| 22 | + "app_name": "eval_optimize_loop", |
| 23 | + "user_id": "offline", |
| 24 | + "state": { |
| 25 | + "key_case": false, |
| 26 | + "hard_fail": false, |
| 27 | + "variant_traces": { |
| 28 | + "baseline": { |
| 29 | + "final_response": {"role": "model", "parts": [{"text": "工单 T-100 状态:处理中。"}]}, |
| 30 | + "intermediate_data": {"tool_uses": [], "tool_responses": []}, |
| 31 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 32 | + "usage": {"input_tokens": 36, "output_tokens": 14, "cost": 0.0, "latency_ms": 4} |
| 33 | + }, |
| 34 | + "ineffective": { |
| 35 | + "final_response": {"role": "model", "parts": [{"text": "工单 T-100 状态:处理中。"}]}, |
| 36 | + "intermediate_data": {"tool_uses": [], "tool_responses": []}, |
| 37 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 38 | + "usage": {"input_tokens": 38, "output_tokens": 14, "cost": 0.0, "latency_ms": 4} |
| 39 | + }, |
| 40 | + "overfit": { |
| 41 | + "final_response": {"role": "model", "parts": [{"text": "工单 T-100 状态:已完成。"}]}, |
| 42 | + "intermediate_data": {"tool_uses": [], "tool_responses": []}, |
| 43 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 44 | + "usage": {"input_tokens": 42, "output_tokens": 14, "cost": 0.0, "latency_ms": 5} |
| 45 | + }, |
| 46 | + "robust": { |
| 47 | + "final_response": {"role": "model", "parts": [{"text": "工单 T-100 状态:已完成。"}]}, |
| 48 | + "intermediate_data": {"tool_uses": [], "tool_responses": []}, |
| 49 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 50 | + "usage": {"input_tokens": 48, "output_tokens": 14, "cost": 0.0, "latency_ms": 5} |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | + }, |
| 56 | + { |
| 57 | + "eval_id": "train_tool_call_error", |
| 58 | + "conversation": [ |
| 59 | + { |
| 60 | + "invocation_id": "expected-2", |
| 61 | + "user_content": { |
| 62 | + "role": "user", |
| 63 | + "parts": [{"text": "查询订单 O-200 的物流状态。"}] |
| 64 | + }, |
| 65 | + "final_response": { |
| 66 | + "role": "model", |
| 67 | + "parts": [{"text": "订单 O-200 状态:已发货。"}] |
| 68 | + }, |
| 69 | + "intermediate_data": { |
| 70 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-200"}}], |
| 71 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-200", "status": "已发货"}}] |
| 72 | + } |
| 73 | + } |
| 74 | + ], |
| 75 | + "session_input": { |
| 76 | + "app_name": "eval_optimize_loop", |
| 77 | + "user_id": "offline", |
| 78 | + "state": { |
| 79 | + "key_case": false, |
| 80 | + "hard_fail": true, |
| 81 | + "variant_traces": { |
| 82 | + "baseline": { |
| 83 | + "final_response": {"role": "model", "parts": [{"text": "无法查询订单状态。"}]}, |
| 84 | + "intermediate_data": { |
| 85 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-200"}}], |
| 86 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"error": "backend unavailable"}}] |
| 87 | + }, |
| 88 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 89 | + "usage": {"input_tokens": 40, "output_tokens": 12, "cost": 0.0, "latency_ms": 7} |
| 90 | + }, |
| 91 | + "ineffective": { |
| 92 | + "final_response": {"role": "model", "parts": [{"text": "无法查询订单状态。"}]}, |
| 93 | + "intermediate_data": { |
| 94 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-200"}}], |
| 95 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"error": "backend unavailable"}}] |
| 96 | + }, |
| 97 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 98 | + "usage": {"input_tokens": 42, "output_tokens": 12, "cost": 0.0, "latency_ms": 7} |
| 99 | + }, |
| 100 | + "overfit": { |
| 101 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-200 状态:已发货。"}]}, |
| 102 | + "intermediate_data": { |
| 103 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-200"}}], |
| 104 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-200", "status": "已发货"}}] |
| 105 | + }, |
| 106 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 107 | + "usage": {"input_tokens": 46, "output_tokens": 16, "cost": 0.0, "latency_ms": 6} |
| 108 | + }, |
| 109 | + "robust": { |
| 110 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-200 状态:已发货。"}]}, |
| 111 | + "intermediate_data": { |
| 112 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-200"}}], |
| 113 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-200", "status": "已发货"}}] |
| 114 | + }, |
| 115 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 116 | + "usage": {"input_tokens": 52, "output_tokens": 16, "cost": 0.0, "latency_ms": 6} |
| 117 | + } |
| 118 | + } |
| 119 | + } |
| 120 | + } |
| 121 | + }, |
| 122 | + { |
| 123 | + "eval_id": "train_parameter_error", |
| 124 | + "conversation": [ |
| 125 | + { |
| 126 | + "invocation_id": "expected-3", |
| 127 | + "user_content": { |
| 128 | + "role": "user", |
| 129 | + "parts": [{"text": "查询订单 O-300 的物流状态。"}] |
| 130 | + }, |
| 131 | + "final_response": { |
| 132 | + "role": "model", |
| 133 | + "parts": [{"text": "订单 O-300 状态:处理中。"}] |
| 134 | + }, |
| 135 | + "intermediate_data": { |
| 136 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-300"}}], |
| 137 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-300", "status": "处理中"}}] |
| 138 | + } |
| 139 | + } |
| 140 | + ], |
| 141 | + "session_input": { |
| 142 | + "app_name": "eval_optimize_loop", |
| 143 | + "user_id": "offline", |
| 144 | + "state": { |
| 145 | + "key_case": false, |
| 146 | + "hard_fail": true, |
| 147 | + "variant_traces": { |
| 148 | + "baseline": { |
| 149 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-399 状态:已取消。"}]}, |
| 150 | + "intermediate_data": { |
| 151 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-399"}}], |
| 152 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-399", "status": "已取消"}}] |
| 153 | + }, |
| 154 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 155 | + "usage": {"input_tokens": 40, "output_tokens": 16, "cost": 0.0, "latency_ms": 5} |
| 156 | + }, |
| 157 | + "ineffective": { |
| 158 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-399 状态:已取消。"}]}, |
| 159 | + "intermediate_data": { |
| 160 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-399"}}], |
| 161 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-399", "status": "已取消"}}] |
| 162 | + }, |
| 163 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 164 | + "usage": {"input_tokens": 42, "output_tokens": 16, "cost": 0.0, "latency_ms": 5} |
| 165 | + }, |
| 166 | + "overfit": { |
| 167 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-300 状态:处理中。"}]}, |
| 168 | + "intermediate_data": { |
| 169 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-300"}}], |
| 170 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-300", "status": "处理中"}}] |
| 171 | + }, |
| 172 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 173 | + "usage": {"input_tokens": 46, "output_tokens": 16, "cost": 0.0, "latency_ms": 5} |
| 174 | + }, |
| 175 | + "robust": { |
| 176 | + "final_response": {"role": "model", "parts": [{"text": "订单 O-300 状态:处理中。"}]}, |
| 177 | + "intermediate_data": { |
| 178 | + "tool_uses": [{"id": "call-1", "name": "lookup_order", "args": {"order_id": "O-300"}}], |
| 179 | + "tool_responses": [{"id": "call-1", "name": "lookup_order", "response": {"order_id": "O-300", "status": "处理中"}}] |
| 180 | + }, |
| 181 | + "signals": {"format_pass": true, "knowledge_recall_pass": true, "llm_rubric_pass": true}, |
| 182 | + "usage": {"input_tokens": 52, "output_tokens": 16, "cost": 0.0, "latency_ms": 5} |
| 183 | + } |
| 184 | + } |
| 185 | + } |
| 186 | + } |
| 187 | + } |
| 188 | + ] |
| 189 | +} |
0 commit comments