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.
[20:10:58] [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 %}
[20:10:58] [INFO] ✅ Validation passed
🚦 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.
[20:10: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.
[20:10:58] [INFO] 🔭 Preview generation in progress
[20:10:58] [INFO] |-- 🔒 Jinja rendering engine: secure
[20:10:58] [INFO] ✅ Validation passed
[20:10:58] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[20:10:58] [INFO] 🩺 Running health checks for models...
[20:10:58] [INFO] |-- 👀 Checking 'nvidia/nemotron-3-nano-30b-a3b' in provider named 'nvidia' for model alias 'nemotron-nano-v3'...
[20:10:59] [INFO] |-- ✅ Passed!
[20:10:59] [INFO] ⚡ Using async task-queue preview
[20:10:59] [INFO] 🗂️ llm-structured model config for column 'product'
[20:10:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:10:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:10:59] [INFO] |-- model provider: 'nvidia'
[20:10:59] [INFO] |-- inference parameters:
[20:10:59] [INFO] | |-- generation_type=chat-completion
[20:10:59] [INFO] | |-- max_parallel_requests=4
[20:10:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:10:59] [INFO] | |-- temperature=1.00
[20:10:59] [INFO] | |-- top_p=1.00
[20:10:59] [INFO] | |-- max_tokens=2048
[20:10:59] [INFO] 🗂️ llm-structured model config for column 'customer_review'
[20:10:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:10:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:10:59] [INFO] |-- model provider: 'nvidia'
[20:10:59] [INFO] |-- inference parameters:
[20:10:59] [INFO] | |-- generation_type=chat-completion
[20:10:59] [INFO] | |-- max_parallel_requests=4
[20:10:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:10:59] [INFO] | |-- temperature=1.00
[20:10:59] [INFO] | |-- top_p=1.00
[20:10:59] [INFO] | |-- max_tokens=2048
[20:10:59] [INFO] 📝 llm-text model config for column 'complaint_analysis'
[20:10:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:10:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:10:59] [INFO] |-- model provider: 'nvidia'
[20:10:59] [INFO] |-- inference parameters:
[20:10:59] [INFO] | |-- generation_type=chat-completion
[20:10:59] [INFO] | |-- max_parallel_requests=4
[20:10:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:10:59] [INFO] | |-- temperature=1.00
[20:10:59] [INFO] | |-- top_p=1.00
[20:10:59] [INFO] | |-- max_tokens=2048
[20:10:59] [INFO] 📝 llm-text model config for column 'review_summary'
[20:10:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:10:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:10:59] [INFO] |-- model provider: 'nvidia'
[20:10:59] [INFO] |-- inference parameters:
[20:10:59] [INFO] | |-- generation_type=chat-completion
[20:10:59] [INFO] | |-- max_parallel_requests=4
[20:10:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:10:59] [INFO] | |-- temperature=1.00
[20:10:59] [INFO] | |-- top_p=1.00
[20:10:59] [INFO] | |-- max_tokens=2048
[20:10:59] [INFO] 📝 llm-text model config for column 'action_items'
[20:10:59] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:10:59] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:10:59] [INFO] |-- model provider: 'nvidia'
[20:10:59] [INFO] |-- inference parameters:
[20:10:59] [INFO] | |-- generation_type=chat-completion
[20:10:59] [INFO] | |-- max_parallel_requests=4
[20:10:59] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:10:59] [INFO] | |-- temperature=1.00
[20:10:59] [INFO] | |-- top_p=1.00
[20:10:59] [INFO] | |-- max_tokens=2048
[20:10:59] [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)
[20:10:59] [INFO] 🚀 (1/1) Dispatching with 2 records
[20:10:59] [INFO] 🎲 (1/1) Preparing samplers to generate 2 records across 5 columns
[20:10:59] [INFO] 🧩 (1/1) Generating column `customer_age` from expression
[20:10:59] [INFO] 🧩 (1/1) Generating column `customer_name` from expression
[20:11:03] [INFO] 🔄 (1/1) Salvaging 1 deferred task(s)
[20:11:06] [INFO] 📊 Progress [7.0s]:
[20:11:06] [INFO] |-- 🚀 column 'product': 2/2 (100%) 0.3 rec/s
[20:11:06] [INFO] |-- 🚀 column 'customer_review': 2/2 (100%) 0.3 rec/s
[20:11:06] [INFO] |-- 🤩 column 'complaint_analysis': 2/2 (100%) 0.3 rec/s, 2 skipped
[20:11:06] [INFO] |-- 🦁 column 'review_summary': 2/2 (100%) 0.3 rec/s
[20:11:06] [INFO] |-- 🦁 column 'action_items': 2/2 (100%) 0.3 rec/s, 2 skipped
[20:11:06] [INFO] ✅ Async generation complete [7.0s]: 6 ok, 0 failed, 4 skipped across 5 column(s)
[20:11:06] [INFO] 📊 Model usage summary:
[20:11:06] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[20:11:06] [INFO] |-- tokens: input=2090, output=967, total=3057, tps=436
[20:11:06] [INFO] |-- requests: success=7, failed=1, total=8, rpm=68
[20:11:06] [INFO] 🙈 Dropping columns: ['customer']
[20:11:06] [INFO] 📐 Measuring dataset column statistics:
[20:11:06] [INFO] |-- 🎲 column: 'product_category'
[20:11:06] [INFO] |-- 🎲 column: 'product_subcategory'
[20:11:06] [INFO] |-- 🎲 column: 'target_age_range'
[20:11:06] [INFO] |-- 🎲 column: 'review_style'
[20:11:06] [INFO] |-- 🧩 column: 'customer_name'
[20:11:06] [INFO] |-- 🧩 column: 'customer_age'
[20:11:06] [INFO] |-- 🗂️ column: 'product'
[20:11:06] [INFO] |-- 🗂️ column: 'customer_review'
[20:11:06] [INFO] |-- 📝 column: 'complaint_analysis'
[20:11:06] [INFO] |-- 📝 column: 'action_items'
[20:11:06] [INFO] |-- 📝 column: 'review_summary'
[20:11:06] [INFO] ✅ Preview complete!
Generated Columns ┏━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Name ┃ Value ┃ ┡━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ product_category │ Books │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product_subcategory │ Classics │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ target_age_range │ 35-50 │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ review_style │ detailed │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ complaint_analysis │ None │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ action_items │ None │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ review_summary │ The leather‑bound, acid‑free "Timeless Classics: A Curated Collection of 50 │ │ │ Essential Works" delivers a tactile sanctuary of impeccable craftsmanship, premium │ │ │ materials, and thoughtful editorial touches, making it a luxurious, endurance‑built │ │ │ anthology that elevates reading both aesthetically and intellectually. │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ product │ { │ │ │ 'name': 'Timeless Classics: A Curated Collection of 50 Essential Works', │ │ │ 'description': 'A beautifully designed, leather-bound anthology featuring 50 │ │ │ seminal works of world literature—a perfect blend of intellectual depth and timeless │ │ │ storytelling for the discerning reader aged 35‑50.', │ │ │ 'price': 157.5 │ │ │ } │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_review │ { │ │ │ 'rating': 5, │ │ │ 'customer_mood': 'happy', │ │ │ 'review': 'The leather-bound anthology "Timeless Classics: A Curated Collection │ │ │ of 50 Essential Works" stands as a paragon of literary craftsmanship. Every page is │ │ │ exquisitely crafted from premium, full-grain leather, lending the volume a tactile │ │ │ richness that is both comforting and dignified. The typography is set in a classic │ │ │ serif face with generous line spacing, facilitating effortless reading even during │ │ │ prolonged sessions. The collection itself is judiciously curated, encompassing │ │ │ masterpieces from Shakespeare, Tolstoy, Woolf, and Dante, each presented in its │ │ │ unabridged glory. Footnotes and introductory essays are thoughtfully integrated, │ │ │ offering contextual depth without disrupting narrative flow. The binding is robust │ │ │ yet supple, resilient enough to withstand repeated use, while the gilt-edged pages │ │ │ add a subtle flourish that reinforces the anthology\'s gravitas. From a │ │ │ discriminating reader\'s perspective, the quality of paper—acid-free, ivory, and │ │ │ slightly textured—elevates the experience further, encouraging a deliberate pace and │ │ │ deeper engagement with the text. In essence, this volume transcends the role of a │ │ │ mere book; it is a tactile sanctuary that honors the timeless narratives it houses.' │ │ │ } │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_name │ James Martinez │ ├─────────────────────┼──────────────────────────────────────────────────────────────────────────────────────┤ │ customer_age │ 54 │ └─────────────────────┴──────────────────────────────────────────────────────────────────────────────────────┘
| 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 | 35-50 | detailed | 54 | James Martinez | {'name': 'Timeless Classics: A Curated Collect... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | The leather‑bound, acid‑free "Timeless Classic... |
| 1 | Clothing | Activewear | 50-65 | rambling | 50 | Kristine Robbins | {'name': 'ArthroFlex Recovery Short', 'descrip... | {'rating': 4, 'customer_mood': 'happy', 'revie... | None | None | A 4‑star review by Kristine Robbins praises th... |
📊 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%) │ 258.0 +/- 36.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%) │ 231.0 +/- 37.0 │ 70.5 +/- 16.3 │ └─────────────────────────┴──────────────┴────────────────────────────┴────────────────────┴──────────────────────┘ 🗂️ 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 │ 72.0 +/- 9.9 │ ├───────────────────────┼───────────────┼────────────────────────────┼───────────────────┼────────────────────────┤ │ customer_review │ dict │ 2 (100.0%) │ 326.5 +/- 7.5 │ 219.0 +/- 48.1 │ └───────────────────────┴───────────────┴────────────────────────────┴───────────────────┴────────────────────────┘ 🧩 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.
[20:11:06] [INFO] OpenTelemetry metrics available at http://127.0.0.1:9464/metrics
[20:11:06] [INFO] 🎨 Creating Data Designer dataset
[20:11:06] [INFO] |-- 🔒 Jinja rendering engine: secure
[20:11:06] [INFO] ✅ Validation passed
[20:11:06] [INFO] ⛓️ Sorting column configs into a Directed Acyclic Graph
[20:11:06] [INFO] 🩺 Running health checks for models...
[20:11:06] [INFO] |-- 👀 Checking 'nvidia/nemotron-3-nano-30b-a3b' in provider named 'nvidia' for model alias 'nemotron-nano-v3'...
[20:11:06] [INFO] |-- ✅ Passed!
[20:11:07] [INFO] ⚡ Using async task-queue builder
[20:11:07] [INFO] 🗂️ llm-structured model config for column 'product'
[20:11:07] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:11:07] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:11:07] [INFO] |-- model provider: 'nvidia'
[20:11:07] [INFO] |-- inference parameters:
[20:11:07] [INFO] | |-- generation_type=chat-completion
[20:11:07] [INFO] | |-- max_parallel_requests=4
[20:11:07] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:11:07] [INFO] | |-- temperature=1.00
[20:11:07] [INFO] | |-- top_p=1.00
[20:11:07] [INFO] | |-- max_tokens=2048
[20:11:07] [INFO] 🗂️ llm-structured model config for column 'customer_review'
[20:11:07] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:11:07] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:11:07] [INFO] |-- model provider: 'nvidia'
[20:11:07] [INFO] |-- inference parameters:
[20:11:07] [INFO] | |-- generation_type=chat-completion
[20:11:07] [INFO] | |-- max_parallel_requests=4
[20:11:07] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:11:07] [INFO] | |-- temperature=1.00
[20:11:07] [INFO] | |-- top_p=1.00
[20:11:07] [INFO] | |-- max_tokens=2048
[20:11:07] [INFO] 📝 llm-text model config for column 'complaint_analysis'
[20:11:07] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:11:07] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:11:07] [INFO] |-- model provider: 'nvidia'
[20:11:07] [INFO] |-- inference parameters:
[20:11:07] [INFO] | |-- generation_type=chat-completion
[20:11:07] [INFO] | |-- max_parallel_requests=4
[20:11:07] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:11:07] [INFO] | |-- temperature=1.00
[20:11:07] [INFO] | |-- top_p=1.00
[20:11:07] [INFO] | |-- max_tokens=2048
[20:11:07] [INFO] 📝 llm-text model config for column 'review_summary'
[20:11:07] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:11:07] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:11:07] [INFO] |-- model provider: 'nvidia'
[20:11:07] [INFO] |-- inference parameters:
[20:11:07] [INFO] | |-- generation_type=chat-completion
[20:11:07] [INFO] | |-- max_parallel_requests=4
[20:11:07] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:11:07] [INFO] | |-- temperature=1.00
[20:11:07] [INFO] | |-- top_p=1.00
[20:11:07] [INFO] | |-- max_tokens=2048
[20:11:07] [INFO] 📝 llm-text model config for column 'action_items'
[20:11:07] [INFO] |-- model: 'nvidia/nemotron-3-nano-30b-a3b'
[20:11:07] [INFO] |-- model alias: 'nemotron-nano-v3'
[20:11:07] [INFO] |-- model provider: 'nvidia'
[20:11:07] [INFO] |-- inference parameters:
[20:11:07] [INFO] | |-- generation_type=chat-completion
[20:11:07] [INFO] | |-- max_parallel_requests=4
[20:11:07] [INFO] | |-- extra_body={'chat_template_kwargs': {'enable_thinking': False}}[20:11:07] [INFO] | |-- temperature=1.00
[20:11:07] [INFO] | |-- top_p=1.00
[20:11:07] [INFO] | |-- max_tokens=2048
[20:11:07] [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)
[20:11:07] [INFO] 🚀 (1/1) Dispatching with 10 records
[20:11:07] [INFO] 🎲 (1/1) Preparing samplers to generate 10 records across 5 columns
[20:11:07] [INFO] 🧩 (1/1) Generating column `customer_age` from expression
[20:11:07] [INFO] 🧩 (1/1) Generating column `customer_name` from expression
[20:11:13] [INFO] 📊 Progress [6.5s]:
[20:11:13] [INFO] |-- 🌦️ column 'product': 4/10 (40%) 0.6 rec/s
[20:11:13] [INFO] |-- 🐱 column 'customer_review': 0/10 (0%) 0.0 rec/s
[20:11:13] [INFO] |-- 😴 column 'complaint_analysis': 0/10 (0%) 0.0 rec/s
[20:11:13] [INFO] |-- 🥚 column 'review_summary': 0/10 (0%) 0.0 rec/s
[20:11:13] [INFO] |-- 🥚 column 'action_items': 0/10 (0%) 0.0 rec/s
[20:11:20] [INFO] 📊 Progress [13.6s]:
[20:11:20] [INFO] |-- ⛅ column 'product': 5/10 (50%) 0.4 rec/s
[20:11:20] [INFO] |-- 🐱 column 'customer_review': 0/10 (0%) 0.0 rec/s
[20:11:20] [INFO] |-- 😴 column 'complaint_analysis': 0/10 (0%) 0.0 rec/s
[20:11:20] [INFO] |-- 🥚 column 'review_summary': 0/10 (0%) 0.0 rec/s
[20:11:20] [INFO] |-- 🥚 column 'action_items': 0/10 (0%) 0.0 rec/s
[20:11:28] [INFO] 🔄 (1/1) Salvaging 10 deferred task(s)
[20:11:32] [INFO] 📊 Progress [25.7s]:
[20:11:32] [INFO] |-- ⛅ column 'product': 5/10 (50%) 0.2 rec/s
[20:11:32] [INFO] |-- 🐱 column 'customer_review': 1/10 (10%) 0.0 rec/s
[20:11:32] [INFO] |-- 😴 column 'complaint_analysis': 0/10 (0%) 0.0 rec/s
[20:11:32] [INFO] |-- 🥚 column 'review_summary': 0/10 (0%) 0.0 rec/s
[20:11:32] [INFO] |-- 🥚 column 'action_items': 0/10 (0%) 0.0 rec/s
[20:11:37] [WARNING] Provider showing degraded performance: 50% of last 20 task outcomes were retryable errors (rate-limit, timeout, 5xx, connection). Run may take longer than expected; salvage will retry these.
[20:11:38] [INFO] 📊 Progress [31.6s]:
[20:11:38] [INFO] |-- ⛅ column 'product': 7/10 (70%) 0.2 rec/s
[20:11:38] [INFO] |-- 🐱 column 'customer_review': 2/10 (20%) 0.1 rec/s
[20:11:38] [INFO] |-- 😴 column 'complaint_analysis': 1/10 (10%) 0.0 rec/s, 1 skipped
[20:11:38] [INFO] |-- 🥚 column 'review_summary': 0/10 (0%) 0.0 rec/s
[20:11:38] [INFO] |-- 🥚 column 'action_items': 1/10 (10%) 0.0 rec/s, 1 skipped
[20:11:44] [INFO] 📊 Progress [37.7s]:
[20:11:44] [INFO] |-- 🌤️ column 'product': 8/10 (80%) 0.2 rec/s
[20:11:44] [INFO] |-- 😺 column 'customer_review': 4/10 (40%) 0.1 rec/s
[20:11:44] [INFO] |-- 😴 column 'complaint_analysis': 2/10 (20%) 0.1 rec/s, 2 skipped
[20:11:44] [INFO] |-- 🥚 column 'review_summary': 1/10 (10%) 0.0 rec/s
[20:11:44] [INFO] |-- 🥚 column 'action_items': 2/10 (20%) 0.1 rec/s, 2 skipped
[20:11:49] [INFO] 📊 Progress [42.8s]:
[20:11:49] [INFO] |-- 🌤️ column 'product': 9/10 (90%) 0.2 rec/s
[20:11:49] [INFO] |-- 😸 column 'customer_review': 5/10 (50%) 0.1 rec/s
[20:11:49] [INFO] |-- 🥱 column 'complaint_analysis': 3/10 (30%) 0.1 rec/s, 3 skipped
[20:11:49] [INFO] |-- 🥚 column 'review_summary': 2/10 (20%) 0.0 rec/s
[20:11:49] [INFO] |-- 🐣 column 'action_items': 3/10 (30%) 0.1 rec/s, 3 skipped
[20:11:55] [INFO] 📊 Progress [48.4s]:
[20:11:55] [INFO] |-- ☀️ column 'product': 10/10 (100%) 0.2 rec/s
[20:11:55] [INFO] |-- 😸 column 'customer_review': 6/10 (60%) 0.1 rec/s
[20:11:55] [INFO] |-- 😐 column 'complaint_analysis': 5/10 (50%) 0.1 rec/s, 5 skipped
[20:11:55] [INFO] |-- 🐣 column 'review_summary': 4/10 (40%) 0.1 rec/s
[20:11:55] [INFO] |-- 🐥 column 'action_items': 5/10 (50%) 0.1 rec/s, 5 skipped
[20:12:00] [INFO] 📊 Progress [53.7s]:
[20:12:00] [INFO] |-- ☀️ column 'product': 10/10 (100%) 0.2 rec/s
[20:12:00] [INFO] |-- 😼 column 'customer_review': 8/10 (80%) 0.1 rec/s
[20:12:00] [INFO] |-- 😐 column 'complaint_analysis': 7/10 (70%) 0.1 rec/s, 7 skipped
[20:12:00] [INFO] |-- 🐥 column 'review_summary': 6/10 (60%) 0.1 rec/s
[20:12:00] [INFO] |-- 🐥 column 'action_items': 7/10 (70%) 0.1 rec/s, 7 skipped
[20:12:06] [INFO] 📊 Progress [59.9s]:
[20:12:06] [INFO] |-- ☀️ column 'product': 10/10 (100%) 0.2 rec/s
[20:12:06] [INFO] |-- 🦁 column 'customer_review': 10/10 (100%) 0.2 rec/s
[20:12:06] [INFO] |-- 😊 column 'complaint_analysis': 9/10 (90%) 0.2 rec/s, 9 skipped
[20:12:06] [INFO] |-- 🐥 column 'review_summary': 7/10 (70%) 0.1 rec/s
[20:12:06] [INFO] |-- 🐤 column 'action_items': 8/10 (80%) 0.1 rec/s, 8 skipped
[20:12:09] [INFO] 🙈 Dropping columns: ['customer']
[20:12:09] [INFO] 📊 Progress [62.5s]:
[20:12:09] [INFO] |-- ☀️ column 'product': 10/10 (100%) 0.2 rec/s
[20:12:09] [INFO] |-- 🦁 column 'customer_review': 10/10 (100%) 0.2 rec/s
[20:12:09] [INFO] |-- 🤩 column 'complaint_analysis': 10/10 (100%) 0.2 rec/s, 10 skipped
[20:12:09] [INFO] |-- 🐔 column 'review_summary': 10/10 (100%) 0.2 rec/s
[20:12:09] [INFO] |-- 🐔 column 'action_items': 10/10 (100%) 0.2 rec/s, 10 skipped
[20:12:09] [INFO] ✅ Async generation complete [62.5s]: 30 ok, 0 failed, 20 skipped across 5 column(s)
[20:12:09] [INFO] 📊 Model usage summary:
[20:12:09] [INFO] |-- model: nvidia/nemotron-3-nano-30b-a3b
[20:12:09] [INFO] |-- tokens: input=9072, output=4027, total=13099, tps=208
[20:12:09] [INFO] |-- requests: success=30, failed=10, total=40, rpm=38
[20:12:09] [INFO] 📐 Measuring dataset column statistics:
[20:12:09] [INFO] |-- 🎲 column: 'product_category'
[20:12:09] [INFO] |-- 🎲 column: 'product_subcategory'
[20:12:09] [INFO] |-- 🎲 column: 'target_age_range'
[20:12:09] [INFO] |-- 🎲 column: 'review_style'
[20:12:09] [INFO] |-- 🧩 column: 'customer_name'
[20:12:09] [INFO] |-- 🧩 column: 'customer_age'
[20:12:09] [INFO] |-- 🗂️ column: 'product'
[20:12:09] [INFO] |-- 🗂️ column: 'customer_review'
[20:12:09] [INFO] |-- 📝 column: 'complaint_analysis'
[20:12:09] [INFO] |-- 📝 column: 'action_items'
[20:12:09] [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 | Clothing | Winter Coats | 50-65 | rambling | 94 | Joel Duran | {'name': 'Classic Wool Blend Reversible Winter... | {'rating': 5, 'customer_mood': 'happy', 'revie... | None | None | A 5‑star review praising the Classic Wool Blen... |
| 1 | Clothing | Accessories | 65+ | structured with bullet points | 74 | Kimberly Wells | {'name': 'Elegant Sun Protection Hat with UPF ... | {'rating': 4, 'customer_mood': 'happy', 'revie... | None | None | The Elegant Sun Protection Hat with UPF 50+ of... |
| 2 | Home & Kitchen | Appliances | 35-50 | detailed | 96 | Julie Gray | {'name': 'SousVide Precision Cooker', 'descrip... | {'rating': 5, 'customer_mood': 'excited', 'rev... | None | None | The SousVide Precision Cooker earns a 5/5 for ... |
| 3 | Clothing | Women's Clothing | 65+ | detailed | 36 | Megan Rice | {'name': 'ComfortFit Kneesupport Leggings, Siz... | {'rating': 4, 'customer_mood': 'happy', 'revie... | None | None | The reviewer highly praises the ComfortFit Kne... |
| 4 | Home Office | Desks | 18-25 | rambling | 77 | Jennifer Velez | {'name': 'ModuDesk Pro', 'description': 'A lig... | {'rating': 4, 'customer_mood': 'happy', 'revie... | None | None | A delighted reviewer praises the lightweight, ... |
──────────────────────────────────────── 🎨 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 │ 9 (90.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%) │ 256.0 +/- 51.9 │ 1.0 +/- 0.0 │ ├─────────────────────────┼──────────────┼────────────────────────────┼────────────────────┼──────────────────────┤ │ action_items │ None │ 0 (0.0%) │ 22.0 +/- 0.0 │ 1.0 +/- 0.0 │ ├─────────────────────────┼──────────────┼────────────────────────────┼────────────────────┼──────────────────────┤ │ review_summary │ string │ 10 (100.0%) │ 228.0 +/- 52.2 │ 62.5 +/- 8.5 │ └─────────────────────────┴──────────────┴────────────────────────────┴────────────────────┴──────────────────────┘ 🗂️ 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 │ 76.5 +/- 22.8 │ ├──────────────────────┼───────────────┼────────────────────────────┼─────────────────────┼───────────────────────┤ │ customer_review │ dict │ 10 (100.0%) │ 332.5 +/- 21.3 │ 215.5 +/- 55.5 │ └──────────────────────┴───────────────┴────────────────────────────┴─────────────────────┴───────────────────────┘ 🧩 Expression Columns ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ column name ┃ data type ┃ number unique values ┃ ┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩ │ customer_name │ string │ 10 (100.0%) │ ├───────────────────────────────────┼──────────────────────────┼──────────────────────────────────────────────────┤ │ customer_age │ string │ 9 (90.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: