If agents consume messy merchant data, option names and values must be normalized first. This shows how Shopify uses LLMs to standardize product options at catalog scale so shopping agents can compare variants reliably.
Key takeaways · AI-distilled
Shopify resolves an option's attribute before its values: the Large language modelA model trained on large amounts of data to process and generate language.Full definition → sees the product category, observed values and existing taxonomy, then reuses, proposes or rejects. The attribute fixes the value type, so a package weight is read as a number and unit, not a label.
To merge duplicate proposals at scale, Shopify uses text embeddingA list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.Full definition → only to retrieve candidate matches and an LLM to judge equivalence. Interior Color and Lining Color can merge on a bag, while Strap Color keeps its distinction because it describes another part.
Four LLM judges review taxonomy additions for attribute precision, attribute uniqueness, value precision and value uniqueness. Shopify calibrationHow well a model's confidence matches reality — a calibrated model saying "90% sure" is right about 90% of the time.Full definition → them on taxonomist and annotator decisions and says they matched expert taxonomists' quality in its evaluations.
Option Mining targets 'option collisions', such as a store listing each shoe color separately with Size as the only option. An LLM compares related listings and recovers Color from evidence like a merchant metafield; a distillationTraining a small, cheap model to imitate a big one's outputs, keeping much of the capability at a fraction of the cost.Full definition → student model keeps this affordable at scale.
Shopify reports the Build pipeline expanded its taxonomy to 2.5x as many attributes and 3.6x as many values, and that its option judges reach 90% to 95% agreement with human labels depending on the judge.
Terms in this piece · Glossary
Large language model — A model trained on large amounts of data to process and generate language.
embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.
calibration — How well a model's confidence matches reality — a calibrated model saying "90% sure" is right about 90% of the time.
distillation — Training a small, cheap model to imitate a big one's outputs, keeping much of the capability at a fraction of the cost.