Skip to main content

Documentation Index

Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-mdrxyo-1777658790-7be347c.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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

Embedding models

MistralAIEmbeddings

See a usage example.
from langchain_mistralai import MistralAIEmbeddings