E5 Mistral 7B Instruct

The E5 Mistral 7B Instruct model is optimized for English text embedding tasks, with capabilities for multilingual processing, flexible customization, and handling long input sequences, making it suitable for complex natural language processing applications.

Model details

CategoryDetails
Model NameE5 Mistral 7B Instruct
VersionOriginal
Model CategoryEmbedding
Size7B parameters
HuggingFace Modele5-mistral-7b-instruct
OpenAI Compatible EndpointEmbeddings
LicenseMIT

Capabilities

FeatureDetails
Azion Long-term Support (LTS)
Context Length32k tokens
Supports LoRA
Input DataText

Usage

Embedding

This is an example of how to use this model to generate embeddings for text input:

const modelResponse = await Azion.AI.run("intfloat-e5-mistral-7b-instruct", {
"input": "The food was delicious and the waiter...",
"encoding_format": "float"
})
PropertyTypeDescription
inputstringThe text input for which embeddings are generated.
encoding_formatstringThe format of the embedding output.

Response example:

{
"id": "embd-84a83438abff420e9c785c1659ae8ad6",
"object": "list",
"created": 1746821207,
"model": "intfloat-e5-mistral-7b-instruct",
"data": [
{
"index": 0,
"object": "embedding",
"embedding": [0.01, ..., 0.005]
}
],
"usage": {
"prompt_tokens": 11,
"total_tokens": 11,
"completion_tokens": 0,
"prompt_tokens_details": null
}
}
PropertyTypeDescription
idstringUnique identifier for the embedding request.
objectstringThe type of the returned object.
creatednumberUnix timestamp indicating when the request was created.
modelstringThe name of the model used for generating embeddings.
dataarrayAn array of embedding result objects.
data[].indexnumberThe index of the embedded item in the input.
data[].objectstringThe type of object in the data array.
data[].embeddingarrayThe array of floating-point numbers representing the embedding vector.
usage.prompt_tokensnumberNumber of tokens in the input prompt.
usage.total_tokensnumberTotal tokens used in the request.
usage.completion_tokensnumberTokens used in the model’s output.
usage.prompt_tokens_detailsstringAdditional token detail data.

JSON schema

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"input"
],
"properties": {
"encoding_format": {
"type": "string",
"enum": [
"float",
"base64"
]
},
"dimensions": {
"type": "integer"
},
"input": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "array",
"items": {
"type": "integer"
}
}
]
}
}
]
}
}
}