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
Metadata
Release files for sdg-hub 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sdg_hub-0.9.4.tar.gz | 8.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sdg_hub-0.9.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 MB
Release files / sdg_hub-0.9.4.tar.gz
| Download URL | sdg_hub-0.9.4.tar.gz |
|---|---|
| Size | 8.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdf620cca429d7ed39adf35b15dbf3fbb81a284c399e3138922289fafc7881b4
|
|
BLAKE2b-256 checksum How to use checksums |
70187f84adaed65df85fe0b0202d4bc8710bb40e06c40ce89d9c3c011b7700c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency logRelease files / sdg_hub-0.9.4-py3-none-any.whl
| Download URL | sdg_hub-0.9.4-py3-none-any.whl |
|---|---|
| Size | 258.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cba1d1b585f0fe2c980c329988c44b9a40ea8f42c1e5af1b0d79ebc549fccbaf
|
|
BLAKE2b-256 checksum How to use checksums |
0f6c152ace4b41b9355bf592109eb7a2dba1f2f49a4c14845421c832682e7a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.
Transparency log