Uses of Class
com.google.genkit.ai.evaluation.EvalResponse
Packages that use EvalResponse
-
Uses of EvalResponse in com.google.genkit.ai.evaluation
Methods in com.google.genkit.ai.evaluation that return EvalResponseModifier and TypeMethodDescriptionEvalResponse.Builder.build()EvaluatorFn.evaluate(EvalDataPoint dataPoint, O options) Evaluates a single data point.Methods in com.google.genkit.ai.evaluation that return types with arguments of type EvalResponseModifier and TypeMethodDescriptionEvaluator.run(ActionContext ctx, EvalRequest input) Evaluator.run(ActionContext ctx, EvalRequest input, Consumer<Void> streamCallback) -
Uses of EvalResponse in com.google.genkit.plugins.evaluators.metrics
Methods in com.google.genkit.plugins.evaluators.metrics that return EvalResponseModifier and TypeMethodDescriptionAnswerAccuracyMetric.evaluate(EvalDataPoint dataPoint) Evaluates the accuracy of the output against the reference.AnswerRelevancyMetric.evaluate(EvalDataPoint dataPoint) Evaluates the relevancy of the answer to the question.DeepEqualMetric.evaluate(EvalDataPoint dataPoint) Evaluates whether the output is deeply equal to the reference.FaithfulnessMetric.evaluate(EvalDataPoint dataPoint) Evaluates faithfulness of the output against the context.JsonataMetric.evaluate(EvalDataPoint dataPoint) Evaluates the output using the JSONata expression in the reference.MaliciousnessMetric.evaluate(EvalDataPoint dataPoint) Evaluates if the output contains malicious content.RegexMetric.evaluate(EvalDataPoint dataPoint) Evaluates whether the output matches the regex pattern in the reference.