mistral_common.protocol.embedding.request
EmbeddingRequest(**data)
Bases: MistralBase
"Embedding request model used to generate embeddings for the given input.
See EmbeddingResponse for the response model.
Attributes:
Name | Type | Description |
---|---|---|
input |
Union[str, List[str]]
|
Text to embed. |
model |
str
|
ID of the model to use. |
encoding_format |
Optional[str]
|
The format to return the embeddings in. |
Examples: