Skip to main content

Documentation Index

Fetch the complete documentation index at: https://nvd-54.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.

安装和设置

A valid API key is needed to communicate with the API. You will also need the langchain-mistralai package:
pip install langchain-mistralai

聊天模型

ChatMistralAI

查看使用示例.
from langchain_mistralai.chat_models import ChatMistralAI

向量嵌入模型

MistralAIEmbeddings

查看使用示例.
from langchain_mistralai import MistralAIEmbeddings