Rerank
cohere.rerank
ActionAI & modelsconnection required
Calls the Cohere API POST /v2/rerank.
Reorder candidate documents by relevance to a query (improves RAG retrieval).
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Cohere
- Secret shape
- the Cohere API key
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
query Query. Supports {{ }}. | string | Yes | — | — | — |
documents Candidate documents (JSON array). Supports {{ }}. | array | Yes | — | array of string | — |
model Rerank model. | string | No | rerank-v3.5 | — | — |
top_n Return the top N (blank = all). | number | No | — | ≥ 1 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"model": "rerank-v3.5"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
results | array | — |
count | number | — |
{
"count": 0,
"results": []
}Related Cohere nodes
See Rerank run in a workflow.
In a technical demo we add the Cohere connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.