diff --git a/src/ragas/metrics/_bleu_score.py b/src/ragas/metrics/_bleu_score.py index 5e3aa32e1..71505a4bf 100644 --- a/src/ragas/metrics/_bleu_score.py +++ b/src/ragas/metrics/_bleu_score.py @@ -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(". ")