mistral_to_list
embeds(EmbeddingResponse): The Mistral embedding response.
list[list[float]]: One embedding per input document.
MistralEncoder Objects
__init__
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.
__call__
docs(list[Any]): List of text documents to encode.
list[list[float]]: List of embeddings for each document.
acall
docs(list[Any]): List of text documents to encode.
list[list[float]]: List of embeddings for each document.
