Skip to main content

MistralAI

Mistral AI is a platform that offers hosting for their powerful open source models.

Installation and Setupโ€‹

A valid API key is needed to communicate with the API.

You will also need the langchain-mistralai package:

pip install langchain-mistralai

Chat modelsโ€‹

ChatMistralAIโ€‹

See a usage example.

from langchain_mistralai.chat_models import ChatMistralAI
API Reference:ChatMistralAI

Embedding modelsโ€‹

MistralAIEmbeddingsโ€‹

See a usage example.

from langchain_mistralai import MistralAIEmbeddings
API Reference:MistralAIEmbeddings

Was this page helpful?