Class AnswerAccuracyMetric
java.lang.Object
com.google.genkit.plugins.evaluators.metrics.AnswerAccuracyMetric
Answer Accuracy metric evaluator.
Measures the accuracy of the generated answer against a reference answer. Uses bidirectional comparison for semantic equivalence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvalDataPoint dataPoint) Evaluates the accuracy of the output against the reference.
-
Constructor Details
-
AnswerAccuracyMetric
-
-
Method Details
-
evaluate
Evaluates the accuracy of the output against the reference.- Parameters:
dataPoint- the evaluation data point- Returns:
- the evaluation response
- Throws:
Exception- if evaluation fails
-