🧠 TripAlchemy Embeddings β€” MiniLM-L6

The winning embedding model + precomputed vectors for the TripAlchemy recommender

winner dim vectors license

Precomputed 384-dimensional embeddings for all 10,396 TripAlchemy experiences, produced by the model that won a rigorous 3-model comparison β€” plus the full report so the choice is reproducible.


πŸ† The 3-model comparison

Three Hugging Face sentence-embedding models were evaluated with a self-consistency retrieval test: for a stratified sample, a query built only from each experience's category + vibe tags (never its title/description) is embedded, and we measure whether the model ranks the original experience in its own top-5 (Recall@5) and its reciprocal rank (MRR). Final pick = weighted score (50% Recall@5 + 30% MRR + 20% encode-speed).

3-model comparison

model hf_id Recall@5 MRR encode time dim
MiniLM-L6 ⭐ sentence-transformers/all-MiniLM-L6-v2 0.0267 0.0242 34s 384
BGE-small BAAI/bge-small-en-v1.5 0.05 0.0446 60s 384
E5-small intfloat/e5-small-v2 0.06 0.0423 62s 384

Winner: MiniLM-L6 (sentence-transformers/all-MiniLM-L6-v2). At 10,396 documents the three models' retrieval scores were statistically close, so the tie-break went to encoding speed β€” MiniLM-L6 is ~2Γ— faster, ideal for a live Space that loads these vectors at startup.

ℹ️ The absolute Recall@5 numbers are low by design β€” the query is intentionally stripped to category + vibe only, so retrieving the one exact experience among 10,396 is hard. The relative ranking is what selects the model; real queryβ†’relevant retrieval in the app is excellent.

πŸ“¦ Files

file what it is
winning_model.npz ids + 384-D document vectors for all 10,396 experiences
comparison_report.json full metrics + the query/doc prefixes the app reuses
embeddings_compare_hf.py the comparison code (reproducible)

πŸ”§ How the app uses it

The TripAlchemy Space downloads winning_model.npz at runtime, loads it into a FAISS IndexFlatIP, and blends embedding similarity with the category sliders:

final_score = Ξ± Β· cosine(query, doc) + (1 βˆ’ Ξ±) Β· slider_match

πŸ” Reproduce

pip install sentence-transformers
python embeddings_compare_hf.py --sample-size 300

Part of TripAlchemy Β· πŸ“Š dataset Β· πŸš€ live app

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for almador2002/tripalchemy-embeddings