BGE Reranker Base
BAAI/bge-reranker-base
published Sep 2023 · updated Jun 2024
BGE Reranker Base is a cross-encoder reranker model that re-ranks top-k retrieved documents to improve relevance ranking for retrieval-augmented generation and search systems.
specs
| Task | Reranking |
| Architecture | XLM-RoBERTa |
| Parameters | 278M |
| License | MIT |
about this model
| Dataset | MAP | MRR |
|---|---|---|
| CMedQAv1-reranking | 81.27 | 84.14 |
| CMedQAv2-reranking | 84.10 | 86.79 |
| Mmarco-reranking | 35.46 | 34.60 |
| T2Reranking | 67.28 | 77.13 |
best for
- ·Re-ranking search results in retrieval-augmented generation (RAG) pipelines
- ·Improving document retrieval precision by re-ranking top-k passages from embedding models
- ·Bilingual reranking in Chinese and English
FAQ
It is best for re-ranking documents retrieved by a faster embedding model to improve relevance, commonly in RAG systems and search.
It is more accurate than embedding models for ranking but less efficient, which is why it is typically used on a small set of top-k results.
Input: a pair of query and document text. Output: a relevance score (usually as logits or softmax probability).
Use the gigarouter OpenAI-compatible endpoint with your API key, passing the query and documents in the request body.
It is released under the MIT License.
# rerank documents by relevance; billed per document curl https://gigarouter.ai/v1/rerank \ -H "Authorization: Bearer $GR_KEY" \ -d '{"model":"BAAI/bge-reranker-base","query":"capital of France", "documents":["Paris is the capital of France.","Bananas are yellow."]}'
try it live
runs the real hosted model on a shared demo allowance · get your own key + $25 free →