diff --git a/src/ragas/metrics/base.py b/src/ragas/metrics/base.py index f2ba99f42..1f151489a 100644 --- a/src/ragas/metrics/base.py +++ b/src/ragas/metrics/base.py @@ -52,11 +52,13 @@ def get_required_columns( class Metric(ABC): @property @abstractmethod - def name(self) -> str: ... + def name(self) -> str: + ... @property @abstractmethod - def evaluation_mode(self) -> EvaluationMode: ... + def evaluation_mode(self) -> EvaluationMode: + ... @abstractmethod def init(self, run_config: RunConfig): @@ -118,9 +120,8 @@ async def ascore( return score @abstractmethod - async def _ascore( - self, row: t.Dict, callbacks: Callbacks, is_async: bool - ) -> float: ... + async def _ascore(self, row: t.Dict, callbacks: Callbacks, is_async: bool) -> float: + ... @dataclass