We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78b1796 commit 5050742Copy full SHA for 5050742
src/ragas/metrics/base.py
@@ -52,11 +52,13 @@ def get_required_columns(
52
class Metric(ABC):
53
@property
54
@abstractmethod
55
- def name(self) -> str: ...
+ def name(self) -> str:
56
+ ...
57
58
59
- def evaluation_mode(self) -> EvaluationMode: ...
60
+ def evaluation_mode(self) -> EvaluationMode:
61
62
63
64
def init(self, run_config: RunConfig):
@@ -118,9 +120,8 @@ async def ascore(
118
120
return score
119
121
122
- async def _ascore(
- self, row: t.Dict, callbacks: Callbacks, is_async: bool
123
- ) -> float: ...
+ async def _ascore(self, row: t.Dict, callbacks: Callbacks, is_async: bool) -> float:
124
125
126
127
@dataclass
0 commit comments