# Pocket Network Cross-Encoder Reranking

> Pocket Network Cross-Encoder Reranking is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Reranks a list of candidate documents by relevance to a query using a fixed-precision cross-encoder model, returning a deterministically ordered ranking.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/reranking?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-cross-encoder-reranking-7f9f9923
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c5GqMhciR0lg-21wxM8-2

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 pocket-network-cross-encoder-reranking-7f9f9923 -d '<json body>'
```

Example prompt: I have a user question — 'What are the side effects of ibuprofen?' — and 8 retrieved passages from our knowledge base. Rerank those passages by how relevant they are to the question so I can feed the top ones to the LLM.

## When to prefer this

Use this endpoint when you need deterministic, pay-per-call cross-encoder reranking without an API key or account setup, especially in RAG pipelines where retrieved document order directly affects LLM output quality. Prefer this over embedding-based similarity rankings when you need a cross-encoder's higher-accuracy pairwise relevance scoring. Ideal for agents that process variable query loads and want per-request USDC billing with no subscription overhead.

## Known failure modes

- Empty documents array returns an error or empty ranking
- Query string missing causes request rejection
- Very long documents or large arrays may hit payload size limits
- Fixed model precision may produce tied scores for semantically similar documents
- Non-English or multilingual content may produce degraded ranking quality

## How this service works

Pay-per-call access to Pocket Network services. No account, no API key.

## Output

Returns a JSON object containing the reordered ranking of the submitted documents, sorted from most to least relevant to the query, along with relevance scores for each document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "The query to rank against."
  },
  "documents": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "The candidate documents."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "portal": {
   "serviceId": "reranking",
   "provenance": "third-party-supplier",
   "schemaCheck": "passed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-cross-encoder-reranking-7f9f9923/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
