cohere_rerank
Rerank documents by relevance to a query using Cohere's reranking model. Improve search result quality by prioritizing most relevant content.
Instructions
Rerank a list of documents by relevance to a query using Cohere Rerank.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"documents": "<documents>"
},
"name": "cohere_rerank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Rerank model (default: rerank-english-v3.0) | |
| query | Yes | ||
| top_n | No | Return top N results | |
| api_key | No | ||
| documents | Yes | JSON array of strings or {text} objects |