← Questions
Semantic search with user embeddings
0
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI/ML design interview question asked in Airbnb's system design round, last asked Apr 2026. It tests embeddings, search and personalization.
Design two-stage retrieval and ranking for a short-term rental marketplace that uses embeddings of users and of listings. The goal is to show the listings a user is most likely to book, maximizing booking conversion and long-term satisfaction, not just clicks.
Requirements
- Functional: retrieve candidate listings for a user's search (destination, dates, guests, filters), rank them, and personalize using the user's history.
- Non-functional: low search latency over millions of listings; fresh availability and prices; fair exposure for new listings and hosts.
Clarifying questions
- What is the main metric: bookings, booking value, guest satisfaction after the stay, host cancellations?
- How much history do typical users have? Many search rarely.
- Which hard filters (dates, price, location) must retrieval respect?
- What business goals besides relevance must ranking honor?
What a strong answer covers
- Architecture: a candidate stage (embedding nearest-neighbor search within the destination and filters, plus other sources) feeding a heavier ranker.
- User embeddings: from sequences of viewed, saved and booked listings, short-term (this session) and long-term, plus user attributes; cold start for new users from query and context.
- Listing embeddings: from co-viewed and co-booked sessions (skip-gram style), content (text, photos, amenities, location), cold start for new listings from content.
- Training objectives and labels: bookings as positives, clicks as weaker positives, impressions without clicks as negatives, hard negatives from the same market, and the problem of host rejections.
- Combining relevance with business goals: price, quality, host reliability, diversity and exposure for new listings in the ranker or a re-ranking step.
- Position bias in logs: position as a feature removed at serving time, inverse propensity weighting, randomized slots.
- Evaluation: offline NDCG and recall at k on held-out bookings, online A/B tests on bookings and post-stay ratings, monitoring for embedding drift.
Follow-ups
- A user searches a city they've never visited. What do their embeddings contribute?
- Embeddings are retrained and the vectors shift. How do you avoid breaking retrieval?
- How would you include price sensitivity without showing only cheap listings?
Where it's asked
- Airbnb · System design · Last asked Apr 202660 min · Design discussion
What it tests
embeddings · search · personalization
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
