Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:16807177
loss:CoSENTLoss
text-embeddings-inference
Instructions to use KhaledReda/all-MiniLM-L6-v68-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-v68-pair_score with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("KhaledReda/all-MiniLM-L6-v68-pair_score") sentences = [ "ultra soft essential pants", "rosario lookin for something to spice up your wardrobe the rosario is just the ticket this is perfect for warm weather and adds a bit of oomph to any outfit and you can bet all eyes will be on you when you rock it wink wink", "hazelnut cold pressed hazelnut oil desserts hazelnut oil sauté vegetables hazelnut oil for cooking our hazelnut oil is cold-pressed to retain its rich and toasty flavor. it enhances both sweet and savory recipes. how to use drizzle over desserts like ice cream or chocolate mousse use it to sauté vegetables or blend it into hazelnut vinaigrettes for a delightful hazelnut touch.", "nut bar almond - pumpkin almond nut bar pumpkin nut bar" ] 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!