Design Visual Search That Matches a Room Photo to Catalog Products

Last updated: November 29, 2026

Quick Overview

Design an ML system where a shopper uploads a photo of a room or a piece of furniture they like and gets visually similar products from Wayfair's catalog, with results that respect price, availability and category filters.

Wayfair
ML System Design
Machine Learning Engineer
Wayfair
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design an ML system where a shopper uploads a photo of a room or a piece of furniture they like and gets visually similar products from Wayfair's catalog, with results that respect price, availability and category filters.

Furniture is bought on looks, and Wayfair offers search by photo so shoppers can find a sofa like the one in a picture. This ML design round checks whether you can cover detection, embedding training from catalog and user signals, approximate nearest neighbour retrieval, re-ranking with business constraints, and evaluation.

What the Interviewer Expects
  • Detects and crops multiple objects in a room photo
  • Trains embeddings with metric learning on catalog and behavioral pairs
  • Uses an ANN index with per-category partitioning or filtering
  • Re-ranks with availability, price and popularity
  • Defines offline and online evaluation metrics
Key Topics to Cover
object detection
metric learning
ANN retrieval
re-ranking
domain shift
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
  • Catalog photos are clean studio shots and user photos are messy. How do you bridge the domain gap?
  • How do you index 1 million new SKU images a week without full rebuilds?
  • How would you let a shopper say 'like this, but in green'?
  • How would you detect and handle duplicate listings of the same product from different suppliers?
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
Requirements

Input: one photo, optionally a tapped region. Output: top 20 in-stock products per detected object, under 500 ms end to end. Catalog: tens of millions of SKUs with several images each. Success: click-...

High-Level Design
  1. Detector (fine-tuned DETR or YOLO-style) finds furniture objects and predicts category (sofa, lamp, rug).
  2. Embedding model maps each crop to a 256-d vector; the same model embeds catalog ...

Submit Your Answer
Markdown supported

Related Questions