AI Engineering

How to Prepare Your Data for an AI Product

The unglamorous work that decides whether an AI product works, in seven steps.

3 min read

Monitoring screen with data charts
Photo: Stephen Dawson on Unsplash

In short

  • Data preparation for AI decides more projects than model choice. Gartner predicts that through 2026, organisations will abandon 60% of AI projects not supported by AI-ready data.
  • “AI-ready” depends on the use case: the same data can be ready for one feature and useless for another.
  • Work in this order: define the use case, find and assess the data, clean and structure it, label it if needed, then govern it.
  • Build privacy in from the start: collect only what the use case needs and know your legal basis.

Data preparation for AI is the unglamorous work that decides whether an AI product works. A strong model fed with duplicated, outdated or mislabelled data produces confident, wrong results. Gartner predicts that through 2026 organisations will abandon 60% of AI projects unsupported by AI-ready data (Gartner). Here is how we would prepare data for an AI product.

1. Start from the use case, not the data lake

“Make our data AI-ready” has no end. “Answer customer questions about our 40 insurance products using current policy documents” does. The use case tells you which data matters, how fresh it must be and how accurate. Data can be ready for one use case and not for another.

2. Find and assess the data

QuestionWhy it matters
Where does it live, and who owns it?Someone must fix it when it is wrong
How complete and current is it?Gaps and old versions become wrong answers
Is it consistent across systems?Conflicting records confuse models and users
Does it contain personal or confidential data?Decides what you may use, and how
Does it represent real cases, including rare ones?Models fail on what they never saw

3. Clean and structure it

  • Remove duplicates and outdated versions; keep one source of truth per document or record.
  • Standardise formats: dates, units, names, codes.
  • Extract text from PDFs and scans carefully; tables and headers often break.
  • Add metadata: owner, date, version, product, language, access level. Retrieval and filtering depend on it.

4. Label where the model needs examples

Classification, extraction and image recognition need labelled examples. Write clear labelling rules, label a sample twice to check agreement, and include hard and rare cases on purpose. For images, see how to build image recognition that works in the real world.

5. Build privacy in from the start

Under the GDPR, personal data must be collected for specified purposes and limited to what is necessary (GDPR, Article 5). In practice:

  • Use only the fields the use case needs; mask or remove the rest.
  • Know your legal basis for each data source, and check contracts with data providers.
  • Keep personal data out of prompts sent to external models unless your agreements allow it.
  • If your system could be high-risk under the AI Act, its data governance rules on training, validation and test data apply too (AI Act, Article 10).

6. Split data for training, testing and evaluation

Keep a held-out set the model never sees during development, so you measure real performance, not memory. For generative features, turn it into the golden set described in how to evaluate an LLM feature.

7. Govern it as a product

  • Name an owner for each data source used by AI.
  • Automate checks for freshness, duplicates and schema changes.
  • Log which data version fed which model or index.
  • Give users a way to report wrong answers, and trace them back to the data.

Gartner also found that 63% of organisations either do not have, or are unsure they have, the right data management practices for AI (Gartner via Neo4j). Treating data as a product with an owner is the fastest way out of that group.

Next steps: decide between RAG and fine-tuning, or read how to take an AI prototype to production.

From our work

We have taken AI into real products: the software of an autonomous warehouse drone for D-ARIA with more than 99% inventory accuracy (case study), and AI-based person following for a mobile robot with EFS Consulting. If you have an AI prototype, our free AI prototype to production review tells you what to keep, what to fix and what it will take.

Technologies you will meet

AreaTypical tools
ProcessingPython, pandas, Polars, Apache Spark, dbt
OrchestrationApache Airflow, Prefect, Dagster
QualityGreat Expectations, Soda, data contracts
StorageParquet, Delta Lake, PostgreSQL, object storage
VersioningDVC, lakeFS

What happens after the data is ready is covered in What is MLOps?

Frequently asked questions

What does AI-ready data mean?

Data that fits a specific AI use case: relevant, complete enough, current, consistent, labelled where needed, legally usable and owned by someone who keeps it that way. The same data can be ready for one use case and not another.

How long does data preparation for AI take?

Often longer than building the model or feature itself. Scoping the use case first keeps it manageable, because you only prepare the data that use case needs.

Can I use personal data to build an AI product?

Only with a legal basis and within GDPR principles such as purpose limitation and data minimisation. Use only the fields you need, mask the rest and check contracts with any external model provider.

Do I need labelled data for generative AI?

Less for training, but you still need labelled examples to evaluate quality. A golden set of real questions with expected answers is a form of labelled data.

Working on something like this?

Tell us where the product is stuck. We answer with a concrete next step.

Send a few lines about the product, the deadline and the team you have today. A senior engineer replies within two working days.