Certainty before similarity
An EAN is an EAN. If the customer sent one, there is nothing for a model to decide. The same is true for a SKU or a customer-specific code. That is why the first layer is a normalized exact comparison, and why it runs before anything that could produce a plausible but wrong answer.
Normalization is deliberately boring: case folding, accent removal, separator removal, canonical units. Boring is auditable. When a match is wrong, you can replay the exact string operation that produced it.
Where fuzzy matching earns its place
Trade language is abbreviated and inconsistent. Trigram similarity and token overlap handle “junction box IP54” against “Boxes IP54 100x100” without needing semantic understanding. They are capped below the auto-accept threshold because similarity is not identity.
The semantic layer exists in code and will produce candidates only when embeddings are populated by a local worker. Until then it is skipped and the API says so. An honest “not available” is more valuable than a simulated score.
The feedback loop is the real feature
Every correction writes an alias scoped to the customer and, when a code was present, an identifier on the product. The next request in the same language resolves without review. That is how accuracy improves without retraining a model.