Getting Started
Using Playground in Console
An easy way to try out Playground is to start in the Gretel Console.
Sign into the console and select "Playground".
Try out an example prompt, or use your own. Then click "Generate".
Pro tip: review the Prompts page to get the best results from your input
Click the 3 dots to download your dataset, or click "Batch Data" to generate more than 100 records

Use Playground via the Gretel SDK
You can use Playground operationally through the Gretel SDK.
Create a Gretel account if you don't already have one in order to get your API key.
Start from an example notebook or create your own
If you're feeling stuck, you may find the following use cases helpful to get started.
Example 1: I want some data, but I don’t have concrete structure for that data
Let’s say we want to generate data that represents consumer packaged goods inventory.
We can workshop prompt ideas first using the "Natural language" option of Playground. You can find this tab in the playground.

Try asking:
What are common headers of a consumer packaged goods (CPG) inventory dataset?
or
Help me write a prompt for a large language model (LLM) to create a dataset that represents consumer packaged goods (CPG) inventory
We can use the responses to start with a prompt and then narrow it down to be more specific for the data we're looking for.
⭐ Pro tip: After submitting a prompt to Playground, you can further refine the results by adding sample data from the output. Select "Add an example to improve result" and choose "Import current output". You can make edits to the output to match what you're looking for.
Example 2: I want data and I know the structure I need
For best results, describe the data you're looking to create in a clear manner: like using bullet points and clear descriptions for each column. Review the Prompts doc for best practices.
Example 3: I have data and want to add new columns to it
This feature is available in the playground as well as the SDK. In playground, select the option to add columns to an existing dataset.
Upload your dataset (csv or jsonl format), then use the prompt template to describe the new columns you want to add.
To do this via the SDK, make sure to write a clear prompt describing the new column you want to add to your data.
You can see an example of adding columns in the Playground inference API 101 Blueprint.
Example 4: I have data and want to modify it

Select "Add columns to existing datasets"
Upload your CSV or JSON(L) file into the box
Ensure the uploaded file looks correct in the output section
Edit the prompt as appropriate to add the columns you'd like, with detailed description of rules for generating each column as appropriate
Click generate
Last updated
Was this helpful?