GenAI-Based Recommendation System
A modular Python recommendation backend that exposes personalized recommendations behind clean service interfaces a frontend can consume. The data pipeline, embedding, ranking, and serving are built as separate modules. Ranking runs as a trust-aware Learning-to-Rank ensemble over SBERT, ALS, and LightGBM.
Key result
Peer-reviewed at ICAIII 2026— Trust-aware ranking from SBERT + ALS + LightGBM, served behind an API
01Problem
Recommenders tuned only for accuracy converge on the same popular items and give the user no reason to trust what they are shown. Making trust part of the ranking, rather than an afterthought, changes what the system needs to compute.
02Objective
Build a modular recommendation backend where ranking is a trust-aware Learning-to-Rank problem, and expose it behind service interfaces a frontend can consume rather than leaving it as research code.
03Architecture
- Amazon Dataset
- Data Processing
- SBERT
- ALS
- LightGBM
- Trust & Safety Filter
- Generative Explanation
04Technology
- Python
- SBERT
- ALS
- LightGBM
- Pandas
- scikit-learn
05Implementation
Key technical decisions
- 01Built the backend as separate modules — data pipeline, embedding, ranking, serving — rather than one script.
- 02Combined SBERT semantic embeddings with ALS collaborative filtering so the system has both a content and a behavioral signal.
- 03Ran final ranking as a LightGBM Learning-to-Rank ensemble over those signals.
- 04Exposed the result behind clean service interfaces a frontend can consume.
- 05Measured the quality/performance trade-offs between approaches rather than picking one on intuition.
What was built
- Data pipelines for cleaning, transformation, and building the user-item matrix.
- SBERT embeddings over product text.
- ALS collaborative filtering over the interaction matrix.
- LightGBM Learning-to-Rank ensemble producing the final ordering.
- Service interfaces exposing recommendations to a frontend.
06Data
Source corpus and preprocessing
- Amazon product and review dataset
- Cleaning and transformation pipeline ahead of modeling
- User-item matrix built from the processed interactions
- Product text encoded as SBERT embeddings
07Evaluation metrics
Evaluated on
- Hit Rate@5
- Hit Rate@10
- Diversity
- Novelty
- Ranking latency
- LLM explanation latency