Design User Embedding Semantic Search
AirbnbMachine Learning Engineer · OnsiteLast updated
This question evaluates competency in ML system design for recommendation and semantic retrieval, covering user and listing representation learning, two-stage retrieval and ranking architectures, training objectives and label design, bias correction from interaction logs, and evaluation and experimentation practices.
Design a user-embedding-based two-stage semantic retrieval and ranking system for a short-term rental marketplace. The goal is to retrieve and rank property listings that a user is most likely to book, while maximizing booking conversion and long-term user satisfaction.
Address the following:
- Overall retrieval and ranking architecture.
- How to build user embeddings.
- How to build listing embeddings.
- Training objectives and labels.
- How to combine semantic relevance with business objectives.
- How to handle position bias in click and booking logs.
- Evaluation, experimentation, and monitoring.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.