Skip to main content

MistralAI

Bundles contain custom components that support specific third-party integrations with Langflow.

This page describes the components that are available in the MistralAI bundle.

For more information about MistralAI features and functionality used by MistralAI components, see the MistralAI documentation.

MistralAI text generation

The MistralAI component generates text using MistralAI LLMs.

It can output either a Model Response (Message) or a Language Model (LanguageModel).

Use the Language Model output when you want to use a MistalAI model as the LLM for another LLM-driven component, such as a Language Model or Smart Function component.

For more information, see Language Model components.

MistralAI text generation parameters

Many MistralAI component input parameters are hidden by default in the visual editor. You can toggle parameters through the Controls in the component's header menu.

NameTypeDescription
max_tokensIntegerInput parameter. The maximum number of tokens to generate. Set to 0 for unlimited tokens (advanced).
model_nameStringInput parameter. The name of the Mistral AI model to use. Options include open-mixtral-8x7b, open-mixtral-8x22b, mistral-small-latest, mistral-medium-latest, mistral-large-latest, and codestral-latest. Default: codestral-latest.
mistral_api_baseStringInput parameter. The base URL of the Mistral API. Defaults to https://api.mistral.ai/v1 (advanced).
api_keySecretStringInput parameter. The Mistral API Key to use for authentication.
temperatureFloatInput parameter. Controls randomness in the output. Default: 0.5.
max_retriesIntegerInput parameter. Maximum number of retries for API calls. Default: 5 (advanced).
timeoutIntegerInput parameter. Timeout for API calls in seconds. Default: 60 (advanced).
max_concurrent_requestsIntegerInput parameter. Maximum number of concurrent API requests. Default: 3 (advanced).
top_pFloatInput parameter. Nucleus sampling parameter. Default: 1 (advanced).
random_seedIntegerInput parameter. Seed for random number generation. Default: 1 (advanced).
safe_modeBooleanInput parameter. Enables safe mode for content generation (advanced).

MistralAI Embeddings

The MistralAI Embeddings component generates embeddings using MistralAI models.

For more information about using embedding model components in flows, see Embedding Model components.

MistralAI Embeddings parameters

Many MistralAI Embeddings component input parameters are hidden by default in the visual editor. You can toggle parameters through the Controls in the component's header menu.

NameTypeDescription
modelStringInput parameter. The MistralAI model to use. Default: "mistral-embed".
mistral_api_keySecretStringInput parameter. The API key for authenticating with MistralAI.
max_concurrent_requestsIntegerInput parameter. The maximum number of concurrent API requests. Default: 64.
max_retriesIntegerInput parameter. The maximum number of retry attempts for failed requests. Default: 5.
timeoutIntegerInput parameter. The request timeout in seconds. Default: 120.
endpointStringInput parameter. The custom API endpoint URL. Default: https://api.mistral.ai/v1/.
Search