Data Is the Main Ingredient
A model learns what the examples show. If your examples are messy or inconsistent, the model will be too. A few hundred excellent examples can be better than thousands of poor ones.
Typical Format
Most tools accept JSONL: one JSON object per line. A common shape is a list of chat messages. The exact field names depend on your provider or training library, so check its guide.
{"messages": [{"role": "system", "content": "You write short, polite support replies."}, {"role": "user", "content": "Where is my order?"}, {"role": "assistant", "content": "Thanks for waiting. Please share your order number and I will check it right away."}]}
Cleaning Steps
- Collect real, representative examples
- Remove duplicates and near duplicates
- Remove private data: names, emails, phone numbers, keys
- Fix wrong or inconsistent answers
- Keep the same style and format across examples
- Include some hard and edge cases
kept 5 of 6 | train 4 | validation 1 | ['Cancel my plan', 'My email is [EMAIL], help', 'Where is my order?', 'Change address', 'Refund status?']
The demo removed one exact duplicate, replaced an email with a placeholder and split the data into training and validation parts. Real emails and names can take more rules, so use a proper privacy tool for real projects.
Train and Validation Sets
- Training set: examples the model learns from
- Validation set: examples it never trains on, used to check progress
- Keep a separate test set for your final check
- Never let the same example appear in both
Quality Checks
- Read a random sample yourself
- Check length and format consistency
- Check label balance, for example not 95% one category
- Test the tuned model against your evaluation set and compare with the original
Practice
- Add three new examples and rerun the cleaning demo
- Add a rule that removes phone numbers
- Write five hard cases for your own task
Conclusion
Clean, consistent, rights-cleared data with a proper validation split is the base of a good fine-tune.

