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 Details

    • createDataset

      DatasetMetadata createDataset(CreateDatasetRequest request) throws Exception
      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

      DatasetMetadata updateDataset(UpdateDatasetRequest request) throws Exception
      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

      List<DatasetSample> getDataset(String datasetId) throws Exception
      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

      List<DatasetMetadata> listDatasets() throws Exception
      Lists all datasets.
      Returns:
      list of dataset metadata
      Throws:
      Exception - if listing fails
    • deleteDataset

      void deleteDataset(String datasetId) throws Exception
      Deletes a dataset.
      Parameters:
      datasetId - the dataset ID to delete
      Throws:
      Exception - if deletion fails