Why Literal Matching Misses Records, and How to Evaluate the Fix
A query goes out. The system returns twelve contracts under the full registered name, four support tickets under the abbreviation, and seven email threads under a name nobody recognized as the same organization. No error
A query goes out. The system returns twelve contracts under the full registered name, four support tickets under the abbreviation, and seven email threads under a name nobody recognized as the same organization. No error is raised. Latency is fine. Every row returned is a genuine match for the string that was searched. From the system's point of view, the job was done correctly.
From the person's point of view, most of the history is missing.
This is the failure mode worth unpacking. It is not a bug in matching. It is a consequence of assuming that a string is an object.
Names are not identifiers
A customer appears in an archive under several names, each produced by a different process. The contract carries the registered name because legal required it. The ticket carries the abbreviation because that is what the account team says. Older files carry the pre-rename name because nobody rewrote them. Somewhere there is a nickname that exists in one person's notes.
To a literal matcher these are four unrelated strings. It stores them in four places, searches them independently, and returns four tidy result sets. Nothing is corrupted. The records are simply never assembled.
The scale of the problem rules out fixing it by memory. IDC puts worldwide data at roughly 149โ180 ZB in 2024 and projects 394 ZB by 2028, with 80โ90% of it unstructured. Contracts, email, tickets and meeting notes have no fixed shape, and as the pile grows, so does the number of ways to write the same name. A person can hold a handful of equivalences in their head. They cannot hold thousands.
There is a second complication that tends to get ignored in design reviews. Even when a record is found, it may be the wrong version. A global survey by M-Files and Vanson Bourne found that 96 percent of employees struggle to find the latest version of a document, and that 83 percent have recreated a document because they could not find an existing one. Now put name fragmentation on top: the latest version of a contract may be filed under one spelling while the earlier one sits under another. The search problem and the version problem multiply each other.
The three metrics that matter
The claim "our knowledge base treats variants as one" is not testable as stated. What is testable is a small set of countable outcomes. In practice three are enough to start.
Recall of variants. Pick objects you know have several names. For each, assemble the complete set of records by hand โ the slow way, by reading. Then run one lookup using a single name and record how many of the expected records come back together. The number to watch is the proportion recovered in one pass, not whether any result at all was returned. A system that finds the contract but misses the tickets has technically answered the query and practically failed it.
Build the set from real material, including the awkward spellings: abbreviations, older names, hyphenated and unhyphenated forms, names with punctuation that people drop in conversation. Keep the set fixed so the same run can be repeated after a change. The public research in this area is easy to find โ a quick search will turn it up โ if you want the broader context.
False-merge rate. Now introduce the opposite case. Take two genuinely distinct organizations with similar names and search for each. Count how often records from one appear under the other. This metric is the counterweight to recall, because a system can score well on the first by grouping aggressively โ folding anything that looks close into one bucket. That behaviour produces confident, comprehensive, wrong answers. In most operational settings a false merge costs more than a missed record, because the wrong record looks exactly like the right one once it has been grouped.
Include the nasty cases on purpose: two suppliers whose abbreviations are identical, a company and its former subsidiary, two regional entities sharing a parent brand. These are where aggressive grouping reveals itself.
Human-escalation rate. The third metric measures what happens when evidence is thin. Take a set of pairs where the correct answer is genuinely uncertain โ a single ambiguous short name and no connecting detail โ and count how many are passed to a person rather than resolved automatically. You want a number that is neither zero nor one. Zero means the system is guessing on cases where nobody could know. One means it is asking a person to do everything, which is just manual work with extra steps.
Record the reasons alongside the count. An escalation that says "insufficient evidence" is useful. An escalation that offers no reason is a dead end, because the reviewer cannot tell what to check.
Failure boundaries to document
No connecting clue. Two documents carry a vague abbreviation and little else, with nothing that ties them to a full name. There is no basis for a decision, and no amount of processing will manufacture one. The correct behaviour is to flag the pair, not to guess.
Colliding nicknames. Two distinct organizations use the same short form in different contexts. Without context in the material, a merge is a coin flip. This is a classic false-merge source and belongs in every test set.
Renamed and reorganized entities. A company splits, merges or changes its name, and the historical records straddle the boundary. Whether those records belong to one object or two depends on the question being asked, not just on the documents. That is a policy decision and should be escalated.
Sparse or damaged material. A scan that dropped the name field, a ticket that recorded a first name and nothing more, an email thread with the subject line stripped. These cases look like ordinary records until you try to group them. They should be counted separately so they do not distort the other two metrics.
A system that performs well on clean material and quietly degrades on these boundaries will pass a demo and fail an audit. The test set decides which one you get.
What capability looks like at the user level
Setting aside how any of this is built, there are four behaviours a team can reasonably ask for. Different name variants are recognized as one object, so the scattered records come together under a single history. A wrong merge can be split apart when someone spots it โ because with real data, someone will. Cases without enough evidence are routed to a person instead of being resolved with a guess. And the capability sits inside the AI tools the team already uses, so adopting it does not mean relocating where people ask questions.
The knowledge base we work on at UglyPear Data has recently gained these behaviours. The important part, from an evaluation standpoint, is that each one produces an observable outcome. Recognition changes recall. Splitting changes the false-merge rate. Escalation changes the human-escalation rate. Workflow fit changes whether the whole thing is used on a busy day. If a capability cannot be tied to something you can count or observe, it is worth treating as a claim rather than a feature.
Dimensions to evaluate
The table below is a framework, not a ranking of products. It gives you dimensions to apply to any candidate, including an internal build.
| Dimension | Question to ask | What to look for |
|---|---|---|
| Variant recall | How much of a known record set returns in one lookup? | Repeatable measurement on a fixed set of real objects |
| False-merge rate | How often do distinct neighbors get folded together? | Deliberate collision cases in the test set |
| Human escalation | What happens when the evidence is thin? | A non-zero rate with a stated reason for each case |
| Reversibility | Can a wrong grouping be undone? | A split path that does not require rebuilding the archive |
| Workflow fit | Where do people actually ask their questions? | The capability available in existing tools, not a new destination |
| Boundary transparency | Are the failure cases visible? | Damaged and sparse material reported separately rather than averaged in |
Read the rows as questions to take into a trial, not as scores. The numbers you get will depend on your material, and that is the point: a framework you can run yourself is more useful than a rating you cannot reproduce.
Closing note
Literal matching is not careless engineering. It is the correct behaviour for a simple contract: same string, same record. It stops being correct the moment the archive contains more spellings than anyone can track, which is to say almost immediately.
The fix is not a cleverer matcher alone. It is a system that groups, allows itself to be corrected, asks for help when it should, and stays where the work already happens. Evaluate those four things with a fixed set of real questions and you will learn more in an afternoon than any feature list can tell you.
| Author: Guangzhou UglyPear Data Technology Co., Ltd. | Website: https://www.uglypear.com |
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.