Check the init and runtime parameters you can configure for CohereDocumentEmbedder.
YAML Init Parameters
These are the parameters you can specify in pipeline YAML:
Parameter | Type | Possible values | Description |
---|---|---|---|
| Secret | Default: | The Cohere API key. |
| String |
| The name of the model to use. For a list of supported models, see Cohere documentation. |
| String |
| Specifies the type of input for the model. Optional for models lower than v3, required for v3 and higher. |
| String | Default: | The Cohere API base URL. |
| String |
| Truncate embeddings that are too long from the start or the end. |
| Boolean |
| Flag to select the AsyncClient. Recommended for applications with many concurrent calls. |
| Integer | Default: | Request timeout in seconds. Required. |
| Integer | Default: | Number of documents to encode at once. |
| Boolean |
| Shows a progress bar. Can be helpful to disable in production deployments to keep the logs clean. |
| List of strings | Default: | List of metadata fields that should be embedded along with the document text. |
| String | Default: | Separator used to concatenate the meta fields to the Document text. Required. |