Skip to content

Implementation7 min read

Your AI is only as good as your data: a cleanup plan for master data, duplicates and documents

Most disappointing AI results trace back to data, not the model: duplicate customers, outdated price lists and documents nobody can find. A step-by-step plan to fix the parts that matter.

Ryze Labs engineering team

Key takeaways

  • AI systems repeat whatever your data says, so duplicates, outdated records and conflicting documents turn directly into wrong answers and wrong actions.
  • You don't need to clean everything; start with the master data and documents that your first AI use case actually reads.
  • Clean data only stays clean with named owners, validation at the point of entry and a simple quality measure you check regularly.

When an AI pilot gives poor results, the first suspect is usually the model. In practice the cause is often the data underneath: the same customer recorded three times, a price list from two years ago sitting next to the current one, or contracts saved as scanned images with no text. The model reads all of it with equal confidence and produces answers that sound right and aren't.

Why data quality matters more with AI

People working with messy data compensate without noticing. An experienced clerk knows that “ACME Ltd” and “Acme Limited” are the same company and that the old price list in the shared folder should be ignored. An AI system has none of that background knowledge unless you give it, so it treats every record and document as equally valid.

The effect gets stronger when AI starts acting rather than just answering. An agent that creates orders, matches invoices or updates the CRM writes its mistakes back into your systems, where they spread. Good data is the cheapest guardrail you have.

Common problems and what they do to AI

The same handful of problems shows up in almost every company, whatever the size or industry. Each one has a predictable effect on an AI system and a fairly standard fix.

Data problemWhat the AI does with itTypical fix
Duplicate customers or suppliersSplits history, matches invoices to the wrong record, gives incomplete answersMatch and merge, then a duplicate check on entry
Outdated documents next to current onesQuotes old prices, policies or proceduresArchive old versions, mark one source as current
Inconsistent fields (units, codes, names)Fails to compare or aggregate correctlyStandard lists and formats, validated in the system
Missing valuesGuesses or skips stepsRequired fields for what the process needs
Scanned files without textCannot read them, or reads them poorlyOCR with quality checks, keep originals
Free text where structure is neededExtracts inconsistentlyStructured fields for key data, free text for notes

One more point belongs here: personal data. GDPR Art. 25 asks for data protection by design and by default, so a cleanup is also a good moment to remove fields and documents the AI does not need, rather than feeding it everything that exists. Check the details with your DPO.

Start with master data

Master data is the stable core: customers, suppliers, products, prices, locations, employees. Almost every AI use case touches it, and errors here multiply across thousands of transactions. Clean the part your first use case reads, not the whole database.

  1. Pick the entities: for invoice matching that is suppliers, items and purchase orders; for a sales assistant it is customers, contacts and products.
  2. Agree on definitions: what counts as an active customer, which address is the billing address, which unit is standard for each product.
  3. Profile the data: count empty fields, inconsistent formats, values outside expected ranges and obvious duplicates.
  4. Fix at the source: correct the records in the ERP or CRM itself, not in a copy that the AI reads.
  5. Lock in the rules: required fields, picklists and validation so new records follow the same standard.

If your customer data still lives across spreadsheets and mailboxes, consolidating it is often the first real step. We describe the signs and the minimum setup in moving your CRM beyond spreadsheets.

Find and merge duplicates

Duplicates are the most common and most damaging problem. They come from different spellings, missing tax IDs, imports from old systems and people creating a new record because searching was harder.

  • Match on strong identifiers first: tax ID, VAT number, registration number, email domain, IBAN.
  • Then on fuzzy signals: similar names, same address or phone number, shared contacts.
  • Review before merging: automatic matching proposes pairs, a person confirms, especially where history and open balances are involved.
  • Keep a merge log: which records were combined and why, so you can trace old references.
  • Prevent new ones: a duplicate check when someone creates a record, with a suggestion of existing matches.

Example

Illustrative example: a 70-person wholesaler

A fictional wholesaler wants an AI assistant that answers “what did this customer buy last year?”. A first test gives incomplete answers. Profiling shows many customers recorded more than once, often with and without the legal-form suffix or with a missing tax ID. The team matches on tax ID first, reviews the fuzzy matches in batches, merges them with a log, and adds a duplicate warning on the customer form. Only then does it rerun the test.

Get documents under control

Assistants that answer from documents, often built with retrieval-augmented generation, depend completely on which documents they can find. If the folder contains five versions of the same procedure, the answer depends on which one the search happens to pick.

  • Decide which document set the AI may use, and leave everything else out of the index.
  • Keep one current version of each policy, price list or procedure; archive the rest outside the search scope.
  • Add simple metadata: owner, valid-from date, department, confidentiality level.
  • Convert scans to searchable text and spot-check the quality, especially tables and numbers.
  • Respect access rights: the AI should only retrieve what the person asking may see.

For incoming documents such as invoices, delivery notes and contracts, the same discipline applies to extraction: validate fields against master data and send mismatches to a person. We cover that flow in AI document processing.

Ownership keeps data clean

A one-off cleanup decays within months if nothing changes in how data is created. The lasting fix is organisational as much as technical.

  • Name an owner per entity: someone in sales owns customer data, someone in purchasing owns suppliers, someone in finance owns price lists.
  • Validate at entry: the system should reject or warn about incomplete or duplicate records, not rely on people remembering rules.
  • Measure a few indicators: share of records with required fields filled, number of open duplicate candidates, documents without an owner. Check them monthly.
  • Fix the process, not just the record: when the same error keeps appearing, find where it comes from.

If you are moving to a new ERP or consolidating systems, this is the moment to do it properly; ERP data migration walks through mapping, cleansing and reconciliation.

A cleanup plan you can start this month

  1. Choose one AI use case and list exactly which data and documents it reads.
  2. Profile that data: gaps, formats, duplicates, outdated documents.
  3. Agree definitions and owners for each entity involved.
  4. Clean in the source systems, starting with duplicates and current versions of documents.
  5. Add validation and duplicate checks so new data meets the standard.
  6. Test the AI use case again on the cleaned data and compare results.
  7. Set up a monthly check of a few quality indicators.

Sometimes the cleanup shows that the system itself makes good data hard to keep, for example because it allows free-text customers or has no validation. In that case, small changes or custom ERP modules can fix the cause rather than the symptoms. To talk through your data before an AI project, talk to us.

General information, not legal, tax or investment advice.

FAQ

Questions people ask

Clean enough for the specific use case, not perfect everywhere. Focus on the records and documents the AI reads, remove duplicates and outdated versions, and make sure key fields are filled consistently. Then test the use case and fix what the errors point to.

AI can help a lot by proposing duplicate matches, classifying records and flagging inconsistencies. It should not merge or delete records unsupervised, because mistakes are hard to undo. Use its suggestions as a worklist that a person approves.

Master data is the stable core information about customers, suppliers, products, prices and locations that transactions refer to. AI systems use it to match, look up and decide, so errors in master data turn into errors in every answer or action built on it.

How we can help

Services related to this article

Read next

Want to apply this to your company?

Tell us which process slows you down. We reply within one business day with questions or a first idea of how we'd approach it.