Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:262023
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Instructions to use dpshade22/hf-e5-bible-25 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use dpshade22/hf-e5-bible-25 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("dpshade22/hf-e5-bible-25") sentences = [ "query: A discerning person keeps wisdom in view,\n but a fool’s eyes wander to the ends of the earth.", "passage: A foolish son brings grief to his father\n and bitterness to the mother who bore him.", "passage: But whoever lives by the truth comes into the light, so that it may be seen plainly that what they have done has been done in the sight of God.", "passage: In the past, while Saul was king over us, you were the one who led Israel on their military campaigns. And the Lord said to you, ‘You will shepherd my people Israel, and you will become their ruler.’”" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle