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 Length32728
Supports LoRA
Input DataText

Usage

Embedding

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

Terminal window
curl http://endpoint-url/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"input": "The food was delicious and the waiter...",
"model": "intfloat/e5-mistral-7b-instruct",
"encoding_format": "float"
}'

Running with Edge Functions:

This is and example of how to use this model with Edge Functions:

const modelResponse = await Azion.AI.run("intfloat-e5-mistral-7b-instruct", {
"input": "The food was delicious and the waiter...",
"encoding_format": "float"
})

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"
}
}
]
}
}
]
}
}
}