AI data extraction: reading is only the start
Files arrive in every shape. One supplier sends a forty-column Excel file, another a scanned PDF, a third three lines in an email with a screenshot. Someone on the team retypes it all into the ERP or a shared spreadsheet.
AI data extraction tools promise to end that retyping. When it comes to reading, they often deliver. But a project is won or lost elsewhere, once the line has been read.
What can AI really do with your documents?
A recent language model reads documents that no template could handle. It understands that a “Ref.” column from one supplier and an “Item code” column from another mean the same thing. It reads a table in a PDF, a list in a message, a price on a screenshot, in French, English or Spanish.
Where it is weaker:
- calculations, even simple ones, across thousands of lines
- consistency, when given the same file twice
- admitting doubt, because it would rather give a plausible answer than say “I don’t know”
These are the three weaknesses a project has to deal with, and none of them goes away by switching models. They are handled in how the tool is built.
Why reading is not enough: matching against your reference data
A line that has been read is only useful once it is tied to an item in your reference data, whether that lives in your ERP or in your product database. Tool comparisons tend to skip this step, and it is the hardest one.
Take a building materials distributor receiving price lists from its suppliers. “Porcelain tile 60x60 grey” and “Porcelain tile 60x60 grey rectified” differ by one word. They are not the same product, and not the same price. A match that is too loose skews everything downstream.
To match a line, the order is nearly always the same:
- the exact code when there is one (EAN, a known supplier reference)
- the description, the dimensions and the packaging
- a person who decides, when doubt remains
What that person decides is recorded. Next time, the same description from the same supplier is matched automatically.
Four rules for reliable data
The model reads, the code calculates
AI extracts values: a code, a quantity, a price, a currency. Anything that has to be exact, such as a conversion, a total, a margin or a comparison, is then computed by code. Code gives the same result every time, and it can be tested.
When in doubt, a person decides
Every match carries a confidence level. Above a threshold, the line goes through. Below it, the line waits in a review queue, and the person reviewing it sees the original line. The team does not reread the whole file, only what raises a question.
The source line stays one click away
Behind every figure on screen, you should be able to find the file, the sheet and the line it came from. That is what lets people trust the tool. When a price looks odd, you open the source in one click instead of searching your inbox.
An outlier is set aside, not deleted
A price twelve times too high often comes from a per-carton price read as a unit price. The tool leaves it out of the calculations, but the line stays visible, with the reason it was set aside. Nobody finds out three weeks later that a value vanished without explanation.
Where does your data go?
This is often IT’s first question, and it is settled before a line of code is written. For each type of document, you need to know what the tool reads, which service it sends it to and where the result is stored.
Two options cover most cases:
- A model reached through an API, such as Anthropic’s Claude. Anthropic states that by default it does not use data sent through its API to train its models. It is the simplest way to start.
- An open-source model hosted in-house, when some data must not leave your infrastructure. It takes more tuning.
Both can live in the same tool. For example, supplier price lists go through the API and customer data is handled by the in-house model.
From clean data to decision support
Once the lines have been read, matched and checked, they feed a single database. The team no longer has to look for information across ten files.
In practice, that means:
- one consolidated view per item, whatever the source
- alerts when a value changes or leaves its usual range
- a recommendation with figures and sources, which a person approves or corrects
No recommendation is applied without that approval. The tool prepares, the team decides.
We apply these rules to our own tools. Our vulnerability monitoring matches every CERT-FR advisory (the French government’s computer emergency response team) against the inventory of our servers and our clients’ servers. When an advisory affects a version in use, a task is created the same day. It lists, server by server, what is affected and the patched version to install. We decide ourselves whether to act, and when.
On client projects, for example, we generated a home appliance brand’s PDF product sheets from a 366-column Excel file, with changes highlighted from one version to the next. For a B2B wholesaler, we run an API that serves a catalogue whose prices depend on each reseller’s group.
Where should you start?
The best starting point is a month of real files, not a clean sample file. The difficulties are in the exceptions: the supplier who changes format, the merged column, the PDF scanned at an angle.
Then:
- agree in writing with the team on what counts as a correctly handled line, and what must wait for review
- measure the error rate on a sample checked by hand, before opening the tool to everyone
- run the tool for a few weeks alongside the current Excel file, to compare
- only write to the ERP once that comparison is satisfactory
A single exception can block everything. The online store of the home appliance brand mentioned above sends its orders to the ERP three times a day. One day, an order had a line that matched no product in the catalogue. That order made the export fail every time it ran, and for two days no order reached the ERP. The export now processes each order separately. An order that fails is set aside and flagged for manual entry. The others reach the ERP as before.
Frequently asked questions
What is the difference between OCR and AI data extraction?
OCR turns an image into text. AI extraction understands what the text means: which column is a price, which line is a product, which currency applies. The two are often combined, OCR for scans and the model for interpretation.
Can AI replace manual data entry into the ERP?
For most lines, yes, provided they are matched against reference data and checked by code. Only doubtful lines are reviewed and approved by a person.
Can you use AI without your data leaving the company?
Yes, with an open-source model hosted on your servers or in your cloud. You can also reserve that in-house model for sensitive data and use an API for the rest.
Off-the-shelf software or a custom tool?
Off-the-shelf software works when the document is standard, like an invoice. As soon as lines have to be matched against your own reference data, follow your review rules or feed a decision, a custom tool connected to your systems becomes easier to adapt over time.
We build this kind of tool, from the file received to the approved decision. What we build is described on our custom AI development page, and how we use AI in our own work on the AI method page. The same rules hold for automation without AI, as we explain in why automate your business processes.
Receiving files that someone retypes every week? Let’s talk.