Skip to content
Back to projects

Deep Learning · 2026

Movie Recommendation Engine (Siamese Transformer)

Learns dense embeddings from movie metadata with a Siamese Transformer and contrastive loss (weak-supervision pairs), indexed in FAISS for millisecond similarity search, served with FastAPI.

Model

  • Siamese Transformer encoder producing dense movie embeddings
  • Contrastive loss on weak-supervision pairs (shared genres/franchise/cast treated as positives)
  • FAISS index over the learned embedding space for similarity search

Dataset

Movie metadata corpus (titles, genres, overviews, cast) — pair mining generates weak-supervision training pairs.

Results & metrics

Objective
contrastive loss
Search
FAISS, millisecond top-k
Serving
FastAPI

Deployment steps

  1. 1Mine weak-supervision pairs from metadata
  2. 2Train the Siamese Transformer with contrastive loss
  3. 3Embed the full catalog and build the FAISS index
  4. 4Serve similar-movie queries through FastAPI

Tech stack

  • PyTorch
  • Transformers
  • FAISS
  • FastAPI
M

drawing ideas into systems...