RAG 基准测试: MultiHOP 在 SQuAD token-F1 评分中与 1 词的金标答案相比,在公布的分数中, F1 无法将后端与常量回复分开
作者: shaurya416创建于 2026年9月24日更新于 2026年9月24日
benchmarking/RAG/lib/metrics.py:87,126,138-139, benchmarking/RAG/compare_results.py:20-25 (multihop at :22), benchmarking/RAG/lib/query.py:53-58
`Python
metrics.py
_squad_metric = evaluate.load("squad") ... squad_results = _squad_metric.compute(predictions=hf_predictions, references=hf_references) ... "exact_match": squad_results["exact_match"] / 100.0, "f1": squad_results["f1"] / 100.0,
内容来源: ogx-ai/ogx