Rerank passages by relevance to a query via Cloudflare Workers AI (@cf/baai/bge-
Rerank passages by relevance to a query via Cloudflare Workers AI (@cf/baai/bge-reranker-base). Send {query, documents[] (≤50, each ≤4000 chars), topK?}; returns [{index, score}] best-first — the missing link after embed/chunk, keeping the top chunks before a costly LLM call. Score is the model's relevance score (higher = better), named as it only compares within this model. Unavailable binding → 503, unbilled.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://402utils.com/v1/rerank
| Category | Everything else |
|---|---|
| Provider host | 402utils.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"body": {
"documents": [
"To reset your password, click 'Forgot password' on the sign-in page.",
"Our office is open Monday to Friday, 9am to 5pm.",
"Passwords must be at least 12 characters and are reset from account settings."
],
"query": "How do I reset my password?",
"topK": 2
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"documents": {
"description": "Candidate passages to rank (\u2264 50, each \u2264 4000 chars).",
"items": {
"type": "string"
},
"maxItems": 50,
"type": "array"
},
"query": {
"description": "The search query (\u2264 4000 chars).",
"type": "string"
},
"returnDocuments": {
"default": false,
"description": "Include each ranked document's text in the results.",
"type": "boolean"
},
"topK": {
"description": "Return only the K best (default: all, ranked).",
"minimum": 1,
"type": "integer"
}
},
"required": [
"query",
"documents"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"model": {
"description": "The reranker model used (scores compare only within one model).",
"type": "string"
},
"results": {
"description": "Ranked best-first. `index` refers to the input documents array.",
"items": {
"properties": {
"document": {
"description": "The document text (only when returnDocuments=true).",
"type": "string"
},
"index": {
"description": "Position of this document in the request `documents` array.",
"type": "integer"
},
"score": {
"description": "Relevance score from the model (higher = more relevant).",
"type": "number"
}
},
"required": [
"index",
"score"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"results",
"model"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}