Skip to content

Commit

Permalink
removing summarization_score metric
Browse files Browse the repository at this point in the history
Signed-off-by: aasavari <[email protected]>
  • Loading branch information
adkakne committed Sep 26, 2024
1 parent 1047133 commit 1a9d3e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evals/metrics/ragas/ragas.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def measure(self, test_case: Dict):
from ragas.metrics import ALL_METRICS
self.metric_names = [metric.__class__.__name__ for metric in ALL_METRICS]
self.metric_names = [re.sub(r'(?<!^)(?=[A-Z])', '_', name).lower() for name in self.metric_names]
self.metric_names = list(set(self.metric_names))
# Note - summarization score metric is not working with best open-source LLMs
# Note - which is why we are removing it from our offering at the moment.
self.metric_names.remove("summarization_score")
self.metric_instances = {}
for metric in self.metric_names:
try:
Expand Down

0 comments on commit 1a9d3e8

Please sign in to comment.