# AgentRXI Rerank

> AgentRXI Rerank is a paid API for AI agents from agentrxi.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-15).

Reranks up to 100 documents by relevance to a query using BGE reranker, returning sorted indices and scores best-first.

## Facts

- Endpoint: GET https://agentrxi.com/v1/rerank?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentrxi-rerank-8b58294c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4KrnJT4BJqrMm5USutD3L

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentrxi-rerank-8b58294c
```

Example prompt: Rerank these 5 passages by how relevant they are to the question 'What causes inflation?' and give me the top 3: 'Central banks raise interest rates to fight inflation | Supply chain disruptions raise prices | Inflation is measured by CPI | Governments print money to fund deficits | Stock markets reflect economic sentiment'.

## When to prefer this

Use this endpoint when you need a fast, pay-per-call reranking step in a RAG or hybrid search pipeline and don't want to self-host a reranker model. Prefer it over embedding-similarity-only ranking when result precision matters more than recall. The BGE reranker is a strong cross-encoder that outperforms cosine similarity for relevance scoring. At $0.003 per call it's cost-effective for up to 100 documents per request.

## Known failure modes

- Missing required 'query' or 'documents' parameters returns a 400 error
- Documents list exceeds 100 items may be rejected or truncated
- Pipe delimiter not used correctly in GET query parameter causes parsing errors
- Empty documents list or empty query string returns an error
- Payment not included or invalid causes 402 Payment Required response

## How this service works

Rerank up to 100 documents by relevance to a query (BGE reranker). Returns indices and scores, best first. Drop-in step for RAG and search pipelines. Also callable as GET with the same fields as query parameters.

## Output

An ordered list of results, best-first, each containing the original document index and a relevance score (float). The top_k parameter controls how many results are returned. Agents can use these indices to reorder their original document list.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query",
      "documents"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "top_k": {
       "type": "integer"
      },
      "documents": {
       "type": "string",
       "description": "separate items with |"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentrxi-rerank-8b58294c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentrxi.com](https://www.zero.xyz/host/agentrxi.com/llms.txt)
