This file contains the MistralEncoder class which is used to encode text using MistralAI
Class to encode text using MistralAI. Requires a MistralAI API key from https://console.mistral.ai/api-keys/
Initialize the MistralEncoder.
Arguments:
name
(str
): The name of the embedding model to use such as “mistral-embed”.mistralai_api_key
(str
): The MistralAI API key.score_threshold
: The score threshold for the embeddings.