ArticlesEngineering
Why product matching fails: twelve ways, with examples
Tying a line of a customer’s order to one product in a catalogue sounds like a lookup. On real orders it fails in a dozen distinct ways, and most of them are not errors in the line. This is the list Tarvyx was built against, with what a careful system does in each case.
The line is incomplete
Nothing is wrong with the line. Something is missing from it, and the missing thing decides the product.
Failures
- 1. The size family. “Mask Depp” when the mask exists in 250 ml and 500 ml. The best cosine match is one of the two, at random; a naive system picks it and ships the wrong bottle.
- 2. Pack or piece. “24” against a product sold in boxes of 24. One box or 24 boxes, 552 pieces apart, and the ERP accepts either.
- 3. Pack fraction. “30 pieces” of a box-of-24 product. Neither 1 nor 2 boxes is right.
- 4. The maker is silent. “Hydrating shampoo 300” with three makers of hydrating shampoo in the catalogue and nothing in the line to choose by.
What a careful system does
- Treats the size as part of the product; a line with no size and several sizes is held, and the buyer is asked which, in their own chat, with the sizes as buttons
- Holds a pack-or-piece line with that question attached; never converts on a guess
- Flags a quantity that does not divide into whole packs instead of rounding
- Reads the maker from the order’s header or from the customer’s history when the line does not say; otherwise suggests, never applies
The words are not the catalogue’s words
The customer writes their own language, alphabet and spelling. The catalogue has one of each.
Failures
- 5. Two alphabets in one line. “Депп маска” and “Depp mask” are one product; half the lines in our cosmetics corpus mix Cyrillic and Latin in a single line.
- 6. The typo is in the one word that matters. “Mask beep 250 ml” for “Mask Depp 250 ml”. Every other word is shared with two sibling products, so similarity ranks the right one third.
- 7. Synonyms across languages. “зволоження” for HYDRATION, “восстанавливающий” for REVIVE; text similarity cannot cross a translation.
- 8. A quoted catalogue name with the buyer’s own punctuation and a size appended in the customer’s unit.
What a careful system does
- Folds both alphabets to one before comparing, so a transliterated brand is the same token
- Reranks only on a token that appears exactly in no candidate, within one edit, and only when exactly one candidate is implicated; otherwise leaves the order alone
- Asks a language model to choose among the five candidates similarity already found, never to search; of 18 lines that missed, the right product was in the top five in 17
- Learns the buyer’s wording as an alias after an operator confirms it, so the second order resolves directly
Two facts in the line disagree
The hardest group, because the line looks perfect to a system that reads one fact.
Failures
- 9. The code and the words name different products. A transposed digit seats the wrong product at a perfect score, clears every threshold and leaves through auto-approve.
- 10. The maker named in the line is not the maker of the matched product. “Olorchee lotions” matched to another brand’s lotion because the brand word was treated as noise.
- 11. The message is not a new order. “Add these six to yesterday’s order” has six real lines, a customer and an address: by every structural measure a new order.
- 12. Colour is the identity. For some makers white and black are different SKUs; for others colour is a variant. The same line means two different things in two catalogues.
What a careful system does
- Checks whether the code’s product and the buyer’s words agree, by meaning, and caps a disagreement at “suggested” without dropping the code
- Restricts the search to the maker the line names, before similarity runs, not after
- Reads the message’s own claim that it continues an order and withholds unattended approval; merging is a person’s decision
- Treats colour as identity per category, as the catalogue says, and caps a near miss on the wrong colour
The principle behind all twelve
An applied line reaches the ERP; a held line reaches a person. The cost of the two errors is not symmetric.
Hold rather than guess
- A wrong applied line ships goods and costs a credit note; a wrongly held line costs one click
- Every rule above is a refusal: it may hold, ask or cap, but it may never add a product the search did not find
- Confidence is withheld at one place, so a new rule inherits it instead of re-implementing it
- The share of orders that reach a person is measured, published and accepted: see what we measured
Questions about matching failures
What is the single most common matching failure?
A product that exists in several sizes under the same name, ordered without a size. Nothing in the line is wrong; it is incomplete, and the right answer is a question to the buyer, not a guess.
Why not let the AI decide the hard cases?
Because an applied line goes to the ERP, and most ERP connections cannot take it back. A language model is excellent at choosing between candidates when the answer is in the words, and it is a coin toss when the answer is not in the words at all. The job is to tell those two situations apart, and hold the second.
Does matching get better over time?
Yes, in two ways. A correction an operator makes is remembered as an alias for the customer’s wording, and a buyer’s answer to a size question is remembered as their usual size. Both make the next order with the same wording resolve directly.
Is this specific to cosmetics and furniture?
The examples are, because that is where it was measured. The failure types are not: size families, pack-or-piece, mixed scripts, typos in the one distinguishing word and code-versus-words disagreements exist in any catalogue where one name covers several items.
Bring the lines that fail for you
Twenty minutes with real orders from your inbox, and we show which of the twelve each one hits.
Order desk with ~200 orders a month or more? Ask about the free pilot
- Your own orders, not a demo file
- No change asked of a single customer
- 20–30 minutes, on orders like yours