Sentence Similarity
sentence-transformers
Safetensors
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:862681
loss:CosineSimilarityLoss
text-embeddings-inference
Instructions to use as-bessonov/reranker_searchengines_cos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use as-bessonov/reranker_searchengines_cos with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("as-bessonov/reranker_searchengines_cos") sentences = [ "do employers drug test on the first day?", "What form of pre-employment drug screening is used? They performed a urine test.", "Manufacturers produced pods in many various sizes, usually to fit a specific brewer, which made finding compatible pods confusing for the consumer. Today, most coffee pods are standard at approximately 61 millimeters in diameter, however pods may vary in weight (or amount of coffee in each pod).", "If you were born in 1958 your full retirement age is 66 and 8 months. You can start your Social Security retirement benefits as early as age 62, but the benefit amount you receive will be less than your full retirement benefit amount." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| [ | |
| { | |
| "idx": 0, | |
| "name": "0", | |
| "path": "", | |
| "type": "sentence_transformers.models.Transformer" | |
| }, | |
| { | |
| "idx": 1, | |
| "name": "1", | |
| "path": "1_Pooling", | |
| "type": "sentence_transformers.models.Pooling" | |
| } | |
| ] |