
To prepare data for AI, write down the task first. Then check that you can use the data for that purpose, that the records match what the system will see, and that you have held back a separate set for evaluation. The most consequential problems can look mundane. An old column may carry a different meaning, or an apparently useful field may contain information added after the event the model is meant to predict.
Make a source record for the dataset
Give the dataset an owner and a version. Record which systems supplied the data, when and why they collected it, how you selected records and which uses are permitted. Log any restrictions on copying, training, sending data to vendors or sharing results. If the intended use is unclear, resolve it with the responsible data owner before the data enters the project. The original Datasheets for Datasets paper offers a template for documenting where data came from and how it was meant to be used. Datasheets for Datasets
Collect the fields you need for the task and document how you removed or protected unnecessary personal information. Keep raw records under appropriate access controls. Give the team a versioned working dataset, with a change log and instructions for restoring or removing a source if permissions or retention requirements change.
Check the values, then inspect the records
- Structure. List the expected columns, types, units and permitted values. Distinguish a blank field from a valid zero or an explicit unknown.
- Coverage. Check missing values by source, device, time period and relevant groups. An acceptable overall fill rate can hide a broken import for one site.
- Duplication. Look for duplicate records and related records such as copies, versions and replies. Track a group ID where possible.
- Labels. Write down what each answer means. Ask a second reviewer to label a small sample using the same instructions and investigate disagreements.
- Evaluation. Split data in a way that resembles real use. Keep related examples together and reserve later records if you will predict future events.
Turn repeatable structure and coverage checks into a report you can run again. A schema change or a new cluster of missing values can be an early clue that a data feed has shifted. Automated checks can flag an issue for a person to inspect in context. TensorFlow Data Validation guide
Worked example checking warehouse arrival records
Imagine a warehouse wants to predict delivery delays when orders leave the loading dock. Its export includes a promised delivery time, a scan at departure and a delivery status updated later. It may use the final status to define the target, delayed or on time. The status and actual arrival time must stay out of the input fields because neither is available at departure.
The team discovers that one warehouse uses local timestamps without an offset and that a delayed shipment may have multiple scans. It converts the timestamps to a common reference, records the source timezone and groups records by shipment. It holds out a later period for a final test. If a grouping rule would put the same shipment on both sides of the split, it keeps all of that shipment’s scans together. Scikit-learn’s guide to data leakage
Record what would stop a release
Set conditions that matter to your task. For the warehouse, the team might pause if a site’s timestamp is ambiguous, if the late-delivery label is missing at unusual rates or if its newest data lacks a major route. Record who resolves each issue, when the audit runs again and which dataset version a result used.
For document collections, see how local retrieval-augmented generation uses your files. Follow our AI data coverage for reporting on dataset access, governance and quality.
Popular news

The $93.5 billion Anthropic IPO leads this week in AI

Tencent releases Hy4 weights with new terms for large AI hosts

Claude computer use reaches Team and Enterprise in beta

Proposed Claude-assisted Riemann proof passes independent checks

ChatGPT Space reaches Plus with shared pages and slides

