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 problem | What the AI does with it | Typical fix |
|---|---|---|
| Duplicate customers or suppliers | Splits history, matches invoices to the wrong record, gives incomplete answers | Match and merge, then a duplicate check on entry |
| Outdated documents next to current ones | Quotes old prices, policies or procedures | Archive old versions, mark one source as current |
| Inconsistent fields (units, codes, names) | Fails to compare or aggregate correctly | Standard lists and formats, validated in the system |
| Missing values | Guesses or skips steps | Required fields for what the process needs |
| Scanned files without text | Cannot read them, or reads them poorly | OCR with quality checks, keep originals |
| Free text where structure is needed | Extracts inconsistently | Structured 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.
- Pick the entities: for invoice matching that is suppliers, items and purchase orders; for a sales assistant it is customers, contacts and products.
- Agree on definitions: what counts as an active customer, which address is the billing address, which unit is standard for each product.
- Profile the data: count empty fields, inconsistent formats, values outside expected ranges and obvious duplicates.
- Fix at the source: correct the records in the ERP or CRM itself, not in a copy that the AI reads.
- 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
- Choose one AI use case and list exactly which data and documents it reads.
- Profile that data: gaps, formats, duplicates, outdated documents.
- Agree definitions and owners for each entity involved.
- Clean in the source systems, starting with duplicates and current versions of documents.
- Add validation and duplicate checks so new data meets the standard.
- Test the AI use case again on the cleaned data and compare results.
- 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.