Generate Embeddings Using Mistral API
mistral_embedding(
.input,
.model = "mistral-embed",
.timeout = 120,
.max_tries = 3,
.dry_run = FALSE
)
A matrix where each column corresponds to the embedding of a message in the message history.
A character vector of texts to embed or an LLMMessage
object
The embedding model identifier (default: "mistral-embed").
Timeout for the API request in seconds (default: 120).
Maximum retries to peform request
If TRUE, perform a dry run and return the request object.