Problem
Kuper lets users search across all retailers available at their address. The first version put the retailer with the highest revenue first, most often METRO. Kuper sells more than 20 categories, from groceries to electronics and medicines. Users had to scroll through stores, or assumed the item was out of stock. Both can mean fewer visits or lost customers.
Example from the article: a user who typed "Apple" to buy a phone could see a bourbon from METRO before any electronics store.
Solution in brief
Ranking is split into two steps. A fastText classifier decides whether the query is about restaurants or stores, and each group is ranked separately. The first ranking used add-to-cart counts per query and store. The improved one is an XGBRanker trained on user behavior with query, region, user, delivery and price features.
Questions this case answers
- How to rank the suppliers that can answer a query when each supplier carries a different assortment and the old rule was fixed by supplier revenue
- How to route a query to the right class of supplier before ranking when the class is not given and is only visible in past add-to-cart behavior
- How to order stores in a cross-retailer search result so the relevant store comes first?
- How to stop a high-revenue retailer from topping every query, including ones it cannot answer?
Tools and methods
- fastText — binary classifier: is the query a restaurant query or a store query
- XGBRanker (XGBoost) — learning-to-rank model for stores and restaurants
- Add-to-cart statistics — baseline ranking and model features
- Elasticsearch — full-text search over store and restaurant names and synonyms (not shipped)
- A/B test — checks each ranking version
Google or a one-time email code. No password.
