Sentence Similarity
sentence-transformers
Safetensors
nandi_encoder
embeddings
feature-extraction
mteb
retrieval
multilingual
indic
long-context
frontiersmind
nandi
custom_code
Instructions to use FrontiersMind/EmbeddingNandi-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FrontiersMind/EmbeddingNandi-150M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FrontiersMind/EmbeddingNandi-150M", trust_remote_code=True) sentences = [ "task: sentence similarity | query: How do I return a damaged product?", "task: sentence similarity | query: खराब सामान वापस कैसे करें?", "task: sentence similarity | query: damaged product wapas kaise kare?", "task: sentence similarity | query: What is the weather like today?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 559 Bytes
7268741 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | {
"add_prefix_space": null,
"auto_map": {
"AutoTokenizer": [
"tokenization_nandi_encoder.NandiEncoderTokenizer",
null
]
},
"backend": "tokenizers",
"bos_token": "<|endoftext|>",
"bos_token_id": 0,
"eos_token": "<|endoftext|>",
"eos_token_id": 0,
"is_local": true,
"local_files_only": false,
"mask_token": "<|mask|>",
"mask_token_id": 4,
"merges_file": null,
"model_max_length": 16384,
"pad_token": "<|pad|>",
"pad_token_id": 3,
"tokenizer_class": "NandiEncoderTokenizer",
"unk_token": "<|endoftext|>"
}
|