Create a Dataset in the UI
If you’re starting in the PromptLayer app, this is the fastest path to upload a prepared dataset file.- Go to the workspace where you want to store the dataset.
- Click New and create a Dataset.
- Click Upload data.
- Choose a CSV or JSON file from your computer.
- Review the imported rows and click Save Dataset when you are ready to publish the version.
Create Datasets Programmatically
You can also create datasets from uploaded CSV or JSON files through the API. This is useful when you want to automate evaluation setup, sync prepared test cases from another system, or integrate dataset creation into your own workflow.- Create Dataset Group - Create the dataset group that will contain your draft and saved versions.
- Create Dataset Version from File - Upload a CSV or JSON file and create a dataset version asynchronously.
- List Datasets - Retrieve dataset groups and versions in your workspace.
- Get Dataset Rows - Inspect the rows in a saved dataset version after import.

