Sentence Similarity
sentence-transformers
Safetensors
qwen3
feature-extraction
Generated from Trainer
dataset_size:268861
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use Matjac5/MNLP_M3_RAG_MODEL_data_mixture_cs_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Matjac5/MNLP_M3_RAG_MODEL_data_mixture_cs_2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Matjac5/MNLP_M3_RAG_MODEL_data_mixture_cs_2") sentences = [ "There are seven thieves. They stole diamonds from a diamond merchant and ran away. While running, night sets in and they decide to rest in the jungle.\nWhen everybody was sleeping, two of them woke up and decided to divide the diamonds equally among themselves. But when they divided the diamonds equally, one diamond is left.\nSo they woke up the 3rd thief and tried to divide the diamonds equally again but still one diamond was left. Then they woke up the 4th thief to divide the diamonds equally again, and again one diamond was left. This happened with the 5th and 6th thief – one diamond was still left.\nFinally, they woke up the 7th thief and this time the diamonds were divided equally.\nHow many diamonds did they steal in total?", "'", "'", "e" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle