From 84780c4600d50a3e6caa74407c61590669119b29 Mon Sep 17 00:00:00 2001 From: shadeMe Date: Wed, 7 Feb 2024 11:38:24 +0100 Subject: [PATCH] Fix typo --- .../components/evaluators/deepeval_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/deepeval/src/haystack_integrations/components/evaluators/deepeval_metrics.py b/integrations/deepeval/src/haystack_integrations/components/evaluators/deepeval_metrics.py index 8f839f83d..0d57a50c6 100644 --- a/integrations/deepeval/src/haystack_integrations/components/evaluators/deepeval_metrics.py +++ b/integrations/deepeval/src/haystack_integrations/components/evaluators/deepeval_metrics.py @@ -214,7 +214,7 @@ def inner(output: TestResult, metric: DeepEvalMetric) -> List[MetricResult]: out = [MetricResult(name=metric_name, score=metric_result.score, explanation=metric_result.reason)] if metric_result.score_breakdown is not None: for k, v in metric_result.score_breakdown.items(): - out.append(MetricResult(name=f"{metric_name}.{k}", score=v)) + out.append(MetricResult(name=f"{metric_name}_{k}", score=v)) return out return partial(inner, metric=metric)