0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:0940,000 old chats: which are good enough to train on?
Brightcart has forty thousand old support conversations. That sounds like a goldmine for fine-tuning the assistant's voice. But look inside. Some replies are excellent. Some were written on a bad day and are curt. Some quote an old return policy that changed last year. Some are the same template pasted hundreds of times. And some contain customers' personal details. Train on all of it, and the model learns all of it: the good, the rude, the outdated and the private. In AI engineering, data is usually the real bottleneck, and the work of preparing it is called dataset engineering.
Today: what high-quality data means, why coverage matters, how much you need, and a real experiment where a small clean dataset beats a big messy one.
1:03Where this fits in the course
Season Five, Module Twenty: dataset engineering. First stop: quality, coverage and quantity.
1:11What makes training data high quality
For fine-tuning, high-quality data has several properties. It's relevant to the task. It's accurate and current: a reply quoting last year's policy teaches the wrong policy. It shows the behaviour you actually want: the warm Brightcart voice, not a curt reply from a stressful day. It's consistent: similar situations handled in similar ways. It's in the same format as production. It's free of mass duplicates. And it's permitted: collected and used with appropriate consent, with personal details removed. Remember: a fine-tuned model imitates its training data, flaws included.
Every rude, outdated or inconsistent example is a lesson you're teaching.
1:58Data coverage and diversity
Quality isn't enough; you also need coverage. Picture a map: rows for topics, like delivery, refunds, damage and returns; columns for languages; and layers for difficulty: simple questions, multi-step cases, angry customers, ambiguous requests, refusals and escalations. Brightcart's old chats fill some cells heavily, like simple delivery questions in English, and leave others nearly empty, like damage claims in Spanish, or cases that should be escalated. A model trained on this data will be weakest exactly where the data is thinnest.
So find the gaps, the same slices from episode sixty, and fill them deliberately: targeted collection, examples written by experts, or carefully generated synthetic data, two episodes from now. And trim the over-represented cells, so one easy topic doesn't dominate.
2:57How much data? Draw a learning curve
How much data do you need? Don't guess: draw a learning curve. Here's a real one. We trained a simple classifier on handwritten digits with growing amounts of data. With twenty-five examples, it scored sixty-three percent. Fifty: seventy-nine. A hundred: eighty-nine. Two hundred: ninety-three. Four hundred: ninety-five. Eight hundred: ninety-six and a half. All twelve hundred and fifty-seven: ninety-seven. Look at the shape. Early on, each doubling adds a lot; later, each doubling adds less and less: diminishing returns, just like the scaling laws from episode thirty-nine.
The practical method: train on growing subsets of your data, plot the curve, and use it to decide whether collecting more is worth the cost. For fine-tuning behaviour on a narrow task, a few hundred to a few thousand excellent examples is a common starting point, but your own curve is the real answer.
3:59Label noise: 200 clean beats 1,257 noisy
Now, the cost of bad data. Take all twelve hundred and fifty-seven training examples, and scramble a share of the labels at random. With no noise, accuracy is ninety-seven percent. Ten percent noise: ninety-five. Twenty percent: ninety-three. Forty percent: ninety point seven. Here's the real test. Pause and predict: which is better, two hundred perfectly clean examples, or all twelve hundred and fifty-seven, with forty percent of their labels scrambled?
The two hundred clean examples win: ninety-three percent against ninety point seven. Six times less data, and a better model. Researchers have seen the same pattern with language models: one well-known study reported strong results from about a thousand carefully chosen examples. For Brightcart, "noise" means wrong answers, outdated policies, a rude tone and inconsistent decisions, and removing them can matter more than adding more chats.
5:08Data curation is a repeating cycle
Curating data is a cycle, not a one-off task. Define the behaviour you want, using the guidelines and voice guide. Select candidate examples with sensible filters: for Brightcart, resolved conversations with high satisfaction, from the current policy period. Have experts review and fix them, rewriting any that quote old policies. Balance the coverage. Split into training, validation and test sets, and make sure nothing leaks into the evaluation sets. Document everything: where the data came from, how it was filtered, the consent it rests on and its known gaps.
Then fine-tune, evaluate, find the weak slices, collect targeted data for them, and repeat. And version your datasets, so every model can be traced to the exact data that made it.
6:01Try it yourself: reading the learning curve
Let's read the learning curve as gains per doubling. Going from twenty-five to fifty examples added almost sixteen points. Fifty to a hundred: about ten. Then about four, then two, then one and a half. What would doubling again, from eight hundred to sixteen hundred, probably add? Pause.
Probably about one point, or less, and it would cost eight hundred more labelled examples. Each doubling buys less. That's the question a learning curve helps you answer: is the next point of accuracy worth what it costs to label the data?
6:44Try it yourself: what label noise costs
With clean labels, the model reached ninety-seven percent. Ten percent noisy labels cost almost two points; forty percent cost over six. So, would you rather have two hundred clean examples, or twelve hundred and fifty-seven where forty percent of the labels were replaced at random? Pause.
The two hundred clean examples win: ninety-three percent against about ninety-one. Six times the data couldn't make up for the noise. Before collecting more examples, it's often worth checking, and fixing, the ones you already have.
7:25A filtering funnel for 40,000 chats
Here's how Sana's forty thousand old chats might be filtered. First, keep only conversations that were resolved and rated well: perhaps twenty-two thousand. Remove near-duplicates, like copy-pasted template replies: perhaps fifteen thousand. Remove replies that contradict the current policies, because old answers quoting an outdated rule would teach the wrong facts: perhaps nine thousand. Finally, select fifteen hundred that cover every category and language, and have senior agents review them. Most of the data is set aside, and that's the point.
8:04A coverage grid
A coverage grid shows where your data is thin. Brightcart lays out ticket categories against languages and counts the selected examples in each cell. Some cells glow: only three examples of damage claims in Spanish, none at all for billing questions in Hindi. Those gaps would become weak spots in the model. The fixes are targeted: collect more real examples for those cells, have experts write some, or generate carefully verified synthetic examples, a topic two episodes from now.
8:39Pause & Predict: two answers to one question
The dataset contains two replies to the same question, "Can I return a gift?". One says gifts can be returned within thirty days with a gift receipt. The other says gifts can only be exchanged. What does training on both teach the model? Pause.
Inconsistency. The model may give either answer, or blend them into something new and wrong. Contradictions in training data become contradictions in behaviour. The fix is to settle the actual policy, correct or remove the wrong example, and write the rule into the guidelines so it doesn't happen again.
9:23Consistent format, consistent model
Format matters too. If some training replies start with a greeting and some don't, some end with a signature and some use bullet points, the model learns all of those habits and mixes them unpredictably. Brightcart standardises: a greeting with the customer's first name, the answer, a clear next step, and no signature. The model learns the format you show it, messy parts included.
9:50Removing personal data from training examples
Real chats contain real people's details: names, addresses, the last digits of cards. Before anything becomes training data, those are replaced, either with placeholders, or with realistic fake substitutes so the text still reads naturally. Models can memorise rare strings from their training data and repeat them later, and customers never agreed to that. Automated detectors catch most personal data, and a person reviews a sample to catch what the detectors miss.
10:23A data card for every dataset
Every dataset Brightcart creates gets a one-page data card. Where the data came from, and when. Which filters were applied. Its size and its coverage grid. The guideline version used. Known gaps and biases. How personal data was handled. The licence or consent basis. Who owns it. And which models were trained on it. When a model misbehaves months later, the data card is the first place to look.
10:55Pause & Predict: a good refusal example
A customer asks for the details of someone else's order. Which training reply is high quality? A: shares the details. B: "I can't help with that." C: explains that, for privacy, it can only share orders on the customer's own account, and suggests asking the sender to share tracking. Pause.
C. A is a privacy breach. B is correct but cold, and leaves the customer stuck. C refuses clearly, explains why, and offers a way forward. A dataset needs good refusal examples too, or the model will learn either to over-share, or to stonewall.
11:41A mix of easy and hard examples
Difficulty needs balancing too. Most real support tickets are easy, like "where's my order?". If the training data is almost all easy, the model never learns to handle multi-issue complaints, policy edge cases or angry customers. But if it's mostly hard cases, the model may over-complicate simple questions. Brightcart roughly matches the mix of real traffic, then deliberately adds extra examples of the hard cases collected from production failures.
12:13Don't forget multi-turn follow-ups
Here's a common gap: datasets made only of single questions and single answers. Real customers ask follow-ups: "And can you change the address too?", "What about the other order?". A model trained only on first messages can handle the opening well and then lose track by the third turn. So Brightcart includes full multi-turn conversations, with corrections, topic changes and references back to earlier messages, and trains on every assistant turn.
12:46Myth vs Fact: more data, better model?
Myth: more data always means a better model. Fact: as we just saw, a small, clean dataset can beat a large, noisy one. Bad data doesn't just fail to help; it actively teaches the wrong things. Quality, coverage and consistency come first.
13:06One-minute recap
Let's recap. High-quality training data is relevant, accurate, on-voice, consistent, well formatted, free of duplicates, and permitted. Map your coverage and fill the gaps. Draw a learning curve to decide how much data you need: gains shrink as data grows. Label noise steadily damages performance, and a small clean set can beat a large noisy one. And curation is a repeating cycle of selecting, fixing, balancing, documenting and evaluating. One sentence to remember: your model becomes what your data repeats.
13:45Next: getting and labelling data
Mission complete. Brightcart's forty thousand chats have been filtered and reviewed down to about fifteen hundred excellent, balanced examples, with the gaps clearly flagged. But those gaps still need filling: damage claims in Spanish, and escalation cases. Who writes the examples, who labels them, and how do you keep different people's labels consistent? Getting and labelling data, next. See you on the map.