Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:16807599
loss:CoSENTLoss
text-embeddings-inference
Instructions to use KhaledReda/all-MiniLM-L6-v69-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-v69-pair_score with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KhaledReda/all-MiniLM-L6-v69-pair_score") sentences = [ "sunsilk soft smooth shampoo offer 15", "beter /22009 beter", "coffee scrub creamy scrub shea butter coffee scrub cocoa butter exfoliator scrub coconut oil gentle skin scrub ahwa body exfoliate coffee body exfoliate kahwa kahwah organic coffee exfoliate qahwa this natural coffee scrub is enriched with a creamy texture with vitamin e shea butter cocoa butter and coconut oil. a gentle and soft scrub on the skin rich in vitamins to give the skin vitality.", "caviale lobster tails wild lobster light lobster emirati lobster average weight 300 gr. 2 pieces. wild lobster tails. sweet light and flavorful. very nutritious. origin emirates." ] 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!