AI Hints
Home›Fine-Tuning LLMs Tutorial›Data: Quality and Collection
Fine-Tuning LLMs · Lesson 71 of 120

Collecting Data

Where examples come from.

⏱ 2 min read▶ Video at 1:49:15🎓 Free
Watch this lesson in the Fine-Tuning LLMs courseWatch on YouTube ↗Full Fine-Tuning LLMs course

Where do training examples come from? Usually from the work your team already does. Let's look at the best sources, and how to label them well.

  • Where do examples come from?
  • Work you already do
  • Label them well

Good sources

Real logs are the best source. Past customer messages, and how your team answered them. Experts can write examples by hand, for important or rare cases. A bigger model can draft examples, which people then check. And existing public datasets can fill gaps. Always check the licence, and remove private data.

SourceNotes
Real logsbest: real users, real answers
Expert-writtenslow, but high quality
LLM-drafted + checkedfast, needs review
Public datasetscheck the licence

Labelling guidelines

If several people label data, write a short guide first. Define each label, with examples. Say what to do with unclear cases. For example, a message that's both a complaint and a return. Then have two people label the same small sample, and compare. Where they disagree, improve the guide.

keyvalue
Defineevery label, with examples
Unclear caseswrite a rule
Checktwo people, same sample
Disagree?improve the guide

Summary

Let's recap. Real logs are the best source of examples. Experts and bigger models can add more. And a labelling guide keeps labels consistent. Next, making data with code, and with other models.

Key takeaways
  • Real logs first
  • Remove private data
  • Write a labelling guide
Next up: Synthetic Data — examples made by code or models