Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:50000
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use rajaji01/semantic-search with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rajaji01/semantic-search with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rajaji01/semantic-search") sentences = [ "what is a spleen", "It plays multiple supporting roles in the body it acts as a filter for blood as part of the immune system old red blood cells are recycled in the spleen and platelets and white blood cells are stored there.", "Mika", "Size: 28 in (71 cm). Weight: 5 to 20 lbs (2.3 to 9 kg). Size relative to a 6-ft (2-m) man: Domestic cats, no matter their breed, are all members of one species. Felis catus has had a very long relationship with humans.Ancient Egyptians may have first domesticated cats as early as 4,000 years ago." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File too large to display, you can check the raw version instead.