Code RoomLearning-to-rank feature assembly
HardPrep Room Coding #3451

Learning-to-rank feature assembly

System designML systemsSenior–Staff~50 min

Design the *serving* path for a learning-to-rank (LTR) model in product search: a query retrieves up to 2,000 candidate items, and for each you must assemble a ~150-dimensional feature vector (query-item features, item features, user-item features), score all 2,000 with a gradient-boosted tree (or small DNN), and return the top 24 — all in under 120ms p99 at 30k searches/sec. Focus on feature assembly and consistency, not on training the model. How do you avoid the feature vector being slow or *different* from what training saw?

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.