Sentence Similarity
sentence-transformers
Safetensors
Arabic
modernbert
feature-extraction
dense
bi-encoder
arabic
quran
hadith
retrieval
islamic-nlp
loss:ContrastiveLoss
text-embeddings-inference
Instructions to use IdealisticSolutions/islamqa-retriever-quran with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use IdealisticSolutions/islamqa-retriever-quran with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("IdealisticSolutions/islamqa-retriever-quran") sentences = [ "ما هو أعظم الذنوب؟", "إن الله لا يغفر أن يشرك به ويغفر ما دون ذلك لمن يشاء ومن يشرك بالله فقد ضل ضلالا بعيدا.", "ألهاكم التكاثر. حتى زرتم المقابر. كلا سوف تعلمون. ثم كلا سوف تعلمون.", "إنا أعطيناك الكوثر. فصل لربك وانحر. إن شانئك هو الأبتر." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 60c3752df41e89331509cef04aa6d36ece5297373914028494524a31fd4562a4
- Size of remote file:
- 596 MB
- SHA256:
- be58026ab6ec239b233134de2cc8df4c9d0ece838808198d3e54513fe6144f15
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.