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