Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:48
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use vineet10/fm2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use vineet10/fm2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("vineet10/fm2") sentences = [ "The Supplier shall deliver the Batteries to the Manufacturer within 5 days of receipt of each monthly purchase order.", "What rights does the Manufacturer have regarding the inspection and rejection non-conforming Batteries?", "What is the Delivery Schedule for the Batteries?", "What constitutes a force majeure event under the Agreement?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
94c6711 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.models.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.models.Pooling"
},
{
"idx": 2,
"name": "2",
"path": "2_Normalize",
"type": "sentence_transformers.models.Normalize"
}
] |