Structured Outputs, Jinja Expressions, and Conditional Generation
🎨 Data Designer Tutorial: Structured Outputs, Jinja Expressions, and Conditional Generation
📚 What you'll learn
In this notebook, we will continue our exploration of Data Designer, demonstrating more advanced data generation using structured outputs, Jinja expressions, and conditional generation with skip.when.
If this is your first time using Data Designer, we recommend starting with the first notebook in this tutorial series.
📦 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 that is used to interface with the library. -
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.
🧑🎨 Designing our data
-
We will again create a product review dataset, but this time we will use structured outputs and Jinja expressions.
-
Structured outputs let you specify the exact schema of the data you want to generate.
-
Data Designer supports schemas specified using either json schema or Pydantic data models (recommended).
We'll define our structured outputs using Pydantic data models
💡 Why Pydantic?
Pydantic models provide better IDE support and type validation.
They are more Pythonic than raw JSON schemas.
They integrate seamlessly with Data Designer's structured output system.
Next, let's design our product review dataset using a few more tricks compared to the previous notebook.
[00:30:10] [INFO] ✅ Validation passed
Next, we will use more advanced Jinja expressions to create new columns.
Jinja expressions let you:
-
Access nested attributes:
{{ customer.first_name }} -
Combine values:
{{ customer.first_name }} {{ customer.last_name }} -
Use conditional logic:
{% if condition %}...{% endif %}
🔎 Identified 1 validation issue in your Data Designer column definitions ──────────────────────────────────────────────── Column: product ──────────────────────────────────────────────── ⚠️ WARNING | PARQUET_STORAGE Native Parquet storage at $['price'] combines schema branches whose native storage depends on generated values. Add 'x-data-designer-storage': 'json' to this field or an enclosing schema node, or set storage_encoding='json' on the column. This is a schema risk, not a prediction that every generated batch will fail. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🚦 Conditional generation with skip.when
So far, every column is generated for every row. But sometimes an expensive LLM column only makes sense for a subset of rows — for example, a detailed complaint analysis is only useful when the review is negative.
Data Designer lets you skip column generation on a per-row basis using SkipConfig.
Skipped rows receive None by default, but you can provide a sentinel value with
skip=dd.SkipConfig(when="...", value="N/A") to write a specific value instead.
There are three patterns to know:
| Pattern | How | Effect |
|---|---|---|
| Expression gate | skip=dd.SkipConfig(when="...") |
Skip this column when the Jinja2 expression is truthy |
| Skip propagation (default) | Downstream column depends on a skipped column | Automatically skipped too (propagate_skip=True by default) |
| Propagation opt-out | propagate_skip=False on the downstream column |
Always generates, even if an upstream was skipped |
Pattern 1 — Expression gate. Only generate a detailed complaint analysis when the customer gave a low rating (1 or 2 stars).
Rows where the rating is 3 or higher will get None for this column.
DataDesignerConfigBuilder( sampler_columns: [ "customer", "product_category", "product_subcategory", "target_age_range", "review_style" ] llm_text_columns: ['complaint_analysis'] llm_structured_columns: ['product', 'customer_review'] expression_columns: ['customer_name', 'customer_age'] )
Pattern 2 — Skip propagation. action_items depends on complaint_analysis.
When complaint_analysis is skipped, action_items auto-skips too because
propagate_skip defaults to True.
DataDesignerConfigBuilder( sampler_columns: [ "customer", "product_category", "product_subcategory", "target_age_range", "review_style" ] llm_text_columns: ['complaint_analysis', 'action_items'] llm_structured_columns: ['product', 'customer_review'] expression_columns: ['customer_name', 'customer_age'] )
Pattern 3 — Propagation opt-out. review_summary also depends on complaint_analysis,
but sets propagate_skip=False so it always generates. The prompt uses a Jinja conditional
to handle the case where complaint_analysis is None.
🔎 Identified 1 validation issue in your Data Designer column definitions ──────────────────────────────────────────────── Column: product ──────────────────────────────────────────────── ⚠️ WARNING | PARQUET_STORAGE Native Parquet storage at $['price'] combines schema branches whose native storage depends on generated values. Add 'x-data-designer-storage': 'json' to this field or an enclosing schema node, or set storage_encoding='json' on the column. This is a schema risk, not a prediction that every generated batch will fail. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🔁 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.
[00:30:10] [INFO] 🧐 Preview generation in progress
[00:30:10] [INFO] |-- 🔒 Jinja rendering engine: secure
🔎 Identified 1 validation issue in your Data Designer column definitions ──────────────────────────────────────────────── Column: product ──────────────────────────────────────────────── ⚠️ WARNING | PARQUET_STORAGE Native Parquet storage at $['price'] combines schema branches whose native storage depends on generated values. Add 'x-data-designer-storage': 'json' to this field or an enclosing schema node, or set storage_encoding='json' on the column. This is a schema risk, not a prediction that every generated batch will fail. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[00:30:10] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[00:30:10] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[00:30:10] [INFO] ⚡ Using async task-queue preview
[00:30:10] [INFO] 🗂️ llm-structured model config for column 'product'
[00:30:10] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:10] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:10] [INFO] |-- model provider: 'nvidia'
[00:30:10] [INFO] |-- inference parameters:
[00:30:10] [INFO] | |-- generation_type=chat-completion
[00:30:10] [INFO] | |-- max_parallel_requests=4
[00:30:10] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:10] [INFO] | |-- temperature=1.00
[00:30:10] [INFO] | |-- top_p=0.95
[00:30:10] [INFO] | |-- max_tokens=2048
[00:30:10] [INFO] 🗂️ llm-structured model config for column 'customer_review'
[00:30:10] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:10] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:10] [INFO] |-- model provider: 'nvidia'
[00:30:10] [INFO] |-- inference parameters:
[00:30:10] [INFO] | |-- generation_type=chat-completion
[00:30:10] [INFO] | |-- max_parallel_requests=4
[00:30:10] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:10] [INFO] | |-- temperature=1.00
[00:30:10] [INFO] | |-- top_p=0.95
[00:30:10] [INFO] | |-- max_tokens=2048
[00:30:10] [INFO] 📝 llm-text model config for column 'complaint_analysis'
[00:30:10] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:10] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:10] [INFO] |-- model provider: 'nvidia'
[00:30:10] [INFO] |-- inference parameters:
[00:30:10] [INFO] | |-- generation_type=chat-completion
[00:30:10] [INFO] | |-- max_parallel_requests=4
[00:30:10] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:10] [INFO] | |-- temperature=1.00
[00:30:10] [INFO] | |-- top_p=0.95
[00:30:10] [INFO] | |-- max_tokens=2048
[00:30:10] [INFO] 📝 llm-text model config for column 'review_summary'
[00:30:10] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:10] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:10] [INFO] |-- model provider: 'nvidia'
[00:30:10] [INFO] |-- inference parameters:
[00:30:10] [INFO] | |-- generation_type=chat-completion
[00:30:10] [INFO] | |-- max_parallel_requests=4
[00:30:10] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:10] [INFO] | |-- temperature=1.00
[00:30:10] [INFO] | |-- top_p=0.95
[00:30:10] [INFO] | |-- max_tokens=2048
[00:30:10] [INFO] 📝 llm-text model config for column 'action_items'
[00:30:10] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:10] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:10] [INFO] |-- model provider: 'nvidia'
[00:30:10] [INFO] |-- inference parameters:
[00:30:10] [INFO] | |-- generation_type=chat-completion
[00:30:10] [INFO] | |-- max_parallel_requests=4
[00:30:10] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:10] [INFO] | |-- temperature=1.00
[00:30:10] [INFO] | |-- top_p=0.95
[00:30:10] [INFO] | |-- max_tokens=2048
[00:30:10] [INFO] ⚡️ Async generation: 5 column(s) (column 'product', column 'customer_review', column 'complaint_analysis', column 'review_summary', column 'action_items'), 10 tasks across 1 row group(s)
[00:30:10] [INFO] 🚀 (1/1) Dispatching with 2 records
[00:30:10] [INFO] 🎲 (1/1) Preparing samplers to generate 2 records across 5 columns
[00:30:10] [INFO] 🧩 (1/1) Generating column `customer_age` from expression
[00:30:10] [INFO] 🧩 (1/1) Generating column `customer_name` from expression
[00:30:10] [WARNING] Observed retryable model-task error: kind=rate_limit, http_status=429; the row task will be deferred.
[00:30:10] [INFO] 🔄 (1/1) Salvaging 2 deferred task(s)
[00:30:14] [INFO] 🔄 (1/1) Preserving 2 retryable task(s); records will keep retrying.
[00:30:34] [INFO] 📊 Progress [24.1s]:
[00:30:34] [INFO] |-- 😐 column 'product': 1/2 (50%) 0.0 rec/s
[00:30:34] [INFO] |-- 🌑 column 'customer_review': 0/2 (0%) 0.0 rec/s
[00:30:34] [INFO] |-- 😴 column 'complaint_analysis': 0/2 (0%) 0.0 rec/s
[00:30:34] [INFO] |-- 🌑 column 'review_summary': 0/2 (0%) 0.0 rec/s
[00:30:34] [INFO] |-- 😴 column 'action_items': 0/2 (0%) 0.0 rec/s
[00:30:44] [INFO] 📊 Progress [33.7s]:
[00:30:44] [INFO] |-- 😐 column 'product': 1/2 (50%) 0.0 rec/s
[00:30:44] [INFO] |-- 🌗 column 'customer_review': 1/2 (50%) 0.0 rec/s
[00:30:44] [INFO] |-- 😴 column 'complaint_analysis': 0/2 (0%) 0.0 rec/s
[00:30:44] [INFO] |-- 🌑 column 'review_summary': 0/2 (0%) 0.0 rec/s
[00:30:44] [INFO] |-- 😴 column 'action_items': 0/2 (0%) 0.0 rec/s
[00:30:44] [WARNING] Provider showing degraded performance: 85% of last 20 task outcomes were retryable errors (rate_limit=17, success=3); cumulative outcomes: rate_limit=17, success=3; deferred_tasks=1. Run may take longer than expected; salvage will retry these.
[00:30:44] [INFO] 🔄 (1/1) Preserving 1 retryable task(s); records will keep retrying.
[00:30:48] [INFO] 📊 Progress [37.5s]:
[00:30:48] [INFO] |-- 🤩 column 'product': 2/2 (100%) 0.1 rec/s
[00:30:48] [INFO] |-- 🌕 column 'customer_review': 2/2 (100%) 0.1 rec/s
[00:30:48] [INFO] |-- 🤩 column 'complaint_analysis': 2/2 (100%) 0.1 rec/s, 2 skipped
[00:30:48] [INFO] |-- 🌕 column 'review_summary': 2/2 (100%) 0.1 rec/s
[00:30:48] [INFO] |-- 🤩 column 'action_items': 2/2 (100%) 0.1 rec/s, 2 skipped
[00:30:48] [INFO] ✅ Async generation complete [37.5s]: 6 ok, 0 failed, 4 skipped across 5 column(s)
[00:30:48] [INFO] 📊 Model usage summary:
[00:30:48] [INFO] |-- model: nvidia/nemotron-3.5-lightning-30b-a3b
[00:30:48] [INFO] |-- tokens: input=1925, output=872, reasoning=0, total=2797, tps=74
[00:30:48] [INFO] |-- requests: success=6, failed=17, total=23, rpm=36
[00:30:48] [INFO] 🙈 Dropping columns: ['customer']
[00:30:48] [INFO] 📐 Measuring dataset column statistics:
[00:30:48] [INFO] |-- 🎲 column: 'product_category'
[00:30:48] [INFO] |-- 🎲 column: 'product_subcategory'
[00:30:48] [INFO] |-- 🎲 column: 'target_age_range'
[00:30:48] [INFO] |-- 🎲 column: 'review_style'
[00:30:48] [INFO] |-- 🧩 column: 'customer_name'
[00:30:48] [INFO] |-- 🧩 column: 'customer_age'
[00:30:48] [INFO] |-- 🗂️ column: 'product'
[00:30:48] [INFO] |-- 🗂️ column: 'customer_review'
[00:30:48] [INFO] |-- 📝 column: 'complaint_analysis'
[00:30:48] [INFO] |-- 📝 column: 'action_items'
[00:30:48] [INFO] |-- 📝 column: 'review_summary'
[00:30:48] [INFO] ☀️ Preview complete!
Generated Columns ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ Books │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product_subcategory │ Classics │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ target_age_range │ 25-35 │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ review_style │ detailed │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ complaint_analysis │ None │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ action_items │ None │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ review_summary │ The Annotated Classics Collection is a beautifully crafted, insightful set that │ │ │ effectively bridges the gap between dense classic prose and modern readers, │ │ │ transforming the reading experience into a pleasurable intellectual investment. │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product │ { │ │ │ 'name': 'The Annotated Classics Collection', │ │ │ 'description': 'A curated boxset of beautifully designed editions of timeless │ │ │ literary masterpieces, featuring insightful annotations and introductions tailored │ │ │ for the modern reader. This collection bridges the gap between classic literature │ │ │ and contemporary understanding, making works like Pride and Prejudice, 1984, and The │ │ │ Great Gatsby accessible and engaging for young adults. Each volume features premium │ │ │ paper and a sleek dust-jacket, perfect for building a sophisticated home library.', │ │ │ 'price': 149.99 │ │ │ } │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_review │ { │ │ │ 'rating': 5, │ │ │ 'customer_mood': 'happy', │ │ │ 'review': 'Upon unboxing The Annotated Classics Collection, the immediate │ │ │ impression is one of superior craftsmanship. The bindings are robust, and the dust │ │ │ jackets exhibit a refined aesthetic that would grace any discerning shelf. As a │ │ │ resident of Marcusside, Alabama, I have long appreciated the classics, but often │ │ │ found the dense prose of authors like Austen and Orwell a barrier to pure enjoyment. │ │ │ This collection, however, bridges that gap most effectively. The annotations are │ │ │ insightful without being pedantic, offering just enough historical and literary │ │ │ context to illuminate the text without overwhelming the narrative flow. The │ │ │ introductions are particularly adept at connecting these 19th and 20th-century works │ │ │ to contemporary sensibilities, making them accessible and engaging for younger │ │ │ readers or those new to the genre. The paper quality is substantial, providing a │ │ │ tactile satisfaction that complements the visual appeal of the set. For the price of │ │ │ 149.99, this is not merely a purchase of books, but an investment in a sophisticated │ │ │ home library. It successfully transforms the reading experience from a chore into a │ │ │ pleasurable intellectual endeavor. I wholeheartedly recommend this set to anyone │ │ │ looking to deepen their appreciation for timeless literature.' │ │ │ } │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_name │ Carl Mullen │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_age │ 98 │ └─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘
| product_category | product_subcategory | target_age_range | review_style | customer_age | customer_name | product | customer_review | complaint_analysis | action_items | review_summary | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Books | Classics | 25-35 | detailed | 98 | Carl Mullen | {'name': 'The Annotated Classics Collection', ... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | The Annotated Classics Collection is a beautif... |
| 1 | Electronics | Smartphones | 18-25 | rambling | 112 | Gabriella Banks | {'name': 'UltraSlim Magnetic Power Bank', 'des... | {'rating': 5, 'customer_mood': 'excited', 'rev... | None | None | The UltraSlim Magnetic Power Bank is a highly ... |
📊 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 │ 11 │ 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 │ ├──────────────────────────────────┼──────────────────┼────────────────────────────────────┼──────────────────────┤ │ review_style │ string │ 2 (100.0%) │ category │ └──────────────────────────────────┴──────────────────┴────────────────────────────────────┴──────────────────────┘ 📝 LLM-Text Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩ │ complaint_analysis │ None │ 0 (0.0%) │ 290.0 +/- 5.0 │ 1.0 +/- 0.0 │ ├──────────────────────────┼──────────────┼────────────────────────────┼───────────────────┼──────────────────────┤ │ action_items │ None │ 0 (0.0%) │ 22.0 +/- 0.0 │ 1.0 +/- 0.0 │ ├──────────────────────────┼──────────────┼────────────────────────────┼───────────────────┼──────────────────────┤ │ review_summary │ string │ 2 (100.0%) │ 263.0 +/- 4.0 │ 40.5 +/- 6.4 │ └──────────────────────────┴──────────────┴────────────────────────────┴───────────────────┴──────────────────────┘ 🗂️ LLM-Structured Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product │ dict │ 2 (100.0%) │ 264.5 +/- 0.5 │ 96.0 +/- 12.7 │ ├───────────────────────┼───────────────┼────────────────────────────┼───────────────────┼────────────────────────┤ │ customer_review │ dict │ 2 (100.0%) │ 352.0 +/- 9.0 │ 254.5 +/- 6.4 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ 🧩 Expression Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ customer_name │ string │ 2 (100.0%) │ ├───────────────────────────────────┼──────────────────────────┼──────────────────────────────────────────────────┤ │ customer_age │ string │ 2 (100.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.
[00:30:48] [INFO] OpenTelemetry metrics available at http://127.0.0.1:9464/metrics
[00:30:48] [INFO] 🎨 Creating Data Designer dataset
[00:30:48] [INFO] |-- 🔒 Jinja rendering engine: secure
🔎 Identified 1 validation issue in your Data Designer column definitions ──────────────────────────────────────────────── Column: product ──────────────────────────────────────────────── ⚠️ WARNING | PARQUET_STORAGE Native Parquet storage at $['price'] combines schema branches whose native storage depends on generated values. Add 'x-data-designer-storage': 'json' to this field or an enclosing schema node, or set storage_encoding='json' on the column. This is a schema risk, not a prediction that every generated batch will fail. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[00:30:48] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[00:30:48] [INFO] Skipping model health checks because DATA_DESIGNER_SKIP_MODEL_HEALTH_CHECKS=1
[00:30:48] [INFO] ⚡ Using async task-queue builder
[00:30:48] [INFO] 🗂️ llm-structured model config for column 'product'
[00:30:48] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:48] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:48] [INFO] |-- model provider: 'nvidia'
[00:30:48] [INFO] |-- inference parameters:
[00:30:48] [INFO] | |-- generation_type=chat-completion
[00:30:48] [INFO] | |-- max_parallel_requests=4
[00:30:48] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:48] [INFO] | |-- temperature=1.00
[00:30:48] [INFO] | |-- top_p=0.95
[00:30:48] [INFO] | |-- max_tokens=2048
[00:30:48] [INFO] 🗂️ llm-structured model config for column 'customer_review'
[00:30:48] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:48] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:48] [INFO] |-- model provider: 'nvidia'
[00:30:48] [INFO] |-- inference parameters:
[00:30:48] [INFO] | |-- generation_type=chat-completion
[00:30:48] [INFO] | |-- max_parallel_requests=4
[00:30:48] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:48] [INFO] | |-- temperature=1.00
[00:30:48] [INFO] | |-- top_p=0.95
[00:30:48] [INFO] | |-- max_tokens=2048
[00:30:48] [INFO] 📝 llm-text model config for column 'complaint_analysis'
[00:30:48] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:48] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:48] [INFO] |-- model provider: 'nvidia'
[00:30:48] [INFO] |-- inference parameters:
[00:30:48] [INFO] | |-- generation_type=chat-completion
[00:30:48] [INFO] | |-- max_parallel_requests=4
[00:30:48] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:48] [INFO] | |-- temperature=1.00
[00:30:48] [INFO] | |-- top_p=0.95
[00:30:48] [INFO] | |-- max_tokens=2048
[00:30:48] [INFO] 📝 llm-text model config for column 'review_summary'
[00:30:48] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:48] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:48] [INFO] |-- model provider: 'nvidia'
[00:30:48] [INFO] |-- inference parameters:
[00:30:48] [INFO] | |-- generation_type=chat-completion
[00:30:48] [INFO] | |-- max_parallel_requests=4
[00:30:48] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:48] [INFO] | |-- temperature=1.00
[00:30:48] [INFO] | |-- top_p=0.95
[00:30:48] [INFO] | |-- max_tokens=2048
[00:30:48] [INFO] 📝 llm-text model config for column 'action_items'
[00:30:48] [INFO] |-- model: 'nvidia/nemotron-3.5-lightning-30b-a3b'
[00:30:48] [INFO] |-- model alias: 'nemotron-lightning'
[00:30:48] [INFO] |-- model provider: 'nvidia'
[00:30:48] [INFO] |-- inference parameters:
[00:30:48] [INFO] | |-- generation_type=chat-completion
[00:30:48] [INFO] | |-- max_parallel_requests=4
[00:30:48] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[00:30:48] [INFO] | |-- temperature=1.00
[00:30:48] [INFO] | |-- top_p=0.95
[00:30:48] [INFO] | |-- max_tokens=2048
[00:30:48] [INFO] ⚡️ Async generation: 5 column(s) (column 'product', column 'customer_review', column 'complaint_analysis', column 'review_summary', column 'action_items'), 50 tasks across 1 row group(s)
[00:30:48] [INFO] 🚀 (1/1) Dispatching with 10 records
[00:30:48] [INFO] 🎲 (1/1) Preparing samplers to generate 10 records across 5 columns
[00:30:48] [INFO] 🧩 (1/1) Generating column `customer_age` from expression
[00:30:48] [INFO] 🧩 (1/1) Generating column `customer_name` from expression
[00:30:53] [INFO] 📊 Progress [5.3s]:
[00:30:53] [INFO] |-- 😺 column 'product': 4/10 (40%) 0.8 rec/s
[00:30:53] [INFO] |-- 🌧️ column 'customer_review': 0/10 (0%) 0.0 rec/s
[00:30:53] [INFO] |-- 🚶 column 'complaint_analysis': 0/10 (0%) 0.0 rec/s
[00:30:53] [INFO] |-- 🚶 column 'review_summary': 0/10 (0%) 0.0 rec/s
[00:30:53] [INFO] |-- 🌧️ column 'action_items': 0/10 (0%) 0.0 rec/s
[00:31:00] [INFO] 📊 Progress [11.9s]:
[00:31:00] [INFO] |-- 😸 column 'product': 6/10 (60%) 0.5 rec/s
[00:31:00] [INFO] |-- 🌦️ column 'customer_review': 3/10 (30%) 0.3 rec/s
[00:31:00] [INFO] |-- 🚶 column 'complaint_analysis': 1/10 (10%) 0.1 rec/s, 1 skipped
[00:31:00] [INFO] |-- 🚶 column 'review_summary': 0/10 (0%) 0.0 rec/s
[00:31:00] [INFO] |-- 🌧️ column 'action_items': 1/10 (10%) 0.1 rec/s, 1 skipped
[00:31:00] [WARNING] Observed retryable model-task error: kind=rate_limit, http_status=429; the row task will be deferred.
[00:31:19] [INFO] 🔄 (1/1) Salvaging 10 deferred task(s)
[00:31:21] [WARNING] Provider showing degraded performance: 55% of last 20 task outcomes were retryable errors (rate_limit=11, success=9); cumulative outcomes: rate_limit=11, success=9; deferred_tasks=1. Run may take longer than expected; salvage will retry these.
[00:31:41] [INFO] 📊 Progress [53.2s]:
[00:31:41] [INFO] |-- 😸 column 'product': 7/10 (70%) 0.1 rec/s
[00:31:41] [INFO] |-- 🌦️ column 'customer_review': 3/10 (30%) 0.1 rec/s
[00:31:41] [INFO] |-- 🐴 column 'complaint_analysis': 3/10 (30%) 0.1 rec/s, 3 skipped
[00:31:41] [INFO] |-- 🚶 column 'review_summary': 0/10 (0%) 0.0 rec/s
[00:31:41] [INFO] |-- 🌦️ column 'action_items': 3/10 (30%) 0.1 rec/s, 3 skipped
[00:31:46] [INFO] 📊 Progress [58.3s]:
[00:31:46] [INFO] |-- 😸 column 'product': 7/10 (70%) 0.1 rec/s
[00:31:46] [INFO] |-- ⛅ column 'customer_review': 5/10 (50%) 0.1 rec/s
[00:31:46] [INFO] |-- 🐴 column 'complaint_analysis': 4/10 (40%) 0.1 rec/s, 4 skipped
[00:31:46] [INFO] |-- 🚶 column 'review_summary': 2/10 (20%) 0.0 rec/s
[00:31:46] [INFO] |-- 🌦️ column 'action_items': 4/10 (40%) 0.1 rec/s, 4 skipped
[00:31:54] [INFO] 📊 Progress [66.4s]:
[00:31:54] [INFO] |-- 🦁 column 'product': 10/10 (100%) 0.2 rec/s
[00:31:54] [INFO] |-- 🌤️ column 'customer_review': 8/10 (80%) 0.1 rec/s
[00:31:54] [INFO] |-- 🚗 column 'complaint_analysis': 7/10 (70%) 0.1 rec/s, 7 skipped
[00:31:54] [INFO] |-- 🚗 column 'review_summary': 5/10 (50%) 0.1 rec/s
[00:31:54] [INFO] |-- ⛅ column 'action_items': 7/10 (70%) 0.1 rec/s, 7 skipped
[00:32:00] [INFO] 🔄 (1/1) Preserving 3 retryable task(s); records will keep retrying.
[00:32:21] [WARNING] Provider showing degraded performance: 65% of last 20 task outcomes were retryable errors (rate_limit=13, success=7); cumulative outcomes: rate_limit=32, success=26; deferred_tasks=1. Run may take longer than expected; salvage will retry these.
[00:32:44] [INFO] 📊 Progress [115.8s]:
[00:32:44] [INFO] |-- 🦁 column 'product': 10/10 (100%) 0.1 rec/s
[00:32:44] [INFO] |-- ☀️ column 'customer_review': 10/10 (100%) 0.1 rec/s
[00:32:44] [INFO] |-- ✈️ column 'complaint_analysis': 9/10 (90%) 0.1 rec/s, 9 skipped
[00:32:44] [INFO] |-- 🚗 column 'review_summary': 7/10 (70%) 0.1 rec/s
[00:32:44] [INFO] |-- 🌤️ column 'action_items': 9/10 (90%) 0.1 rec/s, 9 skipped
[00:32:45] [INFO] 🙈 Dropping columns: ['customer']
[00:32:45] [INFO] 📊 Progress [117.3s]:
[00:32:45] [INFO] |-- 🦁 column 'product': 10/10 (100%) 0.1 rec/s
[00:32:45] [INFO] |-- ☀️ column 'customer_review': 10/10 (100%) 0.1 rec/s
[00:32:45] [INFO] |-- 🚀 column 'complaint_analysis': 10/10 (100%) 0.1 rec/s, 10 skipped
[00:32:45] [INFO] |-- 🚀 column 'review_summary': 10/10 (100%) 0.1 rec/s
[00:32:45] [INFO] |-- ☀️ column 'action_items': 10/10 (100%) 0.1 rec/s, 10 skipped
[00:32:45] [INFO] ✅ Async generation complete [117.3s]: 30 ok, 0 failed, 20 skipped across 5 column(s)
[00:32:45] [INFO] 📊 Model usage summary:
[00:32:45] [INFO] |-- model: nvidia/nemotron-3.5-lightning-30b-a3b
[00:32:45] [INFO] |-- tokens: input=9431, output=4233, reasoning=0, total=13664, tps=116
[00:32:45] [INFO] |-- requests: success=30, failed=40, total=70, rpm=35
[00:32:45] [INFO] 📐 Measuring dataset column statistics:
[00:32:45] [INFO] |-- 🎲 column: 'product_category'
[00:32:45] [INFO] |-- 🎲 column: 'product_subcategory'
[00:32:45] [INFO] |-- 🎲 column: 'target_age_range'
[00:32:45] [INFO] |-- 🎲 column: 'review_style'
[00:32:45] [INFO] |-- 🧩 column: 'customer_name'
[00:32:45] [INFO] |-- 🧩 column: 'customer_age'
[00:32:45] [INFO] |-- 🗂️ column: 'product'
[00:32:45] [INFO] |-- 🗂️ column: 'customer_review'
[00:32:45] [INFO] |-- 📝 column: 'complaint_analysis'
[00:32:45] [INFO] |-- 📝 column: 'action_items'
[00:32:45] [INFO] |-- 📝 column: 'review_summary'
| product_category | product_subcategory | target_age_range | review_style | customer_age | customer_name | product | customer_review | complaint_analysis | action_items | review_summary | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Books | Textbooks | 65+ | brief | 54 | Jesse Rodriguez | {'name': 'The Golden Years Textbook: Wisdom & ... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | The Golden Years Textbook: Wisdom & Wellness C... |
| 1 | Clothing | Winter Coats | 18-25 | rambling | 23 | Ann Petty | {'name': 'Arctic Pulse Youth Winter Coat', 'de... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | A lightweight, water-resistant winter coat tha... |
| 2 | Home & Kitchen | Decor | 18-25 | rambling | 89 | Kyle Miller | {'name': 'Enchanted Floral LED Night Light', '... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | This tiny preserved floral night light provide... |
| 3 | Electronics | Cameras | 25-35 | brief | 26 | Vanessa Greer | {'name': 'Compact Mirrorless Camera Starter Ki... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | Highly recommended, the Compact Mirrorless Cam... |
| 4 | Clothing | Activewear | 65+ | brief | 86 | David Thomas | {'name': 'Senior-Fit Ultra-Stretch Yoga Pant',... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | The Senior-Fit Ultra-Stretch Yoga Pant offers ... |
──────────────────────────────────────── 🎨 Data Designer Dataset Profile ───────────────────────────────────────── Dataset Overview ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ number of records ┃ number of columns ┃ percent complete records ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ 10 │ 11 │ 100.0% │ └─────────────────────────────────┴─────────────────────────────────┴─────────────────────────────────────────────┘ 🎲 Sampler Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ sampler type ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ string │ 5 (50.0%) │ category │ ├──────────────────────────────────┼──────────────────┼────────────────────────────────────┼──────────────────────┤ │ product_subcategory │ string │ 8 (80.0%) │ subcategory │ ├──────────────────────────────────┼──────────────────┼────────────────────────────────────┼──────────────────────┤ │ target_age_range │ string │ 5 (50.0%) │ category │ ├──────────────────────────────────┼──────────────────┼────────────────────────────────────┼──────────────────────┤ │ 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 ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩ │ complaint_analysis │ None │ 0 (0.0%) │ 224.0 +/- 178.7 │ 1.0 +/- 0.0 │ ├─────────────────────────┼──────────────┼───────────────────────────┼─────────────────────┼──────────────────────┤ │ action_items │ None │ 0 (0.0%) │ 22.0 +/- 0.0 │ 1.0 +/- 0.0 │ ├─────────────────────────┼──────────────┼───────────────────────────┼─────────────────────┼──────────────────────┤ │ review_summary │ string │ 10 (100.0%) │ 195.5 +/- 178.6 │ 46.5 +/- 10.6 │ └─────────────────────────┴──────────────┴───────────────────────────┴─────────────────────┴──────────────────────┘ 🗂️ LLM-Structured Columns ┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ ┃ ┃ ┃ prompt tokens ┃ completion tokens ┃ ┃ column name ┃ data type ┃ number unique values ┃ per record ┃ per record ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product │ dict │ 10 (100.0%) │ 265.0 +/- 0.9 │ 97.0 +/- 7.6 │ ├───────────────────────┼───────────────┼────────────────────────────┼───────────────────┼────────────────────────┤ │ customer_review │ dict │ 10 (100.0%) │ 350.5 +/- 7.6 │ 186.5 +/- 187.8 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ 🧩 Expression Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ customer_name │ string │ 10 (100.0%) │ ├───────────────────────────────────┼──────────────────────────┼──────────────────────────────────────────────────┤ │ customer_age │ string │ 10 (100.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. │ │ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
⏭️ Next Steps
Check out the following notebook to learn more about: