# Citiview BGE Reranker

> Citiview BGE Reranker is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-14).

Reranks up to 100 documents by relevance to a query using the BGE reranker model, returning ranked indices and scores.

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/rerank?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-bge-reranker-40a7fa94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PQFDq8OM_182YZJNsKAJG

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 citiview-bge-reranker-40a7fa94
```

Example prompt: Rerank these five documents by relevance to my query 'what causes inflation' and give me the top 3: 'Central banks raise rates to control inflation|Supply chain disruptions drive up prices|The history of ancient Rome|Interest rate policy explained|Grocery store loyalty programs'

## When to prefer this

Use this endpoint as a reranking step after initial retrieval (vector search, BM25, keyword) in RAG pipelines when you need to improve precision before passing context to an LLM. Prefer it over embedding-based similarity alone because cross-encoder rerankers like BGE are significantly more accurate at relevance scoring. Best when you have 5–100 candidate documents and need the top-k most relevant ones.

## Known failure modes

- Missing required 'query' or 'documents' parameters returns an error
- Documents list exceeds 100 item limit may be rejected
- Empty query string may produce meaningless scores
- Very long individual documents may be truncated by the model
- Payment failure (402) if USDC balance is insufficient

## 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

Returns a ranked list of objects containing the original document index and a relevance score, ordered from most to least relevant to the query. The top_k parameter limits how many results are returned.

## 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/citiview-bge-reranker-40a7fa94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
