Design Dish-Level Search Ranking for Uber Eats Queries

Last updated: November 29, 2026

Quick Overview

Design the ranking system that returns stores and specific dishes when an eater types a query like 'spicy ramen' or 'gluten free pizza' in Uber Eats search.

Uber
ML System Design
Machine Learning Engineer
Uber
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Medium

0

0

0 solved


Design the ranking system that returns stores and specific dishes when an eater types a query like 'spicy ramen' or 'gluten free pizza' in Uber Eats search.

Search drives a large share of Uber Eats orders, and queries often name dishes or attributes rather than restaurants, which makes it a natural ML design prompt in Uber's loop. Interviewers check query understanding, hybrid retrieval over menus, learning to rank with delivery signals and multilingual handling.

What the Interviewer Expects
  • Clarifies query types (store name, cuisine, dish, attribute) and success metrics
  • Proposes hybrid lexical plus semantic retrieval over store and menu item indexes
  • Designs a learning-to-rank model with query, item, eater and delivery features
  • Handles misspellings, multiple languages and dietary attributes
  • Covers evaluation offline and online
Key Topics to Cover
search ranking
query understanding
hybrid retrieval
learning to rank
embeddings
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 get relevance labels beyond clicks?
  • How would you handle a query with no matching dish nearby?
  • How do you rank a store versus a single dish result?
  • How would you support a new market with a new language?
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

Return a ranked list mixing stores and dishes for a query within about 200 ms. Primary metric: search conversion (orders per search session); also null-result rate, reformulation rate and time to orde...

High-Level Design
  1. Query understanding: spell correction, language detection, and a classifier that tags intent (store navigation, cuisine, dish, attribute such as vegan). An entity extractor maps 'gluten free' t...

Submit Your Answer
Markdown supported