Package dev.dokimos.core
Interface Evaluator
- All Known Implementing Classes:
BaseEvaluator,ExactMatchEvaluator,FaithfulnessEvaluator,LLMJudgeEvaluator,RegexEvaluator
public interface Evaluator
Evaluates test cases and produces scored results.
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvalTestCase testCase) Evaluates the test case and returns a scored result.name()Returns the evaluator name.doubleReturns the minimum score threshold for success.
-
Method Details
-
evaluate
Evaluates the test case and returns a scored result.- Parameters:
testCase- the test case to evaluate- Returns:
- the evaluation result
-
name
String name()Returns the evaluator name.- Returns:
- the evaluator name
-
threshold
double threshold()Returns the minimum score threshold for success.- Returns:
- the threshold value
-