Problem
A geocoder turns a typed address into a map point. Yandex's Russian geocoder was an inverted-index search with many conditions, a spell checker, query-analysis services and rankers. Each new country needed its own rules because address systems differ (rectangular blocks in North America, plus codes in the Middle East, an entrance rather than a house as the end point in Turkey). Adapting the system was slow, and new requirements appeared: organization search, prefix queries, national languages.
Example from the article: in Kazakhstan, queries come in Russian or Kazakh, in Latin or Cyrillic transliteration, and street and city names repeat across regions.
Solution in brief
Two BERT-like neural stages replace the pile of services: vector retrieval (L1) and re-ranking (L2). L1 is pretrained on synthetic query-document pairs, so a first model needs no labels, then fine-tuned on assessor labels. Ensemble-driven active learning and augmentation then raise quality.
Questions this case answers
- How to launch a two-stage retrieval and re-ranking model in a new market with no logs and no relevance labels, and improve it iteratively with a small labeling budget
- How to train a re-ranker to predict a graded match level when only binary relevance labels exist
- How to build an address search (forward geocoder) that can be launched in a new country without writing country-specific rules?
- How to launch a search model for a market where there are no logs, no clients and no relevance labels yet?
Tools and methods
- Bi-encoder retrieval (L1) with an HNSW index — returns the top-N documents for a query vector.
- Contrastive pretraining with in-batch negatives — adapts the encoder to geocoding.
- Re-ranker (L2) — re-ranks the top-N and predicts house precision.
- Active learning with a model ensemble — picks unlabeled pairs for assessors.
- Query and document augmentation — generated queries, transliteration, synonyms.
- Pseudo-labeling — noisy exact/near labels for house precision.
- Reciprocal rank fusion (RRF) — merges ensemble outputs to soften label noise.
Google or a one-time email code. No password.
