mistral_tools.embeddings
A wrapper around the Mistral API for getting embeddings
Functions
|
Compute the number of tokens in the input |
Classes
|
A wrapper around the Mistral API for getting embeddings |
- mistral_tools.embeddings.get_n_tokens(input, model, tokenizer=None)[source]
Compute the number of tokens in the input
- class mistral_tools.embeddings.EmbeddingModel(*, api_key, model, rate_limit: float | RateLimiter = 1.1, max_n_tokens: int = 16384)[source]
A wrapper around the Mistral API for getting embeddings