Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:1966986
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use as-bessonov/reranker_searchengines_cos2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use as-bessonov/reranker_searchengines_cos2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("as-bessonov/reranker_searchengines_cos2") sentences = [ "how early into pregnancy can you find out?", "You'll probably start to show in pregnancy at 12 to 16 weeks. You're more likely to show early if you're short, carrying multiple babies, or you've been pregnant before. ... Typically, this number should correlate with your week of pregnancy.", "['Open the status box in your Facebook profile.', 'Click the GIF icon to search for and select a GIF from the GIF library.', 'Once the GIF is selected, the GIF will attach to your Facebook post.', \"Once you're finished with your post, click Share.\"]", "It is extremely rare for a no spark condition to be the result of a faulty coil or ECM. ... This is the opposite of the strategy needed to fix a no spark condition. When taking on a no spark condition one needs to be patient and have an open mind." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!