Learn what parameters you can set for CohereRanker.
YAML Init Parameters
These are the parameters you can pass to this component in the pipeline YAML configuration:
Parameter | Type | Possible values | Description |
---|---|---|---|
| String | Default: | Cohere model name. Check the list of supported models in the Cohere documentation. |
| Integer | Default: | The maximum number of documents to return. Required. |
| Secret | Default: | Cohere API key. |
| String | Default: | The base URL of the Cohere API. Required. |
| Integer | Default: | If your document exceeds 512 tokens, this determines the maximum number of chunks a document can be split into. If |
| List of strings | Default: | List of metadata fields to concatenate with the document content for reranking. |
| String | Default: | Separator used to concatenate the meta fields to the document content. Required. |
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.