feat: 完成 issue #49 ④ 路由准确率评估脚本(≥96.5%)

This commit is contained in:
2026-08-05 02:45:00 +08:00
parent c5a7a0ee52
commit 437771da34
4 changed files with 319 additions and 6 deletions
+12 -1
View File
@@ -165,8 +165,19 @@ python evaluate_hallucination.py --demo --output reports/hallucination.md
python evaluate_hallucination.py --samples eval_set.json --output report.md
```
## 路由准确率评估(Issue #49)
PRD 5.4 / EPIC #6「敏感度路由准确率 ≥ 96.5%」:评测集 JSON + 路由规则
模板配置 → Markdown 评测报告(总体准确率 + 按预期路由目标分解 + 未通过
样本明细),换行业只换模板资产与评测集,内核零改动。
```bash
cd core/llm-gateway
python evaluate_routing.py --demo --output reports/routing.md
python evaluate_routing.py --samples eval_set.json --output report.md
```
## 后续子任务(EPIC #6 拆分,待扩展)
- 敏感度路由调优与路由准确率评估脚本(Issue #49,本版已提供评估入口);
- 本地 70B 模型接入与推理封装(Issue #44);
- 云端 API(Qwen/DeepSeek)接入与安全网关(Issue #45)。