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)