---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- dense
- generated_from_trainer
- dataset_size:262023
- loss:MultipleNegativesRankingLoss
base_model: intfloat/e5-base-v2
widget:
- source_sentence: 'query: what happened at holy week'
sentences:
- 'passage: He replied, “Go into the city to a certain man and tell him, ‘The Teacher
says: My appointed time is near. I am going to celebrate the Passover with my
disciples at your house.’”'
- "passage: Many nations will come and say,\n“Come, let us go up to the mountain\
\ of the Lord,\n to the temple of the God of Jacob.\nHe will teach us his ways,\n\
\ so that we may walk in his paths.”\nThe law will go out from Zion,\n the\
\ word of the Lord from Jerusalem."
- 'passage: But seek first his kingdom and his righteousness, and all these things
will be given to you as well.'
- source_sentence: 'query: what is Cheek'
sentences:
- 'passage: But I tell you, do not resist an evil person. If anyone slaps you on
the right cheek, turn to them the other cheek also.'
- "passage: “I am the Lord; that is my name!\n I will not yield my glory to another\n\
\ or my praise to idols."
- 'passage: Ham'
- source_sentence: 'query: what happened at prophecies of isaiah'
sentences:
- 'passage: The Israelites who were present in Jerusalem celebrated the Festival
of Unleavened Bread for seven days with great rejoicing, while the Levites and
priests praised the Lord every day with resounding instruments dedicated to the
Lord.'
- "passage: The blacksmith takes a tool\n and works with it in the coals;\nhe\
\ shapes an idol with hammers,\n he forges it with the might of his arm.\n\
He gets hungry and loses his strength;\n he drinks no water and grows faint."
- 'passage: “Take a census of the whole Israelite community by their clans and families,
listing every man by name, one by one.'
- source_sentence: 'query: who was God'
sentences:
- 'passage: he will not listen to you. Then I will lay my hand on Egypt and with
mighty acts of judgment I will bring out my divisions, my people the Israelites.'
- 'passage: I looked, and there before me was a white horse! Its rider held a bow,
and he was given a crown, and he rode out as a conqueror bent on conquest.'
- 'passage: The Lord your God will put all these curses on your enemies who hate
and persecute you.'
- source_sentence: 'query: Moses'
sentences:
- 'passage: King Ahaz cut off the side panels and removed the basins from the movable
stands. He removed the Sea from the bronze bulls that supported it and set it
on a stone base.'
- 'passage: “Gad will have one portion; it will border the territory of Zebulun
from east to west.'
- 'passage: Now Joshua son of Nun was filled with the spirit of wisdom because Moses
had laid his hands on him. So the Israelites listened to him and did what the
Lord had commanded Moses.'
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on intfloat/e5-base-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/e5-base-v2](https://huggingface.co/intfloat/e5-base-v2). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
## Model Details
### Model Description
- **Model Type:** Sentence Transformer
- **Base model:** [intfloat/e5-base-v2](https://huggingface.co/intfloat/e5-base-v2)
- **Maximum Sequence Length:** 256 tokens
- **Output Dimensionality:** 768 dimensions
- **Similarity Function:** Cosine Similarity
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'query: Moses',
'passage: Now Joshua son of Nun was filled with the spirit of wisdom because Moses had laid his hands on him. So the Israelites listened to him and did what the Lord had commanded Moses.',
'passage: King Ahaz cut off the side panels and removed the basins from the movable stands. He removed the Sea from the bronze bulls that supported it and set it on a stone base.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.6713, 0.4499],
# [0.6713, 1.0000, 0.4162],
# [0.4499, 0.4162, 1.0000]])
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 262,023 training samples
* Columns: sentence_0, sentence_1, and label
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 | label |
|:--------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------|
| type | string | string | float |
| details |
query: story of prophecies of isaiah | passage: The oxen and donkeys that work the soil will eat fodder and mash, spread out with fork and shovel. | 1.0 |
| query: Abraham and Lot | passage: Now Lot, who was moving about with Abram, also had flocks and herds and tents. | 1.0 |
| query: Why were the blind and lame not allowed to “enter the house” (2 Samuel 5:8)? | passage: And Mephibosheth lived in Jerusalem, because he always ate at the king’s table; he was lame in both feet. | 1.0 |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 32
- `per_device_eval_batch_size`: 32
- `num_train_epochs`: 1
- `max_steps`: 75
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters