Use file upload when you already have a prepared set of test cases and want the fastest path to a structured dataset version. PromptLayer accepts CSV and JSON files so you can turn offline examples, QA sheets, or exported test cases into reusable evaluation inputs. JSON or CSV files are accepted for the dataset input file.Documentation Index
Fetch the complete documentation index at: https://docs.promptlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
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.

