Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:30754523
loss:CoSENTLoss
text-embeddings-inference
Instructions to use KhaledReda/all-MiniLM-L6-v71-pair_score with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use KhaledReda/all-MiniLM-L6-v71-pair_score with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KhaledReda/all-MiniLM-L6-v71-pair_score") sentences = [ "white rice beef", "cinderella - thick long pads with wings - 9 per pack feminine pads", "metallic greyish thermal bag chilled bag metallic thermal bag transform your everyday food storage with the exceptional thermal bag designed with triple compartments heat-resistant and 100 leakproof materials and a 3-month guarantee this bag ensures freshness and organization for up to 12 hours. plus it s bpa-free pvc-free and 100 safe for peace of mind. get ready to take on any food storage challenge with this incredible bag.", "chunky loafers laces - midnight black laces loafers take your style to the next level with our chunky loafers these stylish loafers feature a thick chunky sole and a sleek slip-on design. perfect for both formal and casual occasions our chunky loafers are made from premium materials and designed to provide comfort and support. pair them with suits dresses or jeans for a stylish and versatile look." ] 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!