You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-langchain-mistralai-0.2.10-1.lbn36.noarch

python3-langchain-mistralai-0.2.10-1.lbn36.noarch

Package Attributes
RPM  python3-langchain-mistralai-0.2.10-1.lbn36.noarch.rpm Architecture  noarch Size  138263 Created  2025/05/13 02:04:21 UTC
Package Specification
Summary An integration package connecting Mistral and LangChain
Group Unspecified
License ZPL
Home Page https://pypi.org/project/langchain-mistralai
Description

langchain-mistralai This package contains the LangChain integrations for MistralAI through their mistralai SDK. Installation pip install -U langchain-mistralai

Chat Models This package contains the ChatMistralAI class, which is the recommended way to interface with MistralAI models. To use, install the requirements, and configure your environment. export MISTRAL_API_KEY=your-api-key

Then initialize from langchain_core.messages import HumanMessage from langchain_mistralai.chat_models import ChatMistralAI

chat = ChatMistralAI(model="mistral-small") messages = [HumanMessage(content="say a brief hello")] chat.invoke(messages)

ChatMistralAI also supports async and streaming functionality:

await chat.ainvoke(messages)

for chunk in chat.stream(messages): print(chunk.content, end="", flush=True)

Embeddings With MistralAIEmbeddings, you can directly use the default model mistral-embed, or set a different one if available. Choose model embedding.mode

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
(python3.10dist(httpx-sse) < 1~~ with python3.10dist(httpx-sse) >= 0.3.1)  
rpmlib(CompressedFileNames)  
(python3.10dist(httpx) < 1~~ with python3.10dist(httpx) >= 0.25.2)  
rpmlib(RichDependencies)  
rpmlib(PartialHardlinkSets)  
(python3.10dist(tokenizers) < 1~~ with python3.10dist(tokenizers) >= 0.15.1)  
(python3.10dist(langchain-core) < 1~~ with python3.10dist(langchain-core) >= 0.3.49)  
rpmlib(TildeInVersions)  
(python3.10dist(pydantic) < 3~~ with python3.10dist(pydantic) >= 2)  
rpmlib(FileDigests)  
Provides
python-langchain-mistralai
python3-langchain-mistralai
python3.10-langchain-mistralai
python3.10dist(langchain-mistralai)
python3dist(langchain-mistralai)
Obsoletes
python-langchain-mistralai

Document Actions