Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:76064
loss:MatryoshkaLoss
loss:TripletLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use rajatrc1705/bge-small-matryoshka-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rajatrc1705/bge-small-matryoshka-fine-tuned with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rajatrc1705/bge-small-matryoshka-fine-tuned") sentences = [ "When was the brewery founded by the family who resided in the Lemp Mansion founded?", "Latrobe Brewing Company Latrobe Brewing Company in Latrobe, Pennsylvania, founded in 1839, was one of the largest breweries in the United States and the maker of \"Rolling Rock\" beer (famous for its small green bottles). It was purchased by Labatt Brewing Company in 1987, which in turn was purchased in 1995 by the Belgian brewing conglomerate corporation Interbrew, which merged later into InBev in 2004.", "Lemp Mansion The Lemp Mansion (3322 DeMenil Place, St. Louis, Missouri) is a historical house in Benton Park, St. Louis, Missouri. It is also the site of four suicides by Lemp family members after the death of the son Frederick Lemp, whose William J. Lemp Brewing Co. dominated the St. Louis beer market before Prohibition with its Falstaff beer brand. The mansion is said to be haunted by members of the Lemp family.", "Man of the House (song) \"Man of the House\" is a song co-written and recorded by American country music artist Chuck Wicks. It was released in January 2009 as the third single from the album \"Starting Now\". The song reached #27 on the \"Billboard\" Hot Country Songs chart. The song was written by Wicks and Michael Mobley." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle