From 5f74eb5e9b6280e37f24bc307be835e18900a9f2 Mon Sep 17 00:00:00 2001 From: Liu Jiajun <939282975@qq.com> Date: Thu, 7 Nov 2024 12:02:24 +0800 Subject: [PATCH] fix: remove `.` as a split condition in noise_sensitivity.py (#1627) Fix #1626 to support more languages. --- src/ragas/metrics/_noise_sensitivity.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ragas/metrics/_noise_sensitivity.py b/src/ragas/metrics/_noise_sensitivity.py index a6a903b68..4074d0edc 100644 --- a/src/ragas/metrics/_noise_sensitivity.py +++ b/src/ragas/metrics/_noise_sensitivity.py @@ -101,7 +101,6 @@ async def _decompose_answer_into_statements( sentences_with_index = { i: sentence for i, sentence in enumerate(sentences) - if sentence.strip().endswith(".") } statements_simplified = await self.statement_prompt.generate(