Package dev.braintrust.eval
Interface Scorer<INPUT,OUTPUT>
- Type Parameters:
INPUT- type of the input dataOUTPUT- type of the output data
public interface Scorer<INPUT,OUTPUT>
A scorer evaluates the result of a test case with a score between 0 (inclusive) and 1
(inclusive).
-
Method Details
-
getName
String getName() -
score
-
of
-
of
@Deprecated static <INPUT,OUTPUT> Scorer<INPUT,OUTPUT> of(String scorerName, BiFunction<EvalCase<INPUT, OUTPUT>, OUTPUT, Double> scorerFn) Deprecated.Deprecated. Useof(String, Function)or implement the Scorer interface instead.
-