Skip to main content
How to use datasets
Dan Cleary avatar
Written by Dan Cleary
Updated over a week ago

Datasets enable you to upload large amount of data in PromptHub to use when testing your prompts.

Testing a prompt using test cases from a dataset only requires a few steps:

  1. Create a dataset from the database page by manually adding test cases or uploading a CSV. (For info about formatting of the csv file, check out our help article here).

  2. Create a prompt and use the same variable names as used in your dataset

  3. Run the prompt using values from the dataset. You can do this by creating a batch test from the batches page, or from the playground page for any prompt by clicking the dropdown on the Run Test button and selecting "Run on dataset"

Check out our quick demo below if you need some more help!

Did this answer your question?