Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:20000
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use 7j/bge-base-en-v1.5-rag-query-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use 7j/bge-base-en-v1.5-rag-query-adapter with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("7j/bge-base-en-v1.5-rag-query-adapter") sentences = [ "when does star trek discovery show on tv", "Star Trek: Discovery Star Trek: Discovery premiered on September 19, 2017, at ArcLight Hollywood, before debuting on CBS and All Access on September 24. The rest of the 15-episode first season are streaming weekly on All Access. The series' release led to record subscriptions for All Access, and positive reviews from critics who highlighted Martin-Green's performance. A second season was ordered in October 2017.", "Foster's Home for Imaginary Friends McCracken conceived the series after adopting two dogs from an animal shelter and applying the concept to imaginary friends. The show first premiered on Cartoon Network on August 13, 2004, as a 90-minute television film. On August 20, it began its normal run of twenty-to-thirty-minute episodes on Fridays, at 7 pm. The series finished its run on May 3, 2009, with a total of six seasons and seventy-nine episodes. McCracken left Cartoon Network shortly after the series ended. Reruns have aired on Boomerang from August 11, 2012 to November 3, 2013 and again from June 1, 2014 to April 3, 2017.", "2017 ICC Champions Trophy England became the first team to qualify for the semi-finals by virtue of two wins in its first two Group A games, and with other teams of the group either losing a game or ending games without a result.[36] Bangladesh qualified for the semi-finals following their win against New Zealand, and Australia failing to beat England in the final match of Group A.[37] From Group B, India and Pakistan qualified for the semi-finals following victories in their final group matches against South Africa and Sri Lanka respectively.[38][39]" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Ctrl+K