1/36
Part 1 of 5 · The prompt and the labelsLearn

Design search ranking for a stays marketplace

Design the search ranking system for a marketplace of short-term stays. A guest picks a destination or drags a map, sets dates and a guest count, and we show a page of homes. There's no keyword, so we can't match text. How would you decide what goes at the top?

Candidates report this question at Airbnb and OpenAI. Each line here is one report, not a rule:

  • One senior onsite at Airbnb covered search ranking without text queries (1 report). A prep bank lists that question as "Design a home-search ranker without query text" (1 source).
  • Another Airbnb loop asked for user embeddings with two-stage retrieval and ranking (1 report). Its interviewer "really dug into position bias" (1 report).
  • One OpenAI candidate got the general version in a phone screen, a recommendation and search design question (1 report).

You start with what the query holds and with the label, the thing the model learns to predict, because the label shapes everything after it. Then come the numbers, retrieval, ranking, position bias, evaluation and cold start, in the order you present them in the round. NDCG and propensity weighting come from the ranking metrics lesson, and the back-of-envelope numbers from the design method lesson.

It ends on a mock interview that runs in the order of a 45-minute round.