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
November 29, 20260
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
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- 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 ProblemsSample 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
- 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...