Skip to main content

Cohere

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

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

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

Cohere text generation

This component generates text using Cohere's language models.

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

Use the Language Model output when you want to use a Cohere 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.

Cohere text generation parameters

Many Cohere 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
Cohere API KeySecretStringInput parameter. Your Cohere API key.
Max TokensIntegerInput parameter. Specifies the maximum number of tokens to generate. Defaults to 256.
TemperatureFloatInput parameter. Specifies the sampling temperature. Defaults to 0.75.
Input ValueStringInput parameter. Specifies the input text for text generation.

Cohere Embeddings

The Cohere Embeddings component is used to load embedding models from Cohere.

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

Cohere Embeddings parameters

NameTypeDescription
cohere_api_keyStringInput parameter. The API key required to authenticate with the Cohere service.
modelStringInput parameter. The language model used for embedding text documents and performing queries. Default: embed-english-v2.0.
truncateBooleanInput parameter. Whether to truncate the input text to fit within the model's constraints. Default: False.
Search