Package com.google.genkit.ai.evaluation
Class EvaluationManager
java.lang.Object
com.google.genkit.ai.evaluation.EvaluationManager
Manages the execution of evaluations.
The EvaluationManager coordinates running evaluations by:
- Loading datasets from the dataset store
- Running inference on the target action
- Executing evaluators on the results
- Storing evaluation results
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluationManager(Registry registry) Creates a new EvaluationManager.EvaluationManager(Registry registry, DatasetStore datasetStore, EvalStore evalStore) Creates a new EvaluationManager with custom stores. -
Method Summary
Modifier and TypeMethodDescriptionGets the dataset store.Gets the eval store.runEvaluation(RunEvaluationRequest request) Runs a new evaluation.
-
Constructor Details
-
EvaluationManager
Creates a new EvaluationManager.- Parameters:
registry- the Genkit registry
-
EvaluationManager
Creates a new EvaluationManager with custom stores.- Parameters:
registry- the Genkit registrydatasetStore- the dataset storeevalStore- the eval store
-
-
Method Details
-
runEvaluation
Runs a new evaluation.- Parameters:
request- the evaluation request- Returns:
- the evaluation run key
- Throws:
Exception- if evaluation fails
-
getDatasetStore
Gets the dataset store. -
getEvalStore
Gets the eval store.
-