# Rerank documents

> Score up to 32 documents against a query with @cf/baai/bge-reranker-base.

`rerank`

Example: POST /v1/tools/rerank {"query":"docs","documents":["a","b"]}

MCP: https://botthru.com/mcp?tools=rerank

Alias: https://botthru.com/mcp/rerank

```json
{
  "mcpServers": {
    "botthru-rerank": {
      "url": "https://botthru.com/mcp?tools=rerank",
      "transport": "streamable-http"
    }
  }
}
```

REST: `POST https://botthru.com/v1/tools/rerank {"query":"docs","documents":["a","b"]}`
