Skip to content

Commit

Permalink
make similarity stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
surcyf123 authored Oct 30, 2024
1 parent 8fcab28 commit bcc50ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortext/reward.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def api_score(api_answer: str, response: str, weight: float, temperature:

# Check if the word count of the response is within the thresholds
if words_in_response <= word_count_over_threshold and words_in_response >= word_count_under_threshold:
score = weight * similarity
score = weight * (similarity ** 3)
else:
score = 0

Expand Down

0 comments on commit bcc50ed

Please sign in to comment.