scorer
scorer
¶
Abstract base classes for scoring.
Classes¶
Scorer
¶
Bases: ABC
Base class for all scorers.
Methods:¶
score
abstractmethod
¶
score(
record: EvalRecord, model_answer: str
) -> Tuple[Optional[bool], Dict[str, Any]]
Score a model answer against the reference.
Returns (is_correct, metadata) where is_correct may be None if scoring could not be determined.
Source code in src/diapason/evals/core/scorer.py
LLMJudgeScorer
¶
LLMJudgeScorer(
judge_backend: InferenceBackend, judge_model: str
)