Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:168783
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use AniruddhaAI/sanskrit-e5-small-retrieval with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use AniruddhaAI/sanskrit-e5-small-retrieval with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("AniruddhaAI/sanskrit-e5-small-retrieval") sentences = [ "query: The two princes Vinda and Anuvinda, both fierce bowmen, for the sake of their friend Duryodhana, rushed upon Virata the ruler of the Matsyas, heedless of their lives and holding their weapons over head.", "passage: Invite them with plenty of seats and welcome them; for they remaining unseated, who is capable of taking his seat?", "passage: The Sankhya system, the Aranyaka-Veda, and the Pancharatra scriptures, are all identical and form parts of one whole. This is the religion of those who are devoted whole. mindedly to Narayana—the religion that has Narayana for its Soul.", "passage: विन्दानुविन्दावावन्त्यौविराटं मस्यमार्च्छताम्। प्राणांस्त्यक्त्वा महेष्वासौ मित्रार्थेऽभ्युद्यतायुधौ॥" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
9b8c154 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:5b58593a7e63f3c8b69801a92415fc0813dd287a3ba2f767cdf33106806fca11
size 17082988
|