Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OLX Tech 5 min read Case study mediumAdept

Importance of offline evaluation to guide model choice

OLX compared open-source multilingual text embedding models against its in-house Item2vec model for similar-item recommendations by building an offline evaluation dataset from user interaction pairs, weighting favorites and chat replies above clicks and favoring recent activity. Candidate models were filtered from the MTEB leaderboard by memory, latency, text-only modality and multilingual support. Offline recall tracked MTEB scores, and multilingual-e5-small won across languages. Fine-tuning it with Sentence Transformers and MultipleNegativesRankingLoss improved recall@5, especially for low-resource languages like Uzbek and Kazakh, with gains plateauing after 40 epochs. In A/B testing, pure embedding similarity missed relevance signals such as location and price, so a reranker blending normalized location distance with similarity score, tuned by grid search, was added after retrieval.

Assumes: text embeddingscosine similarityrecall metrics

Related posts

  • MTEB: Massive Text Embedding Benchmark

    Hugging Face mediumAdept

    MTEB is a benchmark of 56 datasets across 8 embedding tasks (classification, clustering, retrieval, STS, bitext mining and more) covering up to 112 languages, with a public leaderboard of over 2000 results. Initial results show a speed/quality tradeoff: GloVe is fast but weak, all-MiniLM-L6-v2 and all-mpnet-base-v2 balance speed and quality, and multi-billion-parameter models like ST5-XXL, GTR-XXL and SGPT-5.8B lead but produce large embeddings (up to 4096 dimensions). Because rankings vary widely by task, the leaderboard should be checked per task. Any model can be evaluated with the `mteb` Python library and submitted via model card metadata.

  • Introducing RTEB: A New Standard for Retrieval Evaluation

    Hugging Face easyNovice

    RTEB (Retrieval Embedding Benchmark), released in beta by MTEB maintainers and MongoDB, evaluates the retrieval accuracy of embedding models using a hybrid of open and private datasets. Its aim is to expose overfitting, since models trained on data overlapping public benchmarks score well without generalizing. A large score drop between the open and private sets signals overfitting, and some models already show this. The datasets span 20 languages and enterprise domains such as law, healthcare, finance and code, each with at least 1k documents and 50 queries, and NDCG@10 is the default leaderboard metric.

  • Hybrid Search — Where Keywords Meet Vectors, Enabling Classifieds Discovery

    OLX Tech mediumAdept

    OLX replaced a growing chain of fallback keyword-search extensions with hybrid retrieval: SOLR BM25 keyword matches plus a fixed allocation of vector-search results (embeddings from off-the-shelf mCLIP and multilingual-e5-small), capped at 1,000 ads and re-ranked by an XGBoost learning-to-rank model. Similarity scores did not separate relevant from irrelevant ads, so a global threshold was abandoned in favor of a fixed quota (raised from 35 to 70 vector results). The existing LTR model buried semantic results, so it was retrained with the query-ad similarity score as a feature, using a temporary linear re-ranker to break the cold-start data problem. A/B tests showed over 100% more seller contacts per user in the extension step, and about 3% (apps) and about 5% (mobile web) more users with successful events in the main flow.

  • Visual Document Retrieval Goes Multilingual

    Hugging Face hardMaster

    vdr-2b-multi-v1 is a multilingual embedding model that encodes document page screenshots into single dense vectors for OCR-free retrieval. It is fine-tuned from dse-qwen2-2b-mrl-v1 on a new open 500k-sample synthetic dataset covering Italian, Spanish, English, French and German. The data pipeline is laid out step by step: topic-driven PDF scraping, layout-based page sampling, VLM query generation, filtering with voyage-3 and hard-negative mining. The model improves NDCG@5 by about 2.3% on average over the base model and by 2.3% on Italian-to-German cross-lingual search. An English-only variant matches the base model using 768 instead of 2560 image tokens, about 3x faster inference, and Matryoshka plus binary embeddings keep roughly 97-99% of quality at much smaller vector sizes.

  • Beating proprietary models with a quick fine-tune

    Modal mediumAdept

    Fine-tuning an open-source embedding model on a few hundred labeled pairs can beat OpenAI's text-embedding-3-small on duplicate-question detection, at lower cost. A grid search on the Quora duplicates dataset covered three base models (bge-base-en-v1.5, all-mpnet-base-v2, jina-embeddings-v2-small-en), dataset sizes from 100 to ~100k examples, and 256 vs 512 output dimensions, with each run on its own GPU in parallel via Modal's map. bge-base passed the baseline by 200 examples and kept improving, reaching about 13% error versus 17%. mpnet plateaued early, jina never beat the baseline, and the larger dimension gave no accuracy gain, so 256 dimensions is the cheaper choice.

The quest for software engineering knowledge.

Look:
Layout: