Rerank candidates against a question
jev_rankRank candidates by relevance to a question, returning sorted IDs with probabilities and cost usage. Set top-k or threshold to filter results.
Instructions
Score each candidate for relevance to a question and return [{id, probability}] sorted by probability, plus token and cost usage. Candidates are truncated to 2000 characters and sent 40 per request.
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": {
"question": "<question>",
"candidates": "<candidates>"
},
"name": "jev_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | Return at most this many results; null returns all. | |
| question | Yes | What the candidates are being ranked against. | |
| threshold | No | Drop candidates scoring below this probability. | |
| candidates | Yes | Candidates as [{id, text}]. Missing ids fall back to list position. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||