KatInterview

Ranking Property Listings When There Is No Search Query

Machine LearningModel answer
HardModel answerMachine Learningrankingrecommendationpersonalization

Last updated

Design an ML ranking system for a short-term rental platform where candidates are pre-filtered and there is no free-text query to match against.

Ranking Property Listings When There Is No Search Query

You are building a ranking model for a property rental platform. A user opens the search page, sets filters (location, dates, party size, price range), and the system returns a pre-filtered set of eligible listings. Your job is to rank that candidate set — not to generate it, not to filter it further, and not to match against listing descriptions with a query embedding, because there is no free-text query.

The ranked list drives a significant share of bookings, so both the quality of the ranking and the integrity of the evaluation matter.

What you can assume

  • An upstream retrieval and availability system has already produced the eligible candidate set. Assume availability can still change between ranking and booking.
  • Contextual signals such as dates, party size, location, selected filters, and session-level behavior are available at serving time.
  • User history (past searches, views, bookings) is available subject to standard privacy constraints.
  • Listing attributes (price, property type, amenities, photos, host metrics, review statistics) are available.
  • There is no predefined traffic or latency budget — state your assumptions.

Clarifying questions worth raising

  • Is the primary conversion event a completed booking, a meaningful engagement (e.g. contact or checkout start), or a trip-level outcome like a five-star stay?
  • Are candidates guaranteed to satisfy hard constraints at the time of ranking, and how stale can that guarantee become?
  • How much history exists for newly listed properties and first-time users?
  • Are there business rules — host contracts, promoted listings, diversity requirements — that must be respected independently of the ranker score?

Part 1 — Training data and features

Describe how you would construct training examples and labels from logged data. Cover:

  • What constitutes a positive and a negative example, and what label you would use.
  • How position bias and exposure bias affect your labels and what you would do about it.
  • Which features you would include for the listing, the user, the context, and cross-signal interactions — and how you would handle entities with little or no history.

Part 2 — Model architecture and serving

Propose a baseline and a stronger production model. Describe the full online scoring path. Cover:

  • Why your chosen objective aligns with the product goal, not just a proxy metric.
  • How features are fetched, how missing values are handled, and what the fallback ranking is if the model fails.
  • How the ranker score interacts with hard eligibility rules and business constraints.

Part 3 — Offline and online evaluation, and regression debugging

Explain how you would evaluate the ranker before launch and after a live regression. Cover:

  • Which offline ranking metrics you would use and why, and how you would construct the evaluation set to avoid leakage.
  • What guardrails you would put on an A/B test to prevent a click-rate gain from hiding a booking or quality regression.
  • How you would diagnose a sudden drop in a key metric after a model update — walk through the likely causes systematically.

Hints

Hint 1

Start by pinning down the product objective before touching labels or features. A ranker optimized for clicks and one optimized for completed bookings can have opposite effects on long-term revenue and guest satisfaction — make that trade-off explicit early.

Hint 2

Position bias is the central data problem here. Listings shown at rank 1 are clicked far more than rank 10 regardless of quality. If you ignore this, your model learns to perpetuate the current ranking rather than improve it. Think about how inverse propensity weighting or a two-tower with position as a feature addresses this.

Hint 3

Cold start hits two entities at once — new listings have no booking history and new users have no preference history. Treat them as separate problems: for listings, fall back to content features and host-level aggregates; for users, lean on session context and population-level priors. Spell out the feature fallback chain explicitly.