state-of-the-art performance and strong efficiency
multilingual support (100+ languages, outstanding English and Chinese performance)
code support
long-context support
⚙️ Usage
Install mxbai-rerank
pip install mxbai-rerank
Inference
from mxbai_rerank import MxbaiRerankV2
model = MxbaiRerankV2("mixedbread-ai/mxbai-rerank-base-v2")
query = "Who wrote 'To Kill a Mockingbird'?"
documents = [
"'To Kill a Mockingbird' is a novel by Harper Lee published in 1960. It was immediately successful, winning the Pulitzer Prize, and has become a classic of modern American literature.",
"The novel 'Moby-Dick' was written by Herman Melville and first published in 1851. It is considered a masterpiece of American literature and deals with complex themes of obsession, revenge, and the conflict between good and evil.",
"Harper Lee, an American novelist widely known for her novel 'To Kill a Mockingbird', was born in 1926 in Monroeville, Alabama. She received the Pulitzer Prize for Fiction in 1961.",
"Jane Austen was an English novelist known primarily for her six major novels, which interpret, critique and comment upon the British landed gentry at the end of the 18th century.",
"The 'Harry Potter' series, which consists of seven fantasy novels written by British author J.K. Rowling, is among the most popular and critically acclaimed books of the modern era.",
"'The Great Gatsby', a novel written by American author F. Scott Fitzgerald, was published in 1925. The story is set in the Jazz Age and follows the life of millionaire Jay Gatsby and his pursuit of Daisy Buchanan."
]
# Lets get the scores
results = model.rank(query, documents, return_documents=True, top_k=3)
print(results)
Performance
Benchmark Results
Model
BEIR Avg
Multilingual
Chinese
Code Search
Latency (s)
mxbai-rerank-large-v2
57.49
29.79
84.16
32.05
0.89
mxbai-rerank-base-v2
55.57
28.56
83.70
31.73
0.67
mxbai-rerank-large-v1
49.32
21.88
72.53
30.72
2.24
*Latency measured on A100 GPU
Training Details
The models were trained using a three-step process:
@online{rerank2025mxbai,
title={Every Byte Matters: Introducing mxbai-embed-xsmall-v1},
author={Sean Lee and Aamir Shakir and Julius Lipp and Rui Huang},
year={2025},
url={https://www.mixedbread.com/blog/mxbai-rerank-v2},
}
Runs of michaelfeil mxbai-rerank-base-v2-seq on huggingface.co
38
Total runs
0
24-hour runs
2
3-day runs
13
7-day runs
13
30-day runs
More Information About mxbai-rerank-base-v2-seq huggingface.co Model
mxbai-rerank-base-v2-seq huggingface.co is an AI model on huggingface.co that provides mxbai-rerank-base-v2-seq's model effect (), which can be used instantly with this michaelfeil mxbai-rerank-base-v2-seq model. huggingface.co supports a free trial of the mxbai-rerank-base-v2-seq model, and also provides paid use of the mxbai-rerank-base-v2-seq. Support call mxbai-rerank-base-v2-seq model through api, including Node.js, Python, http.
mxbai-rerank-base-v2-seq huggingface.co is an online trial and call api platform, which integrates mxbai-rerank-base-v2-seq's modeling effects, including api services, and provides a free online trial of mxbai-rerank-base-v2-seq, you can try mxbai-rerank-base-v2-seq online for free by clicking the link below.
michaelfeil mxbai-rerank-base-v2-seq online free url in huggingface.co:
mxbai-rerank-base-v2-seq is an open source model from GitHub that offers a free installation service, and any user can find mxbai-rerank-base-v2-seq on GitHub to install. At the same time, huggingface.co provides the effect of mxbai-rerank-base-v2-seq install, users can directly use mxbai-rerank-base-v2-seq installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mxbai-rerank-base-v2-seq install url in huggingface.co: