Skip to content

Commit

Permalink
fix: remove . as a split condition in noise_sensitivity.py (#1627)
Browse files Browse the repository at this point in the history
Fix #1626 to support more languages.
  • Loading branch information
jasinliu authored Nov 7, 2024
1 parent effa4ab commit 5f74eb5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ragas/metrics/_noise_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5f74eb5

Please sign in to comment.