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
Category | Details |
---|---|
Model Name | E5 Mistral 7B Instruct |
Version | Original |
Model Category | Embedding |
Size | 7B parameters |
HuggingFace Model | e5-mistral-7b-instruct |
OpenAI Compatible Endpoint | Embeddings |
License | MIT |
Capabilities
Feature | Details |
---|---|
Azion Long-term Support (LTS) | ❌ |
Context Length | 32728 |
Supports LoRA | ✅ |
Input Data | Text |
Usage
Embedding
This is an example of how to use this model to generate embeddings for text input:
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" } } ] } } ] } }}