Package com.google.genkit.ai.evaluation
Interface DatasetStore
- All Known Implementing Classes:
LocalFileDatasetStore
public interface DatasetStore
Interface for dataset storage operations.
Implementations of this interface handle CRUD operations for datasets used in evaluation workflows.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDataset(CreateDatasetRequest request) Creates a new dataset.voiddeleteDataset(String datasetId) Deletes a dataset.getDataset(String datasetId) Gets the data for a dataset.Lists all datasets.updateDataset(UpdateDatasetRequest request) Updates an existing dataset.
-
Method Details
-
createDataset
Creates a new dataset.- Parameters:
request- the create request containing dataset data and metadata- Returns:
- metadata about the created dataset
- Throws:
Exception- if creation fails
-
updateDataset
Updates an existing dataset.- Parameters:
request- the update request containing dataset ID and new data- Returns:
- metadata about the updated dataset
- Throws:
Exception- if update fails or dataset not found
-
getDataset
Gets the data for a dataset.- Parameters:
datasetId- the dataset ID- Returns:
- the list of dataset samples
- Throws:
Exception- if retrieval fails or dataset not found
-
listDatasets
Lists all datasets.- Returns:
- list of dataset metadata
- Throws:
Exception- if listing fails
-
deleteDataset
Deletes a dataset.- Parameters:
datasetId- the dataset ID to delete- Throws:
Exception- if deletion fails
-