CoolFace
Modelpublic

JJTsao/fine-tuned_movie_retriever-all-mpnet-base-v2

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes98downloads
Model Card

๐ŸŽฌ Fine-Tuned Movie Retriever (Rich Semantic & Metadata Queries + Smart Negatives)

![Model](https://huggingface.co/your-username/my-st-model)

This is a custom fine-tuned sentence-transformer model designed for movie and TV recommendation systems. Optimized for high-quality vector retrieval in a movie and TV show recommendation RAG pipeline. Fine-tuning was done using ~32K synthetic natural language queries across metadata and vibe-based prompts:

  • โ€”Enriched vibe-style natural language queries (e.g., Emotionally powerful space exploration film with themes of love and sacrifice.)
  • โ€”Metadata-based natural language queries (e.g., Any crime movies from the 1990s directed by Quentin Tarantino about heist?)
  • โ€”Smarter negative sampling (genre contrast, theme mismatch, star-topic confusion)
  • โ€”A dataset of over 32,000 triplets (query, positive doc, negative doc)

๐Ÿง  Training Details

  • โ€”Base model: BAAI/bge-base-en-v1.5
  • โ€”Loss function: MultipleNegativesRankingLoss
  • โ€”Epochs: 4
  • โ€”Optimized for: top-k semantic retrieval in RAG systems

๐Ÿ“ˆ Evaluation: Fine-tuned vs Base Model

MetricFine-Tuned Model ScoreBase Model Score
Recall@10.4590.159
Recall@30.6950.289
Recall@50.7650.342
Recall@100.8360.425
MRR0.5980.251

Evaluation setup:

  • โ€”Dataset: 3,598 held-out metadata and vibe-style natural queries
  • โ€”Method: Top-k ranking using cosine similarity between query and positive documents
  • โ€”Goal: Assess top-k retrieval quality in recommendation-like settings

๐Ÿ“ฆ Usage

python
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("jjtsao/fine-tuned_movie_retriever-all-mpnet-base-v2")
query_embedding = model.encode("mind-bending sci-fi thrillers from the 2000s about identity")

๐Ÿ” Ideal Use Cases

  • โ€”RAG-style movie recommendation apps
  • โ€”Semantic filtering of large movie catalogs
  • โ€”Query-document reranking pipelines

๐Ÿ“œ License

Apache 2.0 โ€” open for personal and commercial use.