Sentence Similarity
sentence-transformers
PyTorch
TensorFlow
ONNX
Safetensors
OpenVINO
English
bert
mteb
Sentence Transformers
Eval Results (legacy)
text-embeddings-inference
Instructions to use intfloat/e5-small-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use intfloat/e5-small-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("intfloat/e5-small-v2") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Inference
- Notebooks
- Google Colab
- Kaggle
update README.md
Browse files
README.md
CHANGED
|
@@ -2648,3 +2648,25 @@ print(scores.tolist())
|
|
| 2648 |
|
| 2649 |
Please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).
|
| 2650 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2648 |
|
| 2649 |
Please refer to our paper at [https://arxiv.org/pdf/2212.03533.pdf](https://arxiv.org/pdf/2212.03533.pdf).
|
| 2650 |
|
| 2651 |
+
## Benchmark Evaluation
|
| 2652 |
+
|
| 2653 |
+
Check out [unilm/e5](https://github.com/microsoft/unilm/tree/master/e5) to reproduce evaluation results
|
| 2654 |
+
on the [BEIR](https://arxiv.org/abs/2104.08663) and [MTEB benchmark](https://arxiv.org/abs/2210.07316).
|
| 2655 |
+
|
| 2656 |
+
## Citation
|
| 2657 |
+
|
| 2658 |
+
If you find our paper or models helpful, please consider cite as follows:
|
| 2659 |
+
|
| 2660 |
+
```
|
| 2661 |
+
@article{wang2022text,
|
| 2662 |
+
title={Text Embeddings by Weakly-Supervised Contrastive Pre-training},
|
| 2663 |
+
author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Jiao, Binxing and Yang, Linjun and Jiang, Daxin and Majumder, Rangan and Wei, Furu},
|
| 2664 |
+
journal={arXiv preprint arXiv:2212.03533},
|
| 2665 |
+
year={2022}
|
| 2666 |
+
}
|
| 2667 |
+
```
|
| 2668 |
+
|
| 2669 |
+
## Limitations
|
| 2670 |
+
|
| 2671 |
+
This model only works for English texts. Long texts will be truncated to at most 512 tokens.
|
| 2672 |
+
|