ModelsReviewed · intfloat

E5-Mistral-7B-Instruct text embedding model

E5-Mistral-7B-Instruct is a text embedding model for developers who build English semantic search, retrieval or text-similarity features. Its main catches are setup and missing information. Every query needs a one-sentence task instruction. The authors do not recommend inputs over 4096 tokens or non-English use. The card gives no hardware or cost figures. It was initialised from Mistral-7B-v0.1, has 32 layers, produces 4096-dimension embeddings and is declared MIT-licensed. It comes with self-reported MTEB benchmark results.

Researched 14 Nov 2026

In short.

E5-Mistral-7B-Instruct is a text embedding model, meaning it turns text into lists of numbers so that similar texts can be matched. It is aimed at developers building English semantic search, retrieval or clustering. Its main catches are that every query needs a task instruction, the authors do not recommend inputs longer than 4096 tokens or non-English use, and the card gives no hardware, speed or cost figures. The card says the model was initialised from Mistral-7B-v0.1 and fine-tuned on a mixture of multilingual datasets, and that it has 32 layers and 4096-dimension output. Its Transformers example takes the hidden state of the last token as the embedding and L2-normalises it. The model is declared MIT-licensed, but the captured card contains only that one-line declaration, with no full licence text or copyright notice. The card includes copy-ready Sentence Transformers and Transformers code and a large block of MTEB results. Those benchmark figures are author-reported and the card offers no independent validation of them. Operational measurements such as hardware needs, quantisation support, latency and cost are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

This report covers the complete model card (README.md) for intfloat/e5-mistral-7b-instruct at revision d62cc4417be0e3289c03dd459d1ef2d137e2554e. That includes its front-matter metadata, the one-line 'license: mit' declaration, the usage code, the FAQ, the limitations and the MTEB results in the metadata. The card contains no full licence text or copyright notice, so the applicable licence terms and required notices are unverified. Pages and files the card links to are excluded: the arXiv papers, the unilm evaluation prompts, config_sentence_transformers.json, the LoRA weights folder, multilingual-e5-large and Mistral-7B-v0.1. The benchmark figures are author-reported as written in the card. Independent validation of those figures and operational measurements of the model remain unverified. Runtime behaviour, hardware needs, quantisation support, latency, actual costs, comparative resource use, training data and the current state of competing models are unknown.

The overview

What this resource is

The resource is the model card for intfloat/e5-mistral-7b-instruct, read at the pinned revision d62cc4417be0e3289c03dd459d1ef2d137e2554e. It describes a text embedding model: given a piece of text, it returns a vector of 4096 numbers. Vectors that are close together (by cosine similarity) are meant to represent texts with related meaning. The card states that the model has 32 layers and an embedding size of 4096.

It accompanies the paper 'Improving Text Embeddings with Large Language Models' by Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder and Furu Wei (arXiv 2401.00368). The card also cites an earlier E5 paper, 'Text Embeddings by Weakly-Supervised Contrastive Pre-training'. The model belongs to the E5 family. The front matter tags are mteb, sentence-transformers and transformers, the language is English and the licence field is mit.

According to the card, the model was initialised from Mistral-7B-v0.1 and fine-tuned on a mixture of multilingual datasets. The card does not list those datasets or describe the training recipe. Apart from the '7b' in the model name, it gives no exact parameter count. All three are unknown from the card.

Overall assessment

Based on the card, this is a well-documented embedding model with a declared MIT licence and strong self-reported scores on many English retrieval, classification and similarity benchmarks. It is a credible candidate to evaluate for English semantic search or retrieval-augmented generation (RAG) pipelines.

There are practical points to weigh. Queries need instructions in a specific format, the authors do not recommend inputs longer than 4096 tokens, and the card recommends English only. The card gives no memory, speed or cost figures and no comparative resource measurements. Teams should therefore test both English retrieval quality and resource use on their own data and hardware before adopting it. All benchmark numbers in the card are the authors' own and have not been independently verified.

Who it is for

The card's own examples point to developers who need to match short queries against passages, such as web-search style question answering. The Sentence Transformers prompts it mentions (web_search_query, sts_query, summarization_query) suggest further uses in semantic textual similarity and summarisation-related matching. The MTEB metadata also covers classification, clustering, reranking and pair classification.

It suits teams that work mainly in English and want to tune embeddings to a task by writing a natural-language instruction. Those teams must also be able to find and test suitable hosting, because the card does not say what hardware is needed. The card describes the instruction as 'a way to customize text embeddings for different scenarios through natural language instructions'.

It is a poor fit for people who need multilingual coverage (the card points them to multilingual-e5-large) and for those embedding documents longer than 4096 tokens. The card does not state hardware needs, including whether the model runs acceptably on CPU only or on small GPUs, so these remain unknown.

What it can do

It maps text to 4096-dimension embeddings. These are compared with a dot product after L2 normalisation, which is the same as cosine similarity. The card's examples multiply the scores by 100.

The card's MTEB metadata reports results across many task types. Examples reported by the authors: nDCG@10 of 61.88 on ArguAna, 63.54 on NQ, 87.84 on FEVER, 75.72 on HotpotQA, 89.61 on QuoraRetrieval, 76.41 on SciFact and 43.06 on MS MARCO dev. Spearman correlation is 88.60 on STSBenchmark and 91.75 on STS17 en-en. Accuracy is 94.78 on IMDB, 95.91 on Amazon Polarity, 88.23 on Banking77 and 96.12 on MTOP domain (en).

The same metadata also shows clear weak spots. In Tatoeba bitext mining, accuracy is 4.8 for Kabyle (kab-eng), 9.2 for Berber (ber-eng), 11.4 for Cornish (cor-eng) and 16.7 for Breton (bre-eng). Other weak results include PAWS-X Spearman 16.81, STS22 Polish Spearman 39.21, SCIDOCS nDCG@10 16.30, Touche2020 nDCG@10 26.39 and SummEval Spearman 31.40. The metadata also lists results for Chinese benchmarks and many other languages. The card's text still recommends English only, so those numbers should not be read as a recommendation for non-English use.

Using it

What you need to use it

The card's code needs Python with either the sentence-transformers package, or torch plus transformers (AutoTokenizer, AutoModel). It does not state minimum versions. The FAQ notes that different transformers and pytorch versions can cause small, non-zero differences in reproduced scores.

The card gives no hardware requirements, memory use, numeric precision or inference speed. The Transformers example calls AutoModel.from_pretrained with no dtype or device settings. What hardware is needed, and whether quantised or reduced-precision setups are supported, are unknown from the card.

Your application also needs somewhere to store the 4096-dimension vectors and a way to search them by similarity. The card does not cover vector databases or indexing.

How it works

The card says the model was initialised from Mistral-7B-v0.1, fine-tuned on a mixture of multilingual datasets, and has 32 layers. In the card's Transformers example, the tokenised text is run through the model and the hidden state of the last real token becomes the embedding. A last_token_pool function does this and handles both left-padded and right-padded batches. The result is then L2-normalised with F.normalize. The card gives no further architecture details, so they are unknown here.

Queries are written in the form 'Instruct: {task description}\nQuery: {query}'. The card's example task is 'Given a web search query, retrieve relevant passages that answer the query'. Documents are encoded as plain text with no instruction. The FAQ says query instructions are needed because that is how the model was trained, and that leaving them out degrades performance. The task definition should be a one-sentence instruction.

With Sentence Transformers, the card uses prompt_name='web_search_query' for queries and no prompt for documents. It says more prompts are pre-configured in config_sentence_transformers.json, and that the prompts used in evaluation are in the authors' unilm/e5/utils.py file. The card does not reproduce the contents of either file, so the full prompt list is unknown from the card. A custom prompt can be passed directly, for example 'Instruct: Given a claim, find documents that refute the claim\nQuery: '.

The FAQ also says LoRA-only weights are available in a lora folder of the same repository, which suggests the fine-tuning used LoRA adapters. The card does not explain the training method further.

Getting started

The card offers two routes. The first uses Sentence Transformers. Create SentenceTransformer('intfloat/e5-mistral-7b-instruct') and optionally set model.max_seq_length = 4096 (a comment in the card says this is for reducing the maximum sequence length). Encode queries with prompt_name='web_search_query', encode documents with no prompt, then compute (query_embeddings @ document_embeddings.T) * 100.

The second uses plain Transformers. Build instruction-prefixed queries with a helper such as get_detailed_instruct, then load the tokenizer and model for intfloat/e5-mistral-7b-instruct. Tokenise with max_length=4096, padding=True and truncation=True, and run the model. Apply last-token pooling, normalise with F.normalize(p=2) and compute the scores.

The card does not describe installation steps, model download size, authentication or how to serve the model. These are unknown from the card and would need to be checked on the model repository and in your own environment.

Worked example from the card

The card encodes two queries, 'how much protein should a female eat' and 'summit define', against two passages from the MS-MARCO passage ranking dataset. One passage covers the CDC's average protein requirement of 46 grams per day for women aged 19 to 70. The other defines 'summit'. Queries get the instruction 'Given a web search query, retrieve relevant passages that answer the query', and passages get none.

The code then prints a 2 by 2 score matrix. The intent is that each query scores highest against its matching passage. The card does not show the resulting numbers, so the actual scores are unknown from the card.

To adapt the example, change only the instruction sentence to match your task, such as the claim-refutation instruction the card quotes, and leave document encoding unchanged.

Assessment & evidence

Limitations and risks

The authors state that inputs longer than 4096 tokens are not recommended. Because Mistral-7B-v0.1 was mainly trained on English data, the card recommends English only. It adds that the model's multilingual ability is still worse than multilingual-e5-large in some cases. Leaving out the query instruction degrades performance.

The benchmark metadata shows low Tatoeba scores for many low-resource languages, and some English tasks are weak, such as SCIDOCS retrieval and SummEval. Strong averages do not guarantee good results in your own domain.

The card does not cover memory and speed requirements, behaviour on domain-specific or very short text, robustness to adversarial or noisy input, bias or fairness analysis, quantisation support, or how embeddings change with quantisation. All of these are unknown. Many metadata entries show 'revision: None' for the dataset version, so the exact benchmark versions are not always identified. The scores are self-reported and not independently verified. The card's own FAQ warns that reproduced results can differ slightly across library versions.

Reasoning behind the assessment

The assessment rests on how complete and specific the card is. It includes runnable code for two popular libraries, a clear explanation of the query-instruction convention, architecture facts, a language recommendation, a recommendation against inputs longer than 4096 tokens, a pointer to LoRA weights, a licence declaration and a long list of benchmark results. That makes it possible to say concretely what the model does and where it falls short.

The caution comes from what is missing: hardware, speed and cost data, a list of training data, a full licence text, and independent verification. Treat the self-reported benchmark results as a reason to test the model on your own data, not as proof that it will beat other options there.

The card also contains a small inconsistency. The header says arXiv 2024, while the BibTeX entry gives the year 2023 for the same arXiv identifier. This does not affect how the model is used.

Alternatives

The only alternative the card names is multilingual-e5-large, which it recommends for multilingual use because this model's multilingual ability is weaker in some cases. The card gives no side-by-side numbers for it.

The card names no other alternatives and does not compare the model with other embedding models or hosted embedding services. Their quality, resource use and cost relative to this model are therefore unknown from this evidence. If you have a retrieval test set of your own, comparing a few candidates on it is the most reliable way to choose.

Evidence base

All findings come from one source: the full model card README at the pinned revision (about 178 KB, mostly YAML metadata). It contains the front matter, which holds the tags, language, licence declaration and a model-index of MTEB results. Those results cover classification, clustering, pair classification, reranking, retrieval, semantic textual similarity, summarisation and bitext mining, including Chinese C-MTEB tasks. The card also contains the architecture note, usage code, language note, FAQ, citations and limitations.

Strengths: the card is clear about instruction handling, its recommendation against inputs longer than 4096 tokens and its English-only recommendation, and the metadata is detailed. Weaknesses: all benchmark figures are author-reported, the card includes no independent evaluation or operational measurements such as memory use, speed or cost, and the licence appears only as a one-line declaration. The card defers several details to linked material outside the card itself, including the paper, the unilm evaluation prompts, config_sentence_transformers.json, the LoRA folder, and the multilingual-e5-large and Mistral-7B-v0.1 pages, so the card does not establish their contents.

Access & freshness

Costs

The card states no price, usage fee or hosting cost. The one-line 'license: mit' declaration is the only licensing information captured, and the card does not discuss fees or licence conditions.

Compute, memory, latency, throughput, energy, and cloud or GPU costs are all unknown, because the card gives no figures for any of them. Comparative resource use against other embedding models is also unknown.

The card states that each embedding has 4096 dimensions. It gives no storage figures and does not discuss dimension reduction or compression, so actual storage cost is unknown. The card also does not say whether a hosted API for this model exists or what it would cost.

Licence and rights

The card's front matter declares 'license: mit'. That one-line declaration is the only licence information in the captured card. The full licence text, the copyright holder and any copyright notice are not included. The exact terms that apply, and the notices required for reuse or redistribution, are therefore unverified.

As general background, and not as verified terms for this model, the standard MIT licence allows use, modification and redistribution as long as the copyright notice and licence text stay with copies. Check the actual licence file and copyright notice in the repository before relying on this.

The card does not discuss the licence terms of the base model Mistral-7B-v0.1 or of the fine-tuning datasets, and it does not list those datasets. Anyone planning commercial use or redistribution should check those upstream terms independently, because this evidence does not establish them.

The card asks users who find the work helpful to cite the two papers, and gives BibTeX entries.

Freshness

The reviewed text was captured on 14 November 2026 from revision d62cc4417be0e3289c03dd459d1ef2d137e2554e. The card gives no release date, version number or changelog, and the commit date is not in the evidence. How recently the model or card was updated is therefore unknown.

The cited paper is arXiv 2401.00368, which suggests the work dates from around the turn of 2023 to 2024. The card does not say whether the model has been superseded. Newer embedding models may exist, but the card makes no comparison with them, so the model's current standing against recent alternatives is unknown.

Suggested next steps

Before adopting the model, run the card's example on your target hardware to measure memory use and speed, since the card states neither. Then build a small test set of real queries and documents from your domain and compare this model with at least one other embedding model on both retrieval quality and resource use.

Always prefix queries with a task instruction in the form shown, and leave documents without one. The authors do not recommend inputs longer than 4096 tokens, so chunk longer documents. Use the model for English text, and evaluate multilingual-e5-large if you need other languages.

Before commercial deployment or redistribution, check the repository's licence file and copyright notice, plus the licence terms of the base model and training data. Plan vector storage for 4096 dimensions per item. Record the library versions you use. The card's FAQ notes that different transformers and pytorch versions can cause small differences, and pinning versions alone does not guarantee identical outputs. After changing the model, library versions or instruction wording, re-run your retrieval evaluation. In the documented approach, query instructions apply only to queries, so changing them alone leaves stored document embeddings unchanged. Regenerate stored vectors when a change affects document embeddings, for example switching models, changing how documents are encoded, or a library change that your evaluation shows has shifted document embeddings.

Evidence for this report

selected-page.txtselected · checked 2026-11-14