181. Design E-commerce Search Ranking
Rank 100 M products for a shopper’s query: BM25 plus semantic retrieval, LambdaMART on graded labels, position bias and revenue trade-offs.
Start with a template. Work through each step. Ask Coach when you need a second opinion.
Company tags are community-reported. Counts on cards show how many people reported that design.
Rank 100 M products for a shopper’s query: BM25 plus semantic retrieval, LambdaMART on graded labels, position bias and revenue trade-offs.
Suggest completions on every keystroke in tens of milliseconds, ranked by the chance of a pick: a prefix index, a learning-to-rank model with context, fresh trends, safety filters and generation for unseen prefixes.
Recommend 25 of 15 million open jobs so members apply and posters answer: a two-sided score, GLMix personal effects, two-tower retrieval, application redistribution and fairness, on one-hour boards for three levels, with theory.
Decide which pushes and emails 400 M users get, when and how many: P(open) with a cap, a value model that prices unsubscribes, weekly budgets, send-time choice and uplift: one-hour boards for each level, with the theory.
Rank the stores that can deliver now by the chance of an order: session labels, live ETA and supply features, a multi-task ranker, new-merchant exploration, switchbacks: one-hour boards for junior, senior and staff, with theory.
Suggest creators to follow on a one-way graph of 40 billion edges: random walks and SALSA, follow communities, two-tower retrieval and a ranker for follows people keep; one-hour boards for junior, senior and staff, with theory.
Detect emerging topics per place within minutes from 500 M posts a day: sketches, seasonal bursts on distinct authors, events, spam and campaign filters: one-hour boards for junior, senior and staff, with the theory.
From millions of ads to one slot in 100 ms: boolean targeting, two-tower retrieval, calibrated pCTR and pCVR with late conversions, a second-price auction and pacing: one-hour boards for junior, senior and staff, with theory.
Build each member's homepage: which rows, their order, the titles and the image on each, for 100 M daily profiles. Row generators, a greedy page builder, 2D position bias, artwork bandits with replay, at three levels.
Score every card payment in under 100 ms and allow, challenge, review or block it: late, biased labels, velocity features, calibrated trees, actions priced in dollars, rings and adversaries: one-hour boards at three levels, with theory.
File billions of emails a day as inbox, spam or phishing when a lost real email costs most: sender reputation, SPF/DKIM/DMARC, trees over a robust text encoder, biased labels: one-hour boards for three levels, with the theory.
Warn before a phishing or malware page opens, minutes after it goes live: hash-prefix lists in the browser, a lexical pre-filter, rendered pages matched to brands, cloaking, takedowns: one-hour boards for three levels, with theory.
Catch fake and automated accounts at sign-up, while they act and in coordinated groups: challenges, behaviour models, graph trust, lockstep clusters, staged enforcement; one-hour boards for three levels, with theory.
Score every sign-in in under 50 ms and allow, step up or block: rare late labels, per-user familiarity, velocity against credential stuffing, friction budgets, passkeys and session risk. One-hour boards at three levels, with theory.
Find paid, incentivised and machine-written reviews and the rings behind them at 2 M reviews a day: behaviour, lockstep and dense-subgraph signals, staged enforcement, prevalence audits: boards for junior, senior and staff, with the theory.
Estimate each applicant's chance of default, then approve, size and price the loan with specific reasons for every decline: scorecards, monotone GBDT, reject inference, fair lending, one-hour boards and the theory behind them.
Check each ad, its landing page and its advertiser before it runs: a multimodal model with a head per policy, review by expected harm, LLMs for new policies, cloaking and prevalence: one-hour boards per level, with the theory.
Predict when a ride or a delivery arrives: a routing engine plus a learned residual, live traffic, quantile promises, deep and graph models, feedback loops: one-hour boards for junior, senior and staff, with the theory.
Find laundering across 22 million parties when rules are mandatory and most alerts are false: alert scoring, peer and graph features, below-the-line testing, mule rings and GNNs, on three one-hour boards with the theory.
Price every area, every minute, so riders get cars and drivers get trips: demand forecasts, conversion curves from price tests, a capped controller, switchbacks and emergency holds: one-hour boards and the theory behind them.
Forecast 20 million item-store series 28 days ahead as quantiles that set orders: censored sales, global GBDT and deep quantile models, reconciliation and cost backtests: one-hour junior, senior and staff boards.
Assign food orders to couriers every few seconds: prep, travel and acceptance predictions feed a min-cost assignment with batching, replay and switchbacks, learned state values: one-hour boards for junior, senior and staff.
Predict who will cancel, then spend a retention budget only where an offer changes the outcome: clean label windows, survival models, uplift learners, a budgeted policy and failed-payment recovery, on three one-hour boards.
Predict a customer's next-year value from the first day: zeros and heavy tails, BG/NBD against a zero-inflated lognormal network, decile calibration, and the feedback loop of value-based bidding: one-hour boards for three levels.
A nightly price for 5 M listings × 365 nights that maximises host revenue: censored booking labels, a demand curve per night, causal elasticity and market effects: one-hour boards for junior, senior and staff, with the theory.
Watch millions of revenue and growth series by country and platform: seasonal baselines, forecasts with honest bands, grouping, root-cause search and feedback: one-hour boards for junior, senior and staff, with the theory.
Find documents by meaning across 50 M passages: BM25 and a fine-tuned bi-encoder fused by RRF, a cross-encoder re-ranker, hard negatives, synthetic queries and index migrations: one-hour boards at three levels, with the theory.
Correct, classify and tag a shopping query in 20 ms before search runs: noisy-channel spelling learned from shoppers' own retypes, confidence-based auto-correct, attribute tagging, head caching, offline LLM rewrites, many languages.
Search your own photos with words: CLIP-style dual encoders, parsed dates, places and people, per-user indexes, phone vs cloud, judged without seeing a photo: one-hour boards for junior, senior and staff, with the theory.
Group the faces in each photo library by person: ArcFace embeddings, constrained incremental clustering, false merges vs splits, on-device privacy and biometric law: one-hour boards for junior, senior and staff, with the theory.