tonytautai home/local-ai/run-local-ai/running/training/quality/data

sort -u ./examples

What a Clean Training Example Looks Like.

LLM training data quality comes down to thousands of input and output pairs that agree with each other about what correct means, with the production noise left in.

Tony Tautai

llm training data quality

What a Good Example Looks Like

llm training data quality

An input exactly as production will see it, including the noise. An output that is correct, complete, and in the format you want back. Nothing else. Quality comes down to thousands of such pairs that agree with each other about what correct means. The section this belongs to is reached by going back to training data quality.

Common Defects, in Order of Damage

The Labelling Guide

llm training data quality

Write it before the first label. Define each field with examples and counter-examples: an address includes the postcode, a phone number does not include the extension, a date in a letterhead is not the document date. Give it to two people, have both label the same fifty documents, measure where they disagree, and fix the guide, not the people. Repeat until agreement is high. Only then label at scale.

Keep the Noise

The temptation is to clean the inputs so the model learns faster. Resist it. If the firm's scanner skews pages, the training set needs skewed pages. If quotes arrive with coffee stains and handwritten notes, so should the examples. A model that learns on clean text and meets reality on day one fails in exactly the ways you did not test for.

Where Data Comes From When You Cannot Use the Real Thing

llm training data quality

For professions bound by secrecy, real client documents often cannot be used for training at all. Fictional documents and public licensed datasets fill the gap, with their own hazards, which our guide to synthetic data fine tuning risks walks through. And whatever the source, the proof that it worked is a test set nobody trained on, which is the subject of our answer to how to evaluate fine tuned models frozen test set.

The example set is the specification. Write it with the care you would give a contract.

ssh [email protected]

Prove it on your documents.

Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.

Test it on my documents Request a diagnostic