Skip to main content
DecimalAI builds training datasets from your production traces — filtered by agent version, eval scores, and compatibility verdicts — and launches fine-tuning jobs directly from the platform.

Building Datasets

From the Dashboard

1

Open Build Dataset

Navigate to DatasetsBuild Dataset.
2

Select an agent

Choose which agent’s traces to draw from.
3

Filter by manifest version

Pin to a manifest version to ensure current config.
4

Filter by eval verdict

pass only is recommended.
5

Choose a format

SFT (supervised fine-tuning) or DPO (preference pairs).
6

Build

Click Build.

Filtering

Compatibility verdicts tell you what to do with each trace for training: keep — use as-is; repair — patch a stale field, then use; replay — re-run the input to regenerate output; drop — too stale to use. These are orthogonal to a trace’s HIGH/MEDIUM/LOW IMPACT severity.

SFT Format

DecimalAI converts multi-turn agent traces into the chat completion format expected by fine-tuning APIs. This handles the complexity of tool-using agents:

Why This Matters

A ReAct agent calls the LLM multiple times per user request. Each call, the LLM sees all prior messages and generates only the next assistant turn. Naive SFT (single input → output) doesn’t capture this multi-turn structure. DecimalAI’s format preserves:
  • System prompts — the instructions the model should follow
  • Tool calls — when and how the model should use tools
  • Tool results — what the model learns from tool output
  • Multi-turn reasoning — the full chain of thought

Multi-Agent Traces

For multi-agent architectures (supervisor + workers), DecimalAI can build separate datasets per agent role, ensuring each sub-agent trains on its own traces.

DPO Format

DPO (Direct Preference Optimization) pairs are generated from replay results:
The “chosen” response comes from the current agent (v2), and the “rejected” from the older agent (v1) or a failed trace.

Dataset Versioning

Each dataset supports multiple versions:
  • Adding traces creates a new version
  • Version comparison shows added/removed/unchanged rows
  • Quality review workflow: pending → approved → rejected

Row Preview

View dataset contents inline with expandable row detail:
  • Role-colored messages (system, user, assistant, tool)
  • Tool call arguments and results
  • Raw JSON toggle
  • Quality stats: score distribution, message length, split breakdown

Fine-Tuning

Supported Providers

Launching a Job

From the dataset detail page:
1

Train

Click “Train”.
2

Select provider and base model

Pick the training provider and the base model to fine-tune.
3

Enter your API key

Provide your training provider API key.
4

Configure parameters

Set epochs and other training parameters.
5

Launch

Click Launch.
The platform submits the job and polls for completion. Training metrics (loss, validation) are stored for review.

Export

You can also export datasets for training elsewhere:
  • JSONL: Standard format for OpenAI fine-tuning
  • Parquet: Efficient columnar format for large datasets

Pull & Export

The fastest way to get training data onto disk:
The version parameter accepts:

HuggingFace Hub Integration

Push datasets directly to HuggingFace Hub, making them instantly loadable by Axolotl, Unsloth, TRL, and any tool that supports load_dataset().

Push to Hub

Now the dataset is usable across the entire open-source training stack:

Load as HuggingFace Dataset (In-Memory)

Skip the file entirely — load a DecimalAI dataset directly as a datasets.Dataset object:
Requirements: pip install huggingface_hub datasets. These are optional dependencies — the core SDK works without them.

Next Steps

Training Pipeline tutorial

End-to-end: trace → evaluate → fine-tune.

Datasets API

REST reference for build, export, version comparison.

Skills & Data Pipeline

SFT vs DPO, repair vs replay.

Replay

Regenerate training data by replaying historical inputs.