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.

FieldTypeRequiredDefaultConstraintsExample
query
Query. Supports {{ }}.
stringYes———
documents
Candidate documents (JSON array). Supports {{ }}.
arrayYes—array of string—
model
Rerank model.
stringNorerank-v3.5——
top_n
Return the top N (blank = all).
numberNo—≥ 1—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "model": "rerank-v3.5"
}

Output

One shape.

result

FieldTypeExample
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.