jev_rank
Rank up to 500 candidate texts by how well each answers your query, with calibrated relevance scores to triage search hits, passages, files, or tool results before reading.
Instructions
Rank up to 500 candidate texts by how well each helps answer a query, using Jev's calibrated yes/no judgment (one question per candidate, batched).
Use it to triage search hits, retrieved passages, files, tool results or skills before you spend reading budget on them — and to find out whether anything in the set is relevant at all (any_relevant).
Candidates are judged independently and in parallel, so ranking 200 is barely slower than ranking 5. Oversized sets are auto-chunked to fit the context budget.
Pass short, self-contained candidate texts (a snippet, a docstring, a summary); a whole file per candidate wastes budget and dilutes the judgment. Candidate text is NOT echoed back — keep your own id -> text map.
relevance is P(helps answer the query): near 1 relevant, near 0 not, near 0.5 the model is unsure. Use min_relevance to drop the tail rather than trusting the ordering of near-ties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What you are trying to find out. | |
| top_k | No | How many ranked results to return. Default 10. | |
| candidates | Yes | The candidates to rank, 1 to 500. | |
| instructions | No | Optional extra definition of what counts as relevant here, folded into every question. | |
| min_relevance | No | Drop candidates whose relevance is below this. Default 0 (keep everything). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The versioned model id that actually answered. | |
| usage | Yes | Token usage. Jev charges for input tokens only. | |
| chunks | Yes | How many API requests the candidate set was split into. | |
| ranked | Yes | Sorted by relevance descending; ties keep input order. Candidate text is not echoed back. | |
| latency_ms | Yes | Wall-clock time for the underlying API call(s), including retries. | |
| any_relevant | Yes | P(at least one candidate helps answer the query), the maximum across chunks. Low means: look elsewhere. | |
| total_candidates | Yes | How many candidates were judged, before top_k/min_relevance. |