Modernizing the Facebook Groups Search to Unlock the Power of Community Knowledge
Facebook 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.
Related posts
- Hybrid Search — Where Keywords Meet Vectors, Enabling Classifieds Discovery
OLX Tech mediumAdeptOLX 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.
- Your Algorithm: Giving People More Ways to Personalize Facebook Recommendations
Meta Engineering mediumAdeptFacebook's Your algorithm feature lets people edit, in natural language, the "Interested In" and "Not Interested In" lists that steer Feed and Reels ranking, backed by a single shared preference store. Each positive interest drives four dedicated retrieval sources plus a late-stage promotion, with a reranking control layer that spaces results, caps daily contribution and fetches one interest per request so new interests show up without flooding. Negative interests are enforced in layers: embedding-similarity filtering and demotion in ranking, a small fine-tuned LLM reranker that returns only items to remove, and client-side cache invalidation. Supplementary tail loads make changes take effect quickly, smaller LLMs validate and normalize edits, and an LLM-as-judge setup evaluates prompts and models offline.
- 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.
- 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.
- Adapting the Facebook Reels RecSys AI Model Based on User Feedback
Meta Engineering mediumAdeptFacebook Reels added a User True Interest Survey (UTIS) model that learns from in-feed survey responses asking how well a video matches the viewer's interests, instead of relying only on engagement signals like likes and watch time. A lightweight "perception layer" is trained on binarized, bias-weighted survey responses, using the main multi-task ranker's predictions as features. Its output feeds late-stage ranking as a value-formula input and drives retrieval through re-ranked interest profiles and knowledge distillation. Offline, precision rose from 48.3% to 63.2% and recall from 45.4% to 66.1% over heuristics, and A/B tests with over 10M users showed +5.2% engagement and +5.4% high survey ratings.