Instructions to use elastic/multilingual-e5-small-optimized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use elastic/multilingual-e5-small-optimized with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("elastic/multilingual-e5-small-optimized") 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] - Notebooks
- Google Colab
- Kaggle
Minor spelling corrections
Browse files120 unmodified lines121122123124125126127120 unmodified lines| multilingual-e5-small | 0.75862 | 0.56193 | 0.80309 | 0.82778 | 0.81672 | 0.85072 || multilingual-e5-small-optimized | 0.75992 | 0.48934 | 0.79668 | 0.82017 | 0.8135 | 0.84316 |To test the English out-of-domain performance, we used the test split of various datasets in the BEIR evaluation. Measuring NDCG@10, we see a larger changein SCIFACT, but marginal in the other datasets evaluated.| | FIQA | SCIFACT | nfcorpus || --- | --- | --- | --- |120 unmodified lines121122123124125126127120 unmodified lines| multilingual-e5-small | 0.75862 | 0.56193 | 0.80309 | 0.82778 | 0.81672 | 0.85072 || multilingual-e5-small-optimized | 0.75992 | 0.48934 | 0.79668 | 0.82017 | 0.8135 | 0.84316 |To test the English out-of-domain performance, we used the test split of various datasets in the BEIR evaluation. Measuring NDCG@10, we see a larger change in SCIFACT, but marginal in the other datasets evaluated.| | FIQA | SCIFACT | nfcorpus || --- | --- | --- | --- |
README.md+1-1