antflydb/mxbai-rerank-base-v1
mxbai-rerank-base-v1 for Antfly Inference
This repository packages Mixedbread's mxbai-rerank-base-v1 reranker for Antfly Inference deployments. It includes the original safetensors checkpoint plus Antfly Inference GGUF variants for local CPU/GPU inference.
The model is a cross-encoder reranker: given a query and a set of candidate documents, it scores each query/document pair so retrieval systems can re-order candidates after lexical or embedding search.
Files
Intended Uses
- Reranking search results from BM25, vector search, or hybrid retrieval
- Improving top-k precision in RAG pipelines
- Local reranking in Antfly Inference services
- Offline evaluation of reranking quality and quantization drift
How to Use with Antfly Inference
antfly inference pull antflydb/mxbai-rerank-base-v1:gguf:Q8_0
antfly inference runUse :gguf:Q4_K instead for the smaller rank-oriented artifact.
curl -X POST http://localhost:8082/rerank \
-H "Content-Type: application/json" \
-d '{
"model": "antflydb/mxbai-rerank-base-v1",
"query": "Who wrote To Kill a Mockingbird?",
"documents": [
"To Kill a Mockingbird is a novel by Harper Lee.",
"Moby-Dick was written by Herman Melville.",
"Jane Austen wrote Pride and Prejudice."
]
}'Quantized Variants
The GGUF files were exported with Antfly's inference exporter from the mixedbread-ai/mxbai-rerank-base-v1 safetensors source.
Validation
Validated locally with Antfly CUDA rerank on:
- Basic relevance ranking
- Empty-document handling
- Long-input truncation
- Multi-document ordering
Results versus the safetensors CUDA baseline:
Q4K should be treated as a ranking-oriented compact artifact. Downstream systems that threshold absolute reranker scores should prefer `model.safetensors` or Q80.
Limitations
- This is an English-focused reranker inherited from the upstream Mixedbread model.
- It scores query/document pairs independently and is intended as a second-stage ranker, not as a standalone document index.
- Quantized GGUF files can change absolute scores; downstream systems should prefer rank/order checks over exact-score equality.
Source Model
This package is based on `mixedbread-ai/mxbai-rerank-base-v1`.
Citation
If you use this model, cite the upstream Mixedbread reranker work:
@online{rerank2024mxbai,
title={Boost Your Search With The Crispy Mixedbread Rerank Models},
author={Aamir Shakir and Darius Koenig and Julius Lipp and Sean Lee},
year={2024},
url={https://www.mixedbread.ai/blog/mxbai-rerank-v1},
}License
Apache 2.0. See LICENSE.
