Spaces:
Running on Zero
Running on Zero
File size: 312 Bytes
5db30ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from __future__ import annotations
from abc import ABC, abstractmethod
from elbench.schemas.evaluation import JudgeResult, ModelResponse, Sample
class BaseJudge(ABC):
@abstractmethod
async def judge(self, sample: Sample, response: ModelResponse) -> JudgeResult:
raise NotImplementedError
|