CascadeEvaluator._get_llm_correctness 会将以"正确性"(或"正确")开头的评委回复视为正确,即使判决结果为负
作者: shaurya416创建于 2026年9月25日更新于 2026年9月25日
opencompass/evaluator/cascade_evaluator.py:118 (identical logic duplicated at :121)
if 'prediction' in llm_detail:
response = llm_detail['prediction'].strip().upper()
return response == 'A' or response.startswith('CORRECT')
elif 'llm_judge' in llm_detail:
response = llm_detail['llm_judge'].strip().upper()
return response == 'A' or response.startswith('CORRECT').startswith('CORRECT') also matches any reply whose first word begins with those letters, such as "CORRECTNESS" or "CORRECTLY". A judge reply that starts with one of those words and then gives a negative verdict is counted as a positive one.
内容来源: open-compass/opencompass