adelevett's picture
Deploy ELBench-live dashboard
5db30ac verified
Raw History Blame Contribute Delete
312 Bytes
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