Rank passages by relevance to a query
seb_rerankUse to rerank retrieved passages, search results or memories for one query with Seb-rerank (preview), a small dedicated relevance model. Supply the query and 1–100 passages, scored exactly as given (a passage that does not fit the 32,768-token context window returns INPUT_TOO_LONG with its index); optionally replace the default relevance question with task-specific instructions. Returns, in input order, each passage index with a relevance score (a logit; higher is more relevant) and probability = sigmoid(score). Sort by score. No explanation. Model estimates can be wrong. Requires a funded account token; charges input tokens.
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>",
"passages": "<passages>"
},
"name": "seb_rerank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search query or question, up to 2,000 characters. | |
| passages | Yes | 1–100 candidate passages in input order, scored exactly as given (never cut). Each passage with the query must fit the 32,768-token context window; one that does not returns INPUT_TOO_LONG with its index. | |
| instructions | No | Optional task-specific relevance question, e.g. "Decide whether the memory passage helps answer the user's question." Defaults to "Decide whether the candidate passage answers the query." |