Score every candidate's relevance and return them sorted
jev_rerankRerank up to 250 candidates against a query, assigning each an independent relevance probability and returning them sorted by score. Use for retrieval ordering, dedup triage, or feed ranking.
Instructions
Rerank candidates against a query with TypeSafe Jev: one independent relevance probability per candidate, all in a single request, then sorted by score. Unlike jev_find (which picks one best answer), rerank scores every candidate so the full ordering survives. TypeSafe's rerank cookbook reports that on the CLERC benchmark this pattern lifted top-1 from 5% to 18% and top-10 from 38% to 62% (docs.typesafe.ai/cookbooks). Use for retrieval ordering, dedup triage, or feed ranking across up to 250 candidates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What relevance is measured against, in natural language. | |
| top_k | No | How many ranked candidates to return. Default: all. | |
| candidates | Yes | Candidates to search. Up to 250 in one call; texts are truncated at 2000 chars. |