BAAI/bge-reranker-v2-m3
BAAI/bge-reranker-v2-m3 is a lightweight reranker model with strong multilingual capabilities.
BAAI/bge-reranker-v2-m3 is a lightweight reranker model with strong multilingual capabilities. It’s easy to deploy and offers fast inference.
Model details
| Category | Details |
|---|---|
| Model Name | BAAI/bge-reranker-v2-m3 |
| Version | Original |
| Model Category | Reranker |
| Size | 568M parameters |
| HuggingFace Model | BAAI/bge-reranker-v2-m3 |
| License | Apache 2.0 |
Capabilities
| Feature | Details |
|---|---|
| Context Length | 8k tokens |
| Supports LoRA | ❌ |
| Input data | Text |
Usage
Rerank example
This is an example of a basic rerank request using this model:
| Property | Type | Description |
|---|---|---|
query | string | The search query or prompt to rank the documents against. |
documents | string[] | An array of documents to be ranked based on their relevance to the query. |
Score example
This is an example of a basic score request using this model:
| Property | Type | Description |
|---|---|---|
text_1 | string | The first text input for the model to process. |
text_2 | string[] | An array of text inputs for the model to process and give a score. |
Response example:
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the rerank request. |
model | string | The name of the model used for reranking. |
usage.total_tokens | number | The total number of tokens used in the request. |
results[] | object[] | An array of reranked result objects. |
results[].index | number | The index of the document in the input list. |
results[].document | object | The document object containing the text. |
results[].document.text | string | The textual content of the document. |
results[].relevance_score | number | The relevance score assigned to the document by the model. |