Package com.google.genkit.ai.evaluation
Class LocalFileEvalStore
java.lang.Object
com.google.genkit.ai.evaluation.LocalFileEvalStore
- All Implemented Interfaces:
EvalStore
File-based implementation of EvalStore.
Stores evaluation runs in the .genkit/evals directory with:
- index.json - metadata for all eval runs
- {evalRunId}.json - actual eval run data
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LocalFileEvalStore using the default location.LocalFileEvalStore(Path storeRoot) Creates a new LocalFileEvalStore with a custom root path. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes an evaluation run.static LocalFileEvalStoreGets the singleton instance of the eval store.list()Lists all evaluation run keys.Lists evaluation run keys with optional filtering.Loads an evaluation run by ID.voidSaves an evaluation run.
-
Constructor Details
-
LocalFileEvalStore
public LocalFileEvalStore()Creates a new LocalFileEvalStore using the default location. -
LocalFileEvalStore
Creates a new LocalFileEvalStore with a custom root path.- Parameters:
storeRoot- the root directory for storing eval runs
-
-
Method Details
-
getInstance
Gets the singleton instance of the eval store.- Returns:
- the eval store instance
-
save
Description copied from interface:EvalStoreSaves an evaluation run. -
load
Description copied from interface:EvalStoreLoads an evaluation run by ID. -
list
Description copied from interface:EvalStoreLists all evaluation run keys. -
list
Description copied from interface:EvalStoreLists evaluation run keys with optional filtering. -
delete
Description copied from interface:EvalStoreDeletes an evaluation run.
-