Hybrid Search — Where Keywords Meet Vectors, Enabling Classifieds Discovery
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.
Related posts
- Modernizing the Facebook Groups Search to Unlock the Power of Community Knowledge
Meta Engineering mediumAdeptFacebook Groups scoped search moved from keyword-only retrieval to a hybrid design that runs lexical and semantic retrieval in parallel. Queries are rewritten, then sent both to the Unicorn inverted index and to a 12-layer, 200M-parameter semantic retriever whose embeddings drive ANN search over a Faiss index. An L2 multi-task multi-label ranker merges the candidates using BM25/TF-IDF and cosine-similarity features and jointly optimizes for clicks, shares and comments. Llama 3 acts as an automated judge in build verification tests, with a graded "somewhat relevant" label. Meta reports higher search engagement with no increase in error rates, and plans to put LLMs directly into ranking and adaptive retrieval.
- How Etsy Uses LLMs to Improve Search Relevance
Etsy Code as Craft mediumAdeptEtsy built an LLM-powered semantic relevance framework that complements engagement signals, which favor popular listings, with judgments of how well listings match query intent across three classes: relevant, partially relevant and irrelevant. Human-labeled golden data validates an o3-based few-shot chain-of-thought annotator with self-consistency sampling. That annotator generates training data for a cascaded distillation stack: a fine-tuned Qwen 3 VL 4B teacher for daily offline evaluation and A/B monitoring via vLLM, and a BERT two-tower student that adds under 10ms in real-time search. The student filters irrelevant results, supplies ranking features and loss weights, and boosts relevant listings, raising fully relevant results from 58% to 62%, though engagement sometimes dips as relevance rises.
- Our Early Journey to Transform Instacart’s Discovery Recommendations with LLMs
Instacart Tech mediumAdeptInstacart rebuilt its Shopping Hub discovery recommendations around a top-down, cascaded LLM pipeline. It first generates personalized page themes, then taxonomy-grounded retrieval keywords, then applies quality and diversity filtering, and finally hands off to existing product and pagewise ranking services. Keyword generation uses a teacher-student fine-tuned open-weight model (Llama/Qwen with LoRA ablations). It also uses RAG that prunes a 300,000-term keyword corpus to about 100 nearest neighbors per theme, which cut generation costs 15–20%. Quality is enforced through embedding-based deduplication, LLM-as-a-judge evaluators calibrated with human-in-the-loop data, and a fine-tuned cross encoder for theme-product relevance at scale.
- Paper Announcement: Leveraging Multimodal LLMs for Large-Scale Product Retrieval Evaluation
Zalando Engineering mediumAdeptZalando uses multimodal LLMs to judge query-product relevance for search evaluation and reaches agreement comparable to human annotators on 20,000 multilingual (English and German) examples. For each query, one LLM writes query-specific annotation guidelines, then a multimodal annotator such as GPT-4o labels each retrieved product as highly relevant, acceptable substitute or irrelevant using both text and images. The pipeline is up to 1,000x cheaper than human labeling and processes 20,000 pairs in about 20 minutes. Humans and LLMs make about the same number of errors but of different types: humans miss brand mismatches, while LLMs are overly strict or misread brand names. That makes LLMs a good fit for bulk annotation, with humans reserved for tricky cases.
- Search Quality Assurance with AI as a Judge
Zalando Engineering mediumAdeptZalando validated search quality for new markets (Luxembourg, Portugal, Greece) before launch by using a multimodal LLM-as-a-judge instead of manual expert review. Test queries are drawn from existing markets, clustered by NER-tag sets into intent segments, ranked by traffic share and translated with an LLM. An Airflow pipeline then retrieves results from the search service and has GPT-4o score each result 0–4 using product data and images, with ElastiCache deduplicating product lookups and (query, product) judgements to cut cost. Running 1,500 top segments per market surfaced lemmatization gaps, unrecognized terms such as Portuguese "ténis" and "menina", and missing NER tags in Greek, all fixed before go-live.