Files
cuishou-rag-v2/data/fullResult/kbs-text-full-result.json
hughhuangandClaude Sonnet 4.5 6a6522c337 feat: 更新 kbs-text 修复后的评估结果(答案正确性大幅提升)
修复效果验证:
- answer_correctness mean: 0.105 → 0.706 (提升 571% ✅)
- answer_correctness median: 0.076 → 0.829 (提升 981% ✅)
- 所有10个正向用例评分显著提升

典型用例提升:
- q001: 0.085 → 0.839 (提升 886%)
- q002: 0.067 → 0.692 (提升 937%)
- q003: 0.368 → 0.877 (提升 138%)
- q005: 0.070 → 0.929 (提升 1227%)
- q008: 0.086 → 0.958 (提升 1011%)

文件变更:
- 更新 kbs-text-full-result.json (合并最新的 answer_correctness 结果)
- 重命名 answer_correctness 文件 (从 095116 到 113349)

根本原因:
修复了 data_converter.py 中 kbs-text 数据结构兼容性问题,
成功提取检索上下文,使 answer_correctness 指标能够正常评估。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-08 11:58:21 +08:00

200 lines
5.0 KiB
JSON

{
"metadata": {
"version": "1.0",
"evaluation_date": "2026-01-08T11:14:00.203298",
"test_set": "data/test_sets/ragas_test_cases_v3.1.json",
"systems": [
"kbs-text"
],
"evaluation_mode": "parallel",
"metrics_used": [
"context_recall",
"answer_relevance",
"context_precision",
"faithfulness",
"answer_correctness"
],
"metrics_disabled": [],
"answer_correctness_merged": true,
"answer_correctness_timestamp": "2026-01-08T11:33:49.146539",
"answer_correctness_duration": 384.702848
},
"results": {
"kbs-text": {
"system": "kbs-text",
"timestamp": "2026-01-08T11:14:00.203298",
"positive_cases": {
"context_precision": {
"mean": 0.6979,
"median": 0.7459,
"std": 0.2784,
"min": 0.1111,
"max": 1.0,
"count": 10,
"per_question": {
"q001": 0.99999999995,
"q002": 0.7918019480420505,
"q003": 0.699999999965,
"q004": 0.49999999995,
"q005": 0.4499999999775,
"q006": 0.99999999995,
"q007": 0.5595238095098214,
"q008": 0.99999999995,
"q009": 0.11111111109999999,
"q010": 0.8666666666377778
}
},
"context_recall": {
"mean": 0.6467,
"median": 0.75,
"std": 0.3685,
"min": 0.0,
"max": 1.0,
"count": 10,
"per_question": {
"q001": 0.4,
"q002": 1.0,
"q003": 0.75,
"q004": 0.9,
"q005": 1.0,
"q006": 0.0,
"q007": 0.75,
"q008": 1.0,
"q009": 0.0,
"q010": 0.6666666666666666
}
},
"faithfulness": {
"mean": 0.928,
"median": 1.0,
"std": 0.1024,
"min": 0.7333,
"max": 1.0,
"count": 10,
"per_question": {
"q001": 1.0,
"q002": 1.0,
"q003": 0.75,
"q004": 0.8636363636363636,
"q005": 0.9333333333333333,
"q006": 1.0,
"q007": 1.0,
"q008": 1.0,
"q009": 1.0,
"q010": 0.7333333333333333
}
},
"answer_relevance": {
"mean": 0.8512,
"median": 0.8762,
"std": 0.1253,
"min": 0.5621,
"max": 0.9965,
"count": 10,
"per_question": {
"q001": 0.5621404406672574,
"q002": 0.7489939406459941,
"q003": 0.9404561895496796,
"q004": 0.8340998464921162,
"q005": 0.7591964092732482,
"q006": 0.863376932141667,
"q007": 0.889003151048203,
"q008": 0.9683185026918225,
"q009": 0.9965271356741255,
"q010": 0.9502647695971407
}
},
"answer_correctness": {
"mean": 0.7057786515060125,
"median": 0.8287276446975258,
"std": 0.23285314252378755,
"min": 0.13029470485690328,
"max": 0.957979650501991,
"count": 10,
"per_question": {
"q001": 0.8394885660121292,
"q002": 0.6917569632039222,
"q003": 0.876702110059367,
"q004": 0.5832900081910204,
"q005": 0.9292448791799193,
"q006": 0.8287276446975258,
"q007": 0.6400055595927291,
"q008": 0.957979650501991,
"q009": 0.13029470485690328,
"q010": 0.5802964287646182
}
}
},
"negative_cases": {
"faithfulness": {
"mean": 0.3667,
"median": 0.3333,
"std": 0.3712,
"min": 0.0,
"max": 1.0,
"count": 5,
"per_question": {
"q011": 1.0,
"q012": 0.3333333333333333,
"q013": 0.5,
"q014": 0.0,
"q015": 0.0
}
},
"rejection_rate": {
"value": 0.0,
"count": 0,
"total": 5
}
},
"overall_score": 0.6248
}
},
"comparison": {
"best_performer": {
"context_precision": "kbs-text",
"context_recall": "kbs-text",
"faithfulness": "kbs-text",
"answer_relevance": "kbs-text",
"answer_correctness": "kbs-text"
},
"ranking": [
"kbs-text"
],
"scores": {
"kbs-text": 0.6248
}
},
"analysis_by_question_type": {
"简单检索": {
"kbs-text": 0.7405
},
"复杂检索": {
"kbs-text": 0.8852
},
"多跳检索": {
"kbs-text": 0.7851
},
"模糊查询": {
"kbs-text": 0.7744
},
"流程类问题": {
"kbs-text": 0.7856
},
"比较/对比类问题": {
"kbs-text": 0.7158
},
"数值/统计类问题": {
"kbs-text": 0.7996
},
"异常处理类问题": {
"kbs-text": 0.9921
},
"政策/规则类问题": {
"kbs-text": 0.5269
},
"综合/场景类问题": {
"kbs-text": 0.8042
}
}
}