Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

AniruddhaAI
/
sanskrit-e5-small-retrieval

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:168783
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

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
sanskrit-e5-small-retrieval
488 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
AniruddhaAI's picture
AniruddhaAI
Add new SentenceTransformer model
9b8c154 verified about 1 month ago
  • 1_Pooling
    Add new SentenceTransformer model about 1 month ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model about 1 month ago
  • README.md
    17.9 kB
    Add new SentenceTransformer model about 1 month ago
  • config.json
    751 Bytes
    Add new SentenceTransformer model about 1 month ago
  • config_sentence_transformers.json
    284 Bytes
    Add new SentenceTransformer model about 1 month ago
  • model.safetensors
    471 MB
    xet
    Add new SentenceTransformer model about 1 month ago
  • modules.json
    429 Bytes
    Add new SentenceTransformer model about 1 month ago
  • sentence_bert_config.json
    241 Bytes
    Add new SentenceTransformer model about 1 month ago
  • tokenizer.json
    17.1 MB
    xet
    Add new SentenceTransformer model about 1 month ago
  • tokenizer_config.json
    598 Bytes
    Add new SentenceTransformer model about 1 month ago