Feature Extraction
sentence-transformers
Safetensors
Transformers
English
mistral
mteb
Eval Results (legacy)
text-embeddings-inference
Instructions to use Salesforce/SFR-Embedding-Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Salesforce/SFR-Embedding-Mistral with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Salesforce/SFR-Embedding-Mistral") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use Salesforce/SFR-Embedding-Mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Salesforce/SFR-Embedding-Mistral")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Salesforce/SFR-Embedding-Mistral") model = AutoModel.from_pretrained("Salesforce/SFR-Embedding-Mistral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update README
Browse files
README.md
CHANGED
|
@@ -3385,7 +3385,7 @@ SFR-Embedding Team (∗indicates lead contributors).
|
|
| 3385 |
```bibtex
|
| 3386 |
@misc{SFRAIResearch2024,
|
| 3387 |
title={SFR-Embedded-Mistral},
|
| 3388 |
-
author={Rui Meng, Ye Liu, Shafiq Rayhan Joty, Caiming Xiong, Yingbo Zhou, Semih Yavuz},
|
| 3389 |
howpublished={Salesforce AI Research Blog},
|
| 3390 |
year={2024},
|
| 3391 |
url={https://blog.salesforceairesearch.com/sfr-embedded-mistral/}
|
|
|
|
| 3385 |
```bibtex
|
| 3386 |
@misc{SFRAIResearch2024,
|
| 3387 |
title={SFR-Embedded-Mistral},
|
| 3388 |
+
author={Rui Meng*, Ye Liu*, Shafiq Rayhan Joty, Caiming Xiong, Yingbo Zhou, Semih Yavuz},
|
| 3389 |
howpublished={Salesforce AI Research Blog},
|
| 3390 |
year={2024},
|
| 3391 |
url={https://blog.salesforceairesearch.com/sfr-embedded-mistral/}
|