Problem
Glassdoor's machine learning team serves personalized community posts in the Community Feed, in email and in push notifications. Recommendations have to reflect the user's own posts, comments and reactions and those of similar users. The team also wants to A/B test and debug parts of the pipeline separately, so a quality change traces back to one component.
Example from the article: Glassdoor compared two embedding sizes for candidate retrieval in an A/B test, and a scoring-model comparison is run as a 50/50 traffic split.
Solution in brief
The recommender runs four stages: candidate generation, filtering, scoring and ordering. Candidates come from user and post embeddings stored in a vector index and searched with approximate nearest neighbors (ANN), merged with filter-based indexes such as trending posts. An experimentation layer upstream changes request parameters per stage, so each stage gets its own A/B test.
Questions this case answers
- How to structure a personalized ranking pipeline so that retrieval, filtering, scoring and ordering can be changed and experimented on independently
- How to retrieve a short list of semantically relevant items for a user from a large corpus under a latency budget
- How to design a recommender for a community feed, email and push that retrieves, filters, scores and orders posts in separate stages?
- How to retrieve candidate posts for a user with embeddings and approximate nearest neighbor search?
Tools and methods
- LLM embeddings — dense user and post vectors, model picked from the MTEB leaderboard
- OpenSearch ANN search — retrieves the top K posts closest to a user vector by cosine similarity
- Filter-based indexes — trending and other posts, merged with the ANN results
- Scoring service (MLflow, Gunicorn, Kubernetes) — separate model service that gives each post a relevance score
- Feature store — serves the model features for scoring
- Experimentation layer — A/B or multivariate tests per stage
- Grafana, Prometheus, Datadog — monitoring of each stage
Google or a one-time email code. No password.