Design an LLM Pipeline to Normalize Seller Product Attributes

Last updated: November 29, 2026

Quick Overview

Third-party sellers submit listings with messy, inconsistent attributes ("16 oz", "1 pound", "Pack of 2 x 8oz"). Design an LLM-based pipeline that extracts and normalizes structured attributes across millions of listings, at controlled cost and with measurable accuracy.

Amazon
ML System Design
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Medium

0

0

0 solved


Third-party sellers submit listings with messy, inconsistent attributes ("16 oz", "1 pound", "Pack of 2 x 8oz"). Design an LLM-based pipeline that extracts and normalizes structured attributes across millions of listings, at controlled cost and with measurable accuracy.

An LLM system design question in the style of Amazon Catalog quality teams. The interviewer checks whether you combine cheap deterministic parsing with model extraction, validate outputs against a schema, route low-confidence results to humans, and manage cost at catalog scale.

What the Interviewer Expects
  • Defines a schema per product type with allowed units and values
  • Uses rules first and the LLM only where needed
  • Validates and canonicalizes model output deterministically
  • Estimates confidence and routes uncertain cases to review
  • Builds a labeled evaluation set per attribute
  • Controls cost through batching, smaller models, and caching
Key Topics to Cover
structured extraction
schema validation
confidence routing
cost optimization
catalog quality
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How do you handle conflicting values between title and bullet points?
  • How would you detect drift when sellers change how they write listings?
  • When would you fine-tune a small model instead of prompting a large one?
  • How do you prevent sellers from gaming extracted attributes?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
M
  • Input: title, bullet points, description, seller-provided attributes, product type.
  • Output: normalized attributes per product type schema, for example net weight in grams, pack count, color from a...
L
  1. Schema registry: attributes per product type with types, units and allowed values.
  2. Deterministic extractors: regex and unit parsers handle easy cases ("16 oz" to 453.6 g). About half of ...

Submit Your Answer
Markdown supported