Dataset Engineering
AI Engineer path · lesson 97 of 124Move three sliders to find whether quality, coverage or quantity is your binding constraint, weigh four data sources against their characteristic failures, run a synthesis loop with and without a verifier, and toggle a processing pipeline to see how much of a raw pile survives.
Key insight
The order is quality, then coverage, then quantity — and teams reliably work it backwards, because quantity is the only one of the three you can increase without deciding anything.
Build a fine-tuning dataset
Order the dataset pipeline.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
- 6Drop a step here
Test your knowledge
The correct priority order for dataset work is:
The short version
Teaching by worked examples. A hundred carefully chosen problems with correct, well-explained solutions teach more than ten thousand scraped off a forum — and neither teaches a topic that appears in none of them, however many you add.
In more depth
Dataset Engineering
Once you decide to finetune, the model stops being the interesting variable and the data starts.
The triad, in priority order
Teams reliably work this backwards, because quantity is the only one you can increase without deciding anything.
Where data comes from
Synthesis needs a verifier
A unit test, compiler, schema validator, database lookup, a second model asked to check, or a human on a sample. Synthetic data is a multiplier on a verifier, not a substitute for data. The held-out eval set must never be synthetic.
Processing pipeline
Deduplicate → Clean → Quality filter → Decontaminate → Format & split. Dedup and decontamination are pure upside. The quality filter has the highest leverage and the highest risk — filters trained on "good writing" have repeatedly stripped dialects along with the junk.
How much?
50–500 to change format/tone · 1k–10k for a narrow task · 10k–100k to distil a large model into a small one · do not finetune to add knowledge — retrieval is cheaper, updatable and citable.
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required