# NeMo Data Designer

> Build production-grade synthetic datasets with samplers, LLMs, and validation

- Category: Data & Labeling / Synthetic Data
- Language: Python
- Repository: https://github.com/NVIDIA-NeMo/DataDesigner
- Website: https://nvidia-nemo.github.io/DataDesigner
- Canonical page: https://ai-tldr.dev/tools/nemo-data-designer/

## In short

NeMo Data Designer is an open-source Python library from NVIDIA for generating synthetic datasets, either from scratch or from your own seed data. Instead of one-off LLM prompting, you describe a dataset as a set of columns, where each column is filled by a statistical sampler, an LLM, or an existing dataset. It sits in the Synthetic Data category of the Data & Labeling tools and is open-source, written in Python.

## Overview

NeMo Data Designer is an open-source Python library from NVIDIA for generating synthetic datasets, either from scratch or from your own seed data. Instead of one-off LLM prompting, you describe a dataset as a set of columns, where each column is filled by a statistical sampler, an LLM, or an existing dataset.

It is aimed at developers and ML teams who need realistic training or test data with control over field distributions and the relationships between fields. You can validate generated rows with Python, SQL, and custom local or remote validators, and score outputs using an LLM as a judge.

As a synthetic-data and labeling tool, it sits between simple prompt scripts and full data platforms: a configuration-driven framework where you build a column schema, preview a sample, then run full generation. It works with NVIDIA Build, OpenAI, and OpenRouter model providers out of the box.

## What it does

- Generate data from statistical samplers, LLM columns, or existing seed datasets
- Dependency-aware generation that controls relationships between fields
- Built-in Python, SQL, and custom local or remote validators for quality checks
- LLM-as-a-judge scoring to assess output quality
- Preview mode to inspect sample records before full-scale generation
- Async engine (default) that overlaps independent columns and adapts concurrency per provider and model

## Getting started

Install the package, set a provider API key, then define columns and preview a sample before generating at scale.

1. Install

   Install Data Designer from PyPI.

```bash
pip install data-designer
```

2. Set your API key

   Set the environment variable for one of the default providers (NVIDIA Build, OpenAI, or OpenRouter).

```bash
export NVIDIA_API_KEY="your-api-key-here"
```

3. Define columns and preview

   Build a config with a sampler column and an LLM text column, then preview a sample record.

```python
import data_designer.config as dd
from data_designer.interface import DataDesigner

data_designer = DataDesigner()
config_builder = dd.DataDesignerConfigBuilder()

config_builder.add_column(
    dd.SamplerColumnConfig(
        name="product_category",
        sampler_type=dd.SamplerType.CATEGORY,
        params=dd.CategorySamplerParams(
            values=["Electronics", "Clothing", "Home & Kitchen", "Books"],
        ),
    )
)

config_builder.add_column(
    dd.LLMTextColumnConfig(
        name="review",
        model_alias="nvidia-text",
        prompt="Write a brief product review for a {{ product_category }} item you recently purchased.",
    )
)

preview = data_designer.preview(config_builder=config_builder)
preview.display_sample_record()
```

4. Configure providers and models via CLI

   Use the CLI to set up model providers and view current settings.

```bash
data-designer config providers
data-designer config models
data-designer config list
```

## When to use it

- Generate synthetic training data with controlled statistical distributions and field correlations
- Create realistic test datasets from a small seed dataset for ML pipelines
- Produce validated, scored sample data (for example product reviews tied to categories) for prototyping
- Augment existing data with dependency-aware fields while checking quality with Python or SQL validators
