Problem
A marketplace of farm products ("Svoe Rodnoe", Rosselkhozbank) grew from 30 to 80 thousand products in a year, and visitors faced information overload. Availability depends on the visitor's region: farmers sell offline in a city or deliver through CDEK pickup points, so every list must respect the region. Most visitors are anonymous or registered with only a name, so there is little history to learn from.
Example from the article: a visitor from Moscow and one from Vladivostok must see different farmers and products.
Solution in brief
A three-stage recommender behind one REST API: regional popularity lists, then similar and recipe-based complementary products, then personalized lists from view sequences and orders. Visitors without history fall back to the popularity lists. Quality is to be checked in a control/test experiment.
Questions this case answers
- How to build a staged recommender for a catalog that grows quickly and whose availability depends on the user's location
- How to recommend complementary items using an external knowledge base when co-purchase statistics only return obvious pairs
- How to evaluate a new recommendation block quickly when the business metrics react slowly
- How to launch a recommender system on a marketplace before any recommendation history exists
Tools and methods
- Popularity ranking — top products and farmers by orders in the last 3 months
- fastText trained from scratch — product name and description embeddings
- HNSW index (nmslib) — nearest-neighbor search instead of a full distance matrix
- Recipe graph — product, ingredient, recipe, other ingredients, products
- Word2Vec on view sequences — session-based similar products
- Collaborative filtering on order counts — products bought by the same users
- FastAPI, Pydantic, Swagger — service layer and its testing
- Control/test experiment and map@k — planned evaluation
Google or a one-time email code. No password.
