The Basics
🎨 Data Designer Tutorial: The Basics
📚 What you'll learn
This notebook demonstrates the basics of Data Designer by generating a simple product review dataset.
📦 Import Data Designer
-
data_designer.configprovides access to the configuration API. -
DataDesigneris the main interface for data generation.
⚙️ Initialize the Data Designer interface
-
DataDesigneris the main object responsible for managing the data generation process. -
When initialized without arguments, the default model providers are used.
🎛️ Define model configurations
-
Each
ModelConfigdefines a model that can be used during the generation process. -
The "model alias" is used to reference the model in the Data Designer config (as we will see below).
-
The "model provider" is the external service that hosts the model (see the model config docs for more details).
-
By default, we use build.nvidia.com as the model provider.
🏗️ Initialize the Data Designer Config Builder
-
The Data Designer config defines the dataset schema and generation process.
-
The config builder provides an intuitive interface for building this configuration.
-
The list of model configs is provided to the builder at initialization.
🎲 Getting started with sampler columns
-
Sampler columns offer non-LLM based generation of synthetic data.
-
They are particularly useful for steering the diversity of the generated data, as we demonstrate below.
You can view available samplers using the config builder's info property:
─────────────────────────────────────────── NeMo Data Designer Samplers ─────────────────────────────────────────── ┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓ ┃ Type ┃ Parameter ┃ Data Type ┃ Required ┃ Constraints ┃ ┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━┩ │ bernoulli │ p │ number │ ✓ │ >= 0.0, <= 1.0 │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ bernoulli_mixture │ p │ number │ ✓ │ >= 0.0, <= 1.0 │ │ │ dist_name │ string │ ✓ │ │ │ │ dist_params │ dict │ ✓ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ binomial │ n │ integer │ ✓ │ │ │ │ p │ number │ ✓ │ >= 0.0, <= 1.0 │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ category │ values │ string[] | integer[] | number[] │ ✓ │ len > 1 │ │ │ weights │ number[] | null │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ datetime │ start │ string │ ✓ │ │ │ │ end │ string │ ✓ │ │ │ │ unit │ string │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ gaussian │ mean │ number │ ✓ │ │ │ │ stddev │ number │ ✓ │ │ │ │ decimal_places │ integer | null │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ person │ locale │ string │ │ │ │ │ sex │ string | null │ │ │ │ │ city │ string | string[] | null │ │ │ │ │ age_range │ integer[] │ │ len > 2, len < 2 │ │ │ select_field_values │ object | null │ │ │ │ │ with_synthetic_personas │ boolean │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ person_from_faker │ locale │ string │ │ │ │ │ sex │ string | null │ │ │ │ │ city │ string | string[] | null │ │ │ │ │ age_range │ integer[] │ │ len > 2, len < 2 │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ poisson │ mean │ number │ ✓ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ scipy │ dist_name │ string │ ✓ │ │ │ │ dist_params │ dict │ ✓ │ │ │ │ decimal_places │ integer | null │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ subcategory │ category │ string │ ✓ │ │ │ │ values │ dict │ ✓ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ timedelta │ dt_min │ integer │ ✓ │ >= 0 │ │ │ dt_max │ integer │ ✓ │ > 0 │ │ │ reference_column_name │ string │ ✓ │ │ │ │ unit │ string │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ uniform │ low │ number │ ✓ │ │ │ │ high │ number │ ✓ │ │ │ │ decimal_places │ integer | null │ │ │ │ │ sampler_type │ string │ │ │ ├────────────────────┼──────────────────────────┼───────────────────────────────────┼──────────┼──────────────────┤ │ uuid │ prefix │ string | null │ │ │ │ │ short_form │ boolean │ │ │ │ │ uppercase │ boolean │ │ │ │ │ sampler_type │ string │ │ │ └────────────────────┴──────────────────────────┴───────────────────────────────────┴──────────┴──────────────────┘
Let's start designing our product review dataset by adding product category and subcategory columns.
[13:22:58] [INFO] ✅ Validation passed
Next, let's add samplers to generate data related to the customer and their review.
[13:22:58] [INFO] ✅ Validation passed
🦜 LLM-generated columns
-
The real power of Data Designer comes from leveraging LLMs to generate text, code, and structured data.
-
When prompting the LLM, we can use Jinja templating to reference other columns in the dataset.
-
As we see below, nested json fields can be accessed using dot notation.
[13:22:58] [INFO] ✅ Validation passed
🔁 Iteration is key – preview the dataset!
-
Use the
previewmethod to generate a sample of records quickly. -
Inspect the results for quality and format issues.
-
Adjust column configurations, prompts, or parameters as needed.
-
Re-run the preview until satisfied.
[13:22:58] [INFO] 🎥 Preview generation in progress
[13:22:58] [INFO] |-- 🔒 Jinja rendering engine: secure
[13:22:58] [INFO] ✅ Validation passed
[13:22:58] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[13:22:58] [INFO] 🩺 Running health checks for models...
[13:22:58] [INFO] |-- 👀 Checking 'nvidia/nemotron-3-nano-30b-a3b' in provider named 'nvidia' for model alias 'nemotron-nano-v3'...
[13:22:59] [INFO] |-- ✅ Passed!
[13:22:59] [INFO] ⚡ DATA_DESIGNER_ASYNC_ENGINE is enabled - using async task-queue preview
[13:22:59] [INFO] 📝 llm-text model config for column 'product_name'
[13:22:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[13:22:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[13:22:59] [INFO] |-- model provider: 'nvidia'
[13:22:59] [INFO] |-- inference parameters:
[13:22:59] [INFO] | |-- generation_type=chat-completion
[13:22:59] [INFO] | |-- max_parallel_requests=4
[13:22:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[13:22:59] [INFO] | |-- temperature=1.00
[13:22:59] [INFO] | |-- top_p=1.00
[13:22:59] [INFO] | |-- max_tokens=2048
[13:22:59] [INFO] 📝 llm-text model config for column 'customer_review'
[13:22:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[13:22:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[13:22:59] [INFO] |-- model provider: 'nvidia'
[13:22:59] [INFO] |-- inference parameters:
[13:22:59] [INFO] | |-- generation_type=chat-completion
[13:22:59] [INFO] | |-- max_parallel_requests=4
[13:22:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[13:22:59] [INFO] | |-- temperature=1.00
[13:22:59] [INFO] | |-- top_p=1.00
[13:22:59] [INFO] | |-- max_tokens=2048
[13:22:59] [INFO] ⚡️ Async generation: 2 column(s) (product_name, customer_review), 4 tasks across 1 row group(s)
[13:22:59] [INFO] 🚀 (1/1) Dispatching with 2 records
[13:22:59] [INFO] 🎲 (1/1) Preparing samplers to generate 2 records across 6 columns
[13:23:04] [INFO] 📊 Progress [5.0s]:
[13:23:04] [INFO] |-- 🌕 product_name: 2/2 (100%) 0.4 rec/s
[13:23:04] [INFO] |-- 🚀 customer_review: 2/2 (100%) 0.4 rec/s
[13:23:04] [INFO] ✅ Async generation complete [5.0s]: 4 ok, 0 failed across 2 column(s)
[13:23:04] [INFO] 📊 Model usage summary:
[13:23:04] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[13:23:04] [INFO] |-- tokens: input=361, output=85, total=446, tps=88
[13:23:04] [INFO] |-- requests: success=4, failed=0, total=4, rpm=47
[13:23:04] [INFO] 📐 Measuring dataset column statistics:
[13:23:04] [INFO] |-- 🎲 column: 'product_category'
[13:23:04] [INFO] |-- 🎲 column: 'product_subcategory'
[13:23:04] [INFO] |-- 🎲 column: 'target_age_range'
[13:23:04] [INFO] |-- 🎲 column: 'customer'
[13:23:04] [INFO] |-- 🎲 column: 'number_of_stars'
[13:23:04] [INFO] |-- 🎲 column: 'review_style'
[13:23:04] [INFO] |-- 📝 column: 'product_name'
[13:23:04] [INFO] |-- 📝 column: 'customer_review'
[13:23:04] [INFO] 🥳 Preview complete!
Generated Columns ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ Home Office │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product_subcategory │ Chairs │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ target_age_range │ 50-65 │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer │ { │ │ │ 'uuid': 'f8cdba18-ee1c-4170-8da3-387793300e27', │ │ │ 'locale': 'en_US', │ │ │ 'first_name': 'Scott', │ │ │ 'last_name': 'Randall', │ │ │ 'middle_name': None, │ │ │ 'sex': 'Male', │ │ │ 'street_number': '734', │ │ │ 'street_name': 'Thomas Fall', │ │ │ 'city': 'East Veronicashire', │ │ │ 'state': 'Nevada', │ │ │ 'postcode': '29613', │ │ │ 'age': 33, │ │ │ 'birth_date': '1993-05-31', │ │ │ 'country': 'Netherlands', │ │ │ 'marital_status': 'separated', │ │ │ 'education_level': 'bachelors', │ │ │ 'unit': '', │ │ │ 'occupation': 'Biochemist, clinical', │ │ │ 'phone_number': '5875833953', │ │ │ 'bachelors_field': 'business' │ │ │ } │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ number_of_stars │ 2 │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ review_style │ brief │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product_name │ ErgoChair Pro 50-65 Comfort │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_review │ 2 stars – Disappointed. Feels cheap and uncomfortable after just a few hours. Not │ │ │ worth the price. │ └─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘
| product_category | product_subcategory | target_age_range | customer | number_of_stars | review_style | product_name | customer_review | |
|---|---|---|---|---|---|---|---|---|
| 0 | Home Office | Chairs | 50-65 | {'uuid': 'f8cdba18-ee1c-4170-8da3-387793300e27... | 2 | brief | ErgoChair Pro 50-65 Comfort | 2 stars – Disappointed. Feels cheap and uncomf... |
| 1 | Electronics | Headphones | 25-35 | {'uuid': 'a849428f-10b7-4a2b-93c5-72f24dcb2d60... | 2 | brief | SoundScape Pro | SoundScape Pro, 2 stars. Expected immersive au... |
📊 Analyze the generated data
-
Data Designer automatically generates a basic statistical analysis of the generated data.
-
This analysis is available via the
analysisproperty of generation result objects.
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 2 │ 8 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🎲 Sampler Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ sampler type ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ string │ 2 (100.0%) │ category │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ product_subcategory │ string │ 2 (100.0%) │ subcategory │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ target_age_range │ string │ 2 (100.0%) │ category │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ customer │ dict │ 2 (100.0%) │ person_from_faker │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ number_of_stars │ int │ 1 (50.0%) │ uniform │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ review_style │ string │ 1 (50.0%) │ category │ └────────────────────────────────┴─────────────────┴─────────────────────────────────┴────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_name │ string │ 2 (100.0%) │ 74.0 +/- 0.0 │ 7.0 +/- 4.2 │ ├───────────────────────┼───────────────┼────────────────────────────┼───────────────────┼────────────────────────┤ │ customer_review │ string │ 2 (100.0%) │ 71.0 +/- 3.0 │ 30.5 +/- 12.0 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🆙 Scale up!
-
Happy with your preview data?
-
Use the
createmethod to submit larger Data Designer generation jobs.
[13:23:05] [INFO] 🎨 Creating Data Designer dataset
[13:23:05] [INFO] |-- 🔒 Jinja rendering engine: secure
[13:23:05] [INFO] ✅ Validation passed
[13:23:05] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[13:23:05] [INFO] 🩺 Running health checks for models...
[13:23:05] [INFO] |-- 👀 Checking 'nvidia/nemotron-3-nano-30b-a3b' in provider named 'nvidia' for model alias 'nemotron-nano-v3'...
[13:23:05] [INFO] |-- ✅ Passed!
[13:23:05] [INFO] ⚡ DATA_DESIGNER_ASYNC_ENGINE is enabled - using async task-queue builder
[13:23:05] [INFO] 📝 llm-text model config for column 'product_name'
[13:23:05] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[13:23:05] [INFO] |-- model alias: 'nemotron-nano-v3'
[13:23:05] [INFO] |-- model provider: 'nvidia'
[13:23:05] [INFO] |-- inference parameters:
[13:23:05] [INFO] | |-- generation_type=chat-completion
[13:23:05] [INFO] | |-- max_parallel_requests=4
[13:23:05] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[13:23:05] [INFO] | |-- temperature=1.00
[13:23:05] [INFO] | |-- top_p=1.00
[13:23:05] [INFO] | |-- max_tokens=2048
[13:23:05] [INFO] 📝 llm-text model config for column 'customer_review'
[13:23:05] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[13:23:05] [INFO] |-- model alias: 'nemotron-nano-v3'
[13:23:05] [INFO] |-- model provider: 'nvidia'
[13:23:05] [INFO] |-- inference parameters:
[13:23:05] [INFO] | |-- generation_type=chat-completion
[13:23:05] [INFO] | |-- max_parallel_requests=4
[13:23:05] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[13:23:05] [INFO] | |-- temperature=1.00
[13:23:05] [INFO] | |-- top_p=1.00
[13:23:05] [INFO] | |-- max_tokens=2048
[13:23:05] [INFO] ⚡️ Async generation: 2 column(s) (product_name, customer_review), 20 tasks across 1 row group(s)
[13:23:05] [INFO] 🚀 (1/1) Dispatching with 10 records
[13:23:05] [INFO] 🎲 (1/1) Preparing samplers to generate 10 records across 6 columns
[13:23:09] [INFO] 📊 Progress [3.9s]:
[13:23:09] [INFO] |-- 🐔 product_name: 10/10 (100%) 2.6 rec/s
[13:23:09] [INFO] |-- 🌕 customer_review: 10/10 (100%) 2.6 rec/s
[13:23:09] [INFO] ✅ Async generation complete [3.9s]: 20 ok, 0 failed across 2 column(s)
[13:23:09] [INFO] 📊 Model usage summary:
[13:23:09] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[13:23:09] [INFO] |-- tokens: input=1768, output=967, total=2735, tps=674
[13:23:09] [INFO] |-- requests: success=20, failed=0, total=20, rpm=295
[13:23:09] [INFO] 📐 Measuring dataset column statistics:
[13:23:09] [INFO] |-- 🎲 column: 'product_category'
[13:23:09] [INFO] |-- 🎲 column: 'product_subcategory'
[13:23:09] [INFO] |-- 🎲 column: 'target_age_range'
[13:23:09] [INFO] |-- 🎲 column: 'customer'
[13:23:09] [INFO] |-- 🎲 column: 'number_of_stars'
[13:23:09] [INFO] |-- 🎲 column: 'review_style'
[13:23:09] [INFO] |-- 📝 column: 'product_name'
[13:23:09] [INFO] |-- 📝 column: 'customer_review'
| product_category | product_subcategory | target_age_range | customer | number_of_stars | review_style | product_name | customer_review | |
|---|---|---|---|---|---|---|---|---|
| 0 | Books | Textbooks | 50-65 | {'age': 56, 'bachelors_field': 'stem_related',... | 3 | brief | MemoryMaster Textbook Companion | 3 stars - Works okay but not great. My grandso... |
| 1 | Electronics | Smartphones | 35-50 | {'age': 27, 'bachelors_field': 'stem', 'birth_... | 4 | brief | SmartLux Pro | I've been using the SmartLux Pro for two weeks... |
| 2 | Books | Fiction | 65+ | {'age': 52, 'bachelors_field': 'no_degree', 'b... | 1 | detailed | Golden Hour Tales | I’m 52 and live in New Cassandra, Alaska, so I... |
| 3 | Books | Textbooks | 50-65 | {'age': 25, 'bachelors_field': 'stem_related',... | 1 | brief | Timeless Tomes Tutor | I bought Timeless Tomes Tutor with great hope,... |
| 4 | Books | Textbooks | 35-50 | {'age': 24, 'bachelors_field': 'stem_related',... | 4 | brief | Groundbreaking Textbook Framework | Brief review: The Groundbreaking Textbook Fram... |
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 10 │ 8 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🎲 Sampler Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ sampler type ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ string │ 4 (40.0%) │ category │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ product_subcategory │ string │ 7 (70.0%) │ subcategory │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ target_age_range │ string │ 5 (50.0%) │ category │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ customer │ dict │ 10 (100.0%) │ person_from_faker │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ number_of_stars │ int │ 4 (40.0%) │ uniform │ ├────────────────────────────────┼─────────────────┼─────────────────────────────────┼────────────────────────────┤ │ review_style │ string │ 3 (30.0%) │ category │ └────────────────────────────────┴─────────────────┴─────────────────────────────────┴────────────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_name │ string │ 10 (100.0%) │ 73.0 +/- 0.8 │ 5.0 +/- 1.4 │ ├───────────────────────┼───────────────┼────────────────────────────┼───────────────────┼────────────────────────┤ │ customer_review │ string │ 10 (100.0%) │ 69.0 +/- 1.7 │ 54.0 +/- 66.5 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ ╭────────────────────────────────────────────────── Table Notes ──────────────────────────────────────────────────╮ │ │ │ 1. All token statistics are based on a sample of max(1000, len(dataset)) records. │ │ 2. Tokens are calculated using tiktoken's cl100k_base tokenizer. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⏭️ Next Steps
Now that you've seen the basics of Data Designer, check out the following notebooks to learn more about: