Shopify discusses the system architecture and engineering challenges involved in using Large Language Models to standardize inconsistent product options and recover missing catalog data across millions of merchant storefronts to improve AI shopping experiences.
Read original on Shopify EngineeringIn a massive multi-tenant e-commerce platform like Shopify, merchants define product variants using custom and arbitrary labels. Variations like Color, Colour, or Style introduce schema drift and semantic ambiguity, making it difficult for downstream AI shopping assistants and recommendation engines to aggregate and compare products uniformly at scale.
To reconcile messy metadata without disrupting existing merchant workflows, Shopify engineered an asynchronous ingestion and processing pipeline. This system leverages LLMs to interpret semantic meanings, map disparate option names to a unified taxonomy, and impute missing attribute choices.
Trade-off: Latency vs. LLM Accuracy
Running real-time LLM inference on every catalog update introduces high latency and cost. The architecture separates synchronous catalog writes from asynchronous AI enrichment pipelines, ensuring merchant admin panels remain performant.
Want the fundamentals behind stories like this? Take the free System Design Academy course with certificate.