Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:306636
loss:TripletLoss
text-embeddings-inference
Instructions to use jjduquec/conflubot_embed_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use jjduquec/conflubot_embed_model with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("jjduquec/conflubot_embed_model") sentences = [ "What are the benefits of sauna for both the body and mind, and how do different types of sauna rooms, such as wood burning, heat rocks, and electric heaters, warmed to temperatures between 150 F and 195 F, contribute to these benefits?", "Sauna is a type of therapeutic therapy for both the body and the mind. It reduces inflammation in your body, it rids your body of toxins, good for heart health, reduces allergies and helps with sleep to name a few. Different sauna types like wood burning, heat rocks and electric heathers can warm the sauna rooms to different temperatures ranging from 150 F to 195 F. You can choose any one depends on how tolerable you are to heat.", "The answer depends on the intended application. For instance, R is more suitable for statistical analysis and data parsing, while Python is often used for production applications, including machine learning.", "Sauna is a type of recreational activity that has limited benefits for the body and mind. While it can be enjoyable, it does not have a significant impact on reducing inflammation, detoxification, or improving heart health. Different sauna types and temperatures can be used, but the overall effect is largely the same." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
397dbdd | 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"
}
] |