CohereTextEmbedder Parameters

Check the init parameters you can specify for the ReturnError node.

YAML Init Parameters

These are the parameters you can specify in pipeline YAML:

ParameterTypePossible valuesDescription
api_keySecretDefault: {"type": "env_var", "env_vars": ["COHERE_API_KEY", "CO_API_KEY"], "strict": False}The Cohere API key. Required.
modelStringembed-english-v3.0,
embed-english-light-v3.0,
embed-multilingual-v3.0,
embed-multilingual-light-v3.0,
embed-english-v2.0,
embed-english-light-v2.0,
embed-multilingual-v2.0
Default: embed-english-v2.0,
The name of the model to use. For a list of supported models, see Cohere documentation.
Required.
input_typeStringsearch_document,
search_query,
classification,
clustering
Default: search_query
Specifies the type of input for the model. Optional for models lower than v3, required for v3 and higher.
api_base_urlStringDefault: https://api.cohere.comThe Cohere API base URL.
Optional.
truncateStringNONE,
START,
END
Default: END
Truncate embeddings that are too long from the start or the end. Possible values:
START discards the start of the input until the remaining input is exactly the maximum input token length for the model.
END discards the end of the input until the remaining input is exactly the maximum input token length for the model.
NONEreturns an error if the input exceeds the maximum input token length.

Optional.
use_async_clientBooleanTrue
False
Default: False
Flag to select the AsyncClient. Recommended for applications with many concurrent calls.
Optional.
timeoutIntegerDefault: 120Request timeout in seconds.
Optional.

REST API Runtime Parameters

There are no runtime parameters you can pass to this component when making a request to the Search REST API endpoint.