Package com.google.genkit.ai.evaluation
Interface EvaluatorFn<O>
- Type Parameters:
O- the type of evaluator-specific options
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for evaluator functions.
An evaluator function takes a data point and optional options, and returns an evaluation response containing scores.
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvalDataPoint dataPoint, O options) Evaluates a single data point.
-
Method Details
-
evaluate
Evaluates a single data point.- Parameters:
dataPoint- the data point to evaluateoptions- optional evaluator-specific options- Returns:
- the evaluation response
- Throws:
Exception- if evaluation fails
-