Skip to content
Raisalon

Deep learning · Planned

Two-stage recommendation system

A recommender built the way large platforms structure them, with fast candidate retrieval followed by a ranking model, evaluated offline with ranking metrics.

Planned project. This page describes the goal, the approach, and how the system will be evaluated. Code, a live demo, and results will be published here once it is built.

At a glance

Solo project: retrieval model, ranker, and serving API

Problem
Recommend items from a large catalogue quickly enough for a live request.
Planned approach
A two-tower model for candidate retrieval with FAISS, a gradient-boosted ranker on top, and a popular-items fallback for new users.
Design decisions
  • Two stages, as production platforms do: cheap retrieval over the whole catalogue, then an expensive ranker on a few hundred candidates.
  • Popularity and co-occurrence baselines first, so every model has to beat something simple.
Evaluation plan
Recall@k for retrieval, NDCG@k and MAP@k for ranking, catalogue coverage, cold-start quality, and latency.

Goal

Recommend items a user is likely to engage with, using the two-stage design common in production systems: retrieve a few hundred candidates quickly from a large catalogue, then rank them with a richer model.

Planned approach

  1. Data. A public implicit-feedback dataset, such as views or ratings, split by time so recommendations are judged on interactions that happen later.
  2. Baselines. Popularity and item-to-item co-occurrence, so every model is compared against something simple.
  3. Retrieval. A two-tower model that learns user and item embeddings, with approximate nearest-neighbour search in FAISS.
  4. Ranking. A gradient-boosted ranker over the retrieved candidates using user, item, and context features.
  5. Serving. A FastAPI endpoint that returns ranked recommendations, with a fallback to popular items for new users.

Evaluation plan

  • Retrieval: recall@k of the candidate set, since items missed at this stage can never be ranked.
  • Ranking: NDCG@k and MAP@k against the baselines.
  • Coverage and cold start: how much of the catalogue gets recommended, and quality for users with little history.
  • Latency of retrieval and ranking per request.

Definition of done

A public repository, a demo, an offline results table comparing baselines and models, and notes on the cold-start strategy.

All projects