Gte-Rerank-V2

Model IntroductionText

GTE-Rerank-V2 is a second-generation text reranking model developed by Alibaba’s Tongyi Lab (part of the GTE family). It is designed to reorder a list of candidate passages by their relevance to a query, typically used after an initial retrieval step.

  • Core features: Cross-encoder architecture for precise query–passage interaction; supports long inputs (up to 8,192 tokens); multilingual (English, Chinese, and others); improved accuracy over GTE-Rerank-V1; available via Hugging Face and ModelScope.
  • Use cases: Two-stage retrieval pipelines (e.g., RAG, search engines, question answering), where a fast retriever (like GTE embeddings) fetches top‑k documents and GTE-Rerank-V2 reorders them for final ranking.

API request example

Endpoint /v1/chat/completions. Replace <API_KEY> with a key from the console.

Standard OpenAI Chat Completions. Swap `model` for the target slug.

curl https://api.ravenrouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
  "model": "Gte-Rerank-V2",
  "messages": [
    {
      "role": "user",
      "content": "Hello! Introduce yourself in one sentence."
    }
  ],
  "max_tokens": 64
}'

More models: API Reference → Examples by model

Gte-Rerank-V2 API — $0.13/1M input, $0.13/1M output | RavenRouter AI