Synthetic dataset generation
Generate, filter, deduplicate, review, and publish synthetic records.
Explore this workflow and its measured results
The interactive DAG, version and execution summary below come directly from the public Hub publication.
Import this exact version and download the research data
In Desktop, choose Create workflow → Import from Hub and paste this immutable URI:
akoflow://hub/publications/90b09529-b012-48b0-8aec-f73fd4349358/versions/1
Run this example locally
Generate structured question/answer examples from versioned topic templates in three parallel batches, reject invalid rows, remove overlapping questions, verify topic coverage, and publish JSON Lines plus a quality report. The portable generator is template-based and requires no LLM.
Install Go and Python 3.12 or newer.
git clone https://github.com/UFFeScience/akoflow-examples.git &&
cd akoflow-examples &&
git checkout --detach showcase-hub-v1 &&
cd generative-ai/synthetic-dataset &&
./prepare.sh &&
./run.sh
Run the block from the directory where you keep your repositories. If you already cloned the repository, enter this example's directory and run ./prepare.sh && ./run.sh.
Preparation downloads the Go module and any declared Python packages once. The workload then runs locally with offline input data. Every meaningful step is a separate process; independent activities run in parallel after their dependencies complete.
Read outputs/manifest.json for the generated artifacts, outputs/dag-validation.json for dependency waves, and outputs/stage-<activity>.json for each activity's observed result. A failed stage stops the run and prevents a successful final manifest.
Expected outputs: synthetic-dataset.jsonl, quality-report.json.
Run the same activities in Desktop
Start your local AkôFlow daemon with Docker available and configure AKOFLOW_API_TOKEN in your shell. From this example's directory, run:
go run ../../tools/daemon-local -root ../.. -example generative-ai/synthetic-dataset
This command validates the daemon connection, builds the declared image, registers the local environment and workflow, and submits a real run. The daemon owns execution and file transfers. Open the printed run ID in Desktop to inspect each activity.
Activity responsibilities
| Activity | Responsibility |
|---|---|
define-schema | Execute the define-schema stage and publish its declared outputs for downstream activities. |
batch-a | Execute the batch-a stage and publish its declared outputs for downstream activities. |
batch-b | Execute the batch-b stage and publish its declared outputs for downstream activities. |
batch-n | Execute the batch-n stage and publish its declared outputs for downstream activities. |
filter | Execute the filter stage and publish its declared outputs for downstream activities. |
deduplicate | Execute the deduplicate stage and publish its declared outputs for downstream activities. |
quality-review | Execute the quality-review stage and publish its declared outputs for downstream activities. |
publish | Execute the publish stage and publish its declared outputs for downstream activities. |
Inputs
- Schema and policy
- Source examples
- Generator model
Outputs
- synthetic-dataset.jsonl
- quality-report.json
Provenance to preserve
- Prompt and model
- Filter reasons
- Review decisions
Source bundle
The executable workflow and its implementation files are maintained in the separate AkôFlow examples repository. The documentation intentionally keeps code, container recipes, generators, and validation scripts out of the narrative page.
Open the complete source bundle ↗Execution evidence
Latest validated Docker execution: 8 / 8 activities completed. Open the measured run, logs, metrics and output downloads in Hub. The documentation screenshots below are historical reference captures; they are separate from the latest Hub execution.
Read the historical documentation execution record · Local output manifest
Each stage also ran through the standalone local command. Read the dependency and artifact validation.
define-schema
After: workflow start.
batch-a
After: define-schema.
batch-b
After: define-schema.
batch-n
After: define-schema.
filter
After: batch-a, batch-b, batch-n.
deduplicate
After: filter.
quality-review
After: deduplicate.
publish
After: quality-review.
Execution considerations
Use queued external jobs for rate-limited generation. Stable record identities prevent duplicates after retries.
AkôFlow boundary: the engine schedules, deploys, executes, transfers data, and records evidence. The ML or agent framework remains an implementation choice inside each activity.