Skip to content

Commit

Permalink
redo assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
shahules786 committed Jan 9, 2025
1 parent d757f6a commit 5236524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragas/metrics/_bleu_score.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async def _single_turn_ascore(
) -> float:

reference, response = sample.reference, sample.response
assert isinstance(reference, str), "Expecting a string"
assert isinstance(response, str), "Expecting a string"
assert isinstance(reference, str), "BleuScore expects a valid reference string"
assert isinstance(response, str), "BleuScore expects a valid response string"

reference_sentences = reference.split(". ")
response_sentences = response.split(". ")
Expand Down

0 comments on commit 5236524

Please sign in to comment.