Synthetic Data Generation
Project description
Composable blocks and flows for synthetic data generation
SDG Hub is a Python framework for building synthetic data generation pipelines. Chain LLM, parsing, transform, filtering, and agent blocks into YAML-defined flows -- then generate training data at scale.
Get Started
pip install sdg-hub
from sdg_hub import FlowRegistry, Flow
# Discover and load a built-in flow
FlowRegistry.discover_flows()
flow = Flow.from_yaml(FlowRegistry.get_flow_path("MCP Server Distillation"))
# Configure and run
flow.set_model_config(model="openai/gpt-4o")
result = flow.generate(dataset)
See the Quick Start for a full walkthrough, or browse all built-in flows.
Documentation
Full documentation at ai-innovation.team/sdg_hub
- Installation -- setup, optional dependencies, development install
- Quick Start -- end-to-end walkthrough from loading a flow to generating data
- Core Concepts -- blocks, flows, registries, and dataset handling
- Block Reference -- LLM, parsing, transform, filtering, agent, and custom blocks
- Flow Reference -- YAML schema, built-in flows, custom flows
- API Reference -- auto-generated from source
- Contributing -- development setup and contribution guidelines
Coding Agent Plugin
SDG Hub is available as a plugin for two coding agents, bringing synthetic data generation directly into your coding workflow.
Claude Code
Via org marketplace (recommended — includes all Red Hat AI plugins):
/plugin marketplace add Red-Hat-AI-Innovation-Team/plugins
/plugin install sdg-hub@Red-Hat-AI-Innovation-Team/plugins
Via this repo directly:
/plugin marketplace add Red-Hat-AI-Innovation-Team/sdg_hub
/plugin install sdg-hub@Red-Hat-AI-Innovation-Team/sdg_hub
From a local clone:
git clone https://github.com/Red-Hat-AI-Innovation-Team/sdg_hub.git
/plugin marketplace add /path/to/sdg_hub
Codex CLI
codex plugin marketplace add Red-Hat-AI-Innovation-Team/plugins
Then install the plugin from the marketplace. See .codex-plugin/INSTALL.md for manual installation.
After Installing
Invoke the setup-guide skill to configure your LLM provider and model.
| Skill | Description |
|---|---|
setup-guide |
Guided first-time configuration |
data-generation |
Run synthetic data generation using a flow |
flow-browser |
Browse and inspect available flows |
License
Apache License 2.0 -- see LICENSE.
Built by the Red Hat AI Innovation Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sdg_hub-0.9.4.tar.gz.
File metadata
- Download URL: sdg_hub-0.9.4.tar.gz
- Upload date:
- Size: 8.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdf620cca429d7ed39adf35b15dbf3fbb81a284c399e3138922289fafc7881b4
|
|
| MD5 |
e0d3f4467e6c2cc8aad6a2f4ced7442c
|
|
| BLAKE2b-256 |
70187f84adaed65df85fe0b0202d4bc8710bb40e06c40ce89d9c3c011b7700c6
|
Provenance
The following attestation bundles were made for sdg_hub-0.9.4.tar.gz:
Publisher:
pypi.yml on Red-Hat-AI-Innovation-Team/sdg_hub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdg_hub-0.9.4.tar.gz -
Subject digest:
fdf620cca429d7ed39adf35b15dbf3fbb81a284c399e3138922289fafc7881b4 - Sigstore transparency entry: 1790882564
- Sigstore integration time:
-
Permalink:
Red-Hat-AI-Innovation-Team/sdg_hub@b58d293a5cd7d2bd88b4ec9b4140fbc8aa3d18f5 -
Branch / Tag:
refs/tags/v0.9.4 - Owner: https://github.com/Red-Hat-AI-Innovation-Team
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@b58d293a5cd7d2bd88b4ec9b4140fbc8aa3d18f5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sdg_hub-0.9.4-py3-none-any.whl.
File metadata
- Download URL: sdg_hub-0.9.4-py3-none-any.whl
- Upload date:
- Size: 258.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cba1d1b585f0fe2c980c329988c44b9a40ea8f42c1e5af1b0d79ebc549fccbaf
|
|
| MD5 |
54254ec9f32e8618c37579f196352b53
|
|
| BLAKE2b-256 |
0f6c152ace4b41b9355bf592109eb7a2dba1f2f49a4c14845421c832682e7a12
|
Provenance
The following attestation bundles were made for sdg_hub-0.9.4-py3-none-any.whl:
Publisher:
pypi.yml on Red-Hat-AI-Innovation-Team/sdg_hub
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sdg_hub-0.9.4-py3-none-any.whl -
Subject digest:
cba1d1b585f0fe2c980c329988c44b9a40ea8f42c1e5af1b0d79ebc549fccbaf - Sigstore transparency entry: 1790882573
- Sigstore integration time:
-
Permalink:
Red-Hat-AI-Innovation-Team/sdg_hub@b58d293a5cd7d2bd88b4ec9b4140fbc8aa3d18f5 -
Branch / Tag:
refs/tags/v0.9.4 - Owner: https://github.com/Red-Hat-AI-Innovation-Team
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@b58d293a5cd7d2bd88b4ec9b4140fbc8aa3d18f5 -
Trigger Event:
release
-
Statement type: