feat: add evaluation service module for RAG and Agent (#2070)

This commit is contained in:
Aries-ckt
2024-10-18 17:42:11 +08:00
committed by GitHub
parent 253c367ceb
commit 811ce63493
29 changed files with 1263 additions and 61 deletions

View File

@@ -287,7 +287,7 @@ class MetricManage:
def register_metric(self, cls: Type[EvaluationMetric]):
"""Register metric."""
self.metrics[cls.name] = cls
self.metrics[cls.name()] = cls
def get_by_name(self, name: str) -> Type[EvaluationMetric]:
"""Get by name."""
@@ -308,4 +308,4 @@ class MetricManage:
return result
metric_mange = MetricManage()
metric_manage = MetricManage()