From 76790f37b1a7d41ba1442d2d9e9f9ec11da20e38 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:36:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- evals/metrics/ragas/ragas.py | 12 +++++++----- tests/test_ragas.py | 6 ++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/evals/metrics/ragas/ragas.py b/evals/metrics/ragas/ragas.py index 89cc8b0b..c80ff94e 100644 --- a/evals/metrics/ragas/ragas.py +++ b/evals/metrics/ragas/ragas.py @@ -33,7 +33,7 @@ def __init__( self.model = model self.embeddings = embeddings self.metrics = metrics - + # self.validated_list = [ # "answer_correctness", # "answer_relevancy", @@ -53,11 +53,12 @@ def measure(self, test_case: Dict): try: from ragas import evaluate from ragas.metrics import ALL_METRICS - self.metric_names = [metric.__class__.__name__ for metric in ALL_METRICS] - self.metric_names = [re.sub(r'(?