How to balance the interests of buyers and sellers: the experience of Yandex Market developers

Ilya Nenakhov18 Apr 2024

Problem

A marketplace wants sellers to be able to buy more orders without making search worse for buyers. Their interests pull apart: sellers want higher prices, buyers want low prices and fast delivery. Forcing next-day delivery pleases users for a couple of days, then the marketplace loses its stores. Raising prices lifts GMV in the short term but does not make users happier.

Example from the article: Yandex Market sells a CPA promotion tool, the premium insert: a horizontal block of bid-carrying products relevant to the query, shown above the search results.

Solution in brief

Quantify both sides: orders measure user happiness, and sellers bid a percentage of the sale price, paid only per completed order. The backend selects candidates with an inverted index plus a kNN index, drops irrelevant ones with a classifier trained on crowdsourced labels, and ranks by expected GMV and revenue from a predicted purchase probability.

Questions this case answers
  • How to rank paid placements in a two-sided marketplace so that payers get more conversions without lowering result relevance for users
  • How to choose a service-quality metric for a marketplace when revenue-style metrics can be raised at the expense of users
  • How to give sellers a paid promotion tool in search without hurting the quality of results for buyers?
  • How to rank promoted products when sellers pay per completed order (CPA) instead of per impression?

Tools and methods

  • Inverted index (TF-IDF, BM25) — first candidate source for query terms.
  • Custom kNN index over neural embeddings — second candidate source; pgvector is named as an open example.
  • DSSM and sentence-BERT models — query and document vectors, trained on relevance and business targets.
  • Crowdsourced relevance labels and a relevance classifier — decides whether a document stays in the insert.
  • CatBoost — predicts the purchase probability of each document.
  • Expected-value ranking — final score built from expected GMV and expected revenue.
Continue reading — it's free

Google or a one-time email code. No password.