ai

Search Result Reranking

Cross-encoder reranking of retrieved documents by relevance to a query, at fixed model precision. POST /v1/reranking with {query, documents} and get the reordered ranking as one JSON object. Deterministic. Pay per request in USDC; no account, no API key.

post/v1/reranking

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/reranking
  • Auth: none required

Request body

querystring required

The query to rank against.

documentsstring[] required

The candidate documents.

Response

The upstream response, served after payment settles.

object required

For POST /v1/reranking, a JSON object with a ranking array ordered by relevance. The exact shape is the service's own and is not pinned here; errors return a JSON object with an error field, and the GET routes return their own small JSON documents.

Changes

No recorded changes to this operation across all 1 revision of this API.