Datasets - Amazon SageMaker AI
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Datasets

The Datasets page of a project lists the datasets that the project uses. You can bring a dataset into a project in four ways: upload a file, add a dataset from the catalog, add a file from Amazon S3, or have the agent generate a dataset.

A dataset is registered in your account and associated with the project, so removing a dataset from a project doesn't delete it. From the Datasets page, you can add a dataset, check its status, review its contents, and remove it from the project.

For information about tools that prepare and label data in SageMaker AI, see Recommendations for choosing the right data preparation tool in SageMaker AI.

Capabilities

On the Datasets page, you can do the following:

  • Add your own data – Upload a JSON Lines file, or add a dataset or a file that you find in the catalog.

  • Track each dataset – See the version, source, format, record count, and status of every dataset in the project.

  • Review a dataset – Open a dataset to see its properties and preview its records. For a dataset that the agent generated, you can also see the task specification, the quality report, and the code that produced it.

  • Remove a dataset – Remove a dataset from the project without deleting its data.

  • Hand the work to the agent – Ask the agent to generate a dataset, or to convert a catalog table or a file into one.

Open the Datasets page

Open a project, and then choose Datasets in the project navigation. For information about projects, see Projects.

Add a dataset

On the Datasets page, choose Add, and then choose an option. The following table lists the options and what each option does.

Option What it does

Upload file

Uploads one or more JSON Lines (.jsonl) files from your computer. Each file can be up to 100 MB. Each file becomes a dataset that is named after the file.

Add from Catalog

Opens the Catalogs tab of the Catalog page. Select a dataset, choose Actions, and then choose Add to project.

Add from Amazon S3

Opens the S3 buckets tab of the Catalog page. Choose a file, choose Actions, and then choose Add to project. A .jsonl file is added as it is. For a .json, .csv, .tsv, .parquet, .arrow, or .feather file, the agent converts the file to JSON Lines and then adds it.

To generate a dataset, ask the agent in the project's conversation. A dataset that the agent generates appears on the Datasets page when the agent finishes. To see how the agent produced it, see View dataset details.

For more information about the catalog, see Catalog.

File name conflicts

If you upload a file that has the same name as a dataset in the project, choose how you want to upload it in the Upload dataset dialog box, and then choose Upload. You have the following options:

  • Upload as a new version – Adds a version to the existing dataset. Use this option for a corrected or updated copy of the same data.

  • Upload as a new dataset – Creates a separate dataset with a numbered name. Use this option if the file is unrelated to the existing dataset.

Dataset verification

When the agent generates a dataset, it runs a synthetic data generation job. The job writes generation code and verifier code from the task specification, and then checks each record with the verifier code. Every record must pass structural checks, such as format, required fields, and value ranges. Depending on the specification, a model also checks the content of each record.

The pass rate of a generated dataset is the number of records that pass verification divided by the number of records that you requested. To see the checks that ran, open the Code tab on the dataset page. For more information about verification, see Choose how records are verified.

View the datasets in a project

The Datasets page shows one row for each dataset. The following table lists the columns and what each column shows.

Column What it shows

Name

The dataset name. Choose the name to open the dataset details. For more information, see View dataset details.

Version

The dataset version.

Source

Where the data came from. generated means that the agent produced the dataset. attached means that you uploaded or added it.

Format

The file format of the dataset.

Records

The number of records in the dataset. For a generated dataset, the column shows the number of records that passed verification and the number of records that were requested.

Pass rate

For a generated dataset, the percentage of requested records that passed verification. For more information, see Dataset verification.

Status

The state of the dataset. For the list of statuses, see the next table.

Created

When the dataset was created.

Actions

The actions that you can take on the dataset, such as Remove from project.

The following table lists the dataset statuses and what each status means.

Status What it means

Available

The dataset is registered and ready to use.

Uploading

The file is uploading. The status shows the progress.

Registering

The dataset is being registered with the project.

Not registered

The dataset isn't registered yet. To register it, choose Register in the Actions column.

Failed

The upload or the registration failed. To register the dataset again, choose Retry registration in the Actions column.

Dataset metadata unavailable

The details of the dataset didn't load. Choose Retry in the alert above the table.

View dataset details

Choose a dataset name to open the dataset details. To return to the list, choose Datasets in the breadcrumb. A tab appears when the dataset has that information. The following table lists the tabs and what each tab shows.

Tab What it shows

Overview

The properties of the dataset, such as its source, format, record count, version, status, and size. For a generated dataset, the tab also shows the models and the jobs that produced it.

Specification

The task specification that the agent used to generate the dataset.

Quality report

The metrics from a data quality evaluation of the dataset. This evaluation is separate from the verification that produces the pass rate.

Code

The generation code and the verifier code that the agent wrote for the dataset.

Preview

The first records of the dataset. To search the previewed records, use Filter records.

Remove a dataset from a project

In the Actions column for the dataset, choose Remove from project, and then choose Remove. The dataset no longer appears in the project. Removing a dataset doesn't delete its data. The file stays in Amazon S3.