mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 22:09:44 +00:00
feat: add evaluation service module for RAG and Agent (#2070)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user