Skip to content

Commit 3e5703a

Browse files
authored
make reward stricter
1 parent eb0a134 commit 3e5703a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/reward.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ async def api_score(api_answer: str, response: str, weight: float) -> float:
6969
words_in_response = len(response.split())
7070
words_in_api = len(api_answer.split())
7171

72-
# Answer must be within 15% the true answer's length
73-
word_count_threshold = words_in_api * 0.15
72+
# Answer must be within 10% the true answer's length
73+
word_count_threshold = words_in_api * 0.10
7474

7575
# Check if the word count difference is within the threshold and similarity
7676
if abs(words_in_response - words_in_api) <= word_count_threshold:

0 commit comments

Comments
 (0)