Model reference · open weights
BGE Reranker v2 M3 is an open-weight reranker from BAAI, listed on the AxForge serverless API, in Cohere's rerank shape and hosted in the EU.
Check the console for current access, prices and availability.
What it is
| Released by | BAAI |
|---|---|
| Parameters | 568M |
How it works
Using it via the API
BGE Reranker v2 M3 answers on the API today as bge-reranker-v2-m3, in the request and answer shape
Cohere and Jina use, with the same base URL and keys as every other model.
# your API key, from API Keys
export AXFORGE_API_KEY="YOUR_KEY"
curl https://api.axforge.ai/v1/rerank \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"bge-reranker-v2-m3","query":"When is the invoice due?","documents":["The office is closed on Mondays.","Payment is due within 30 days of the invoice date.","Invoices are sent by email."],"top_n":2}'
# your API key, from API Keys
$env:AXFORGE_API_KEY = "YOUR_KEY"
$call = @{
Method = "Post"
Uri = "https://api.axforge.ai/v1/rerank"
Headers = @{ Authorization = "Bearer $env:AXFORGE_API_KEY" }
ContentType = "application/json"
Body = '{"model":"bge-reranker-v2-m3","query":"When is the invoice due?","documents":["The office is closed on Mondays.","Payment is due within 30 days of the invoice date.","Invoices are sent by email."],"top_n":2}'
}
(Invoke-RestMethod @call).results[0].index
REM your API key, from API Keys
set AXFORGE_API_KEY=YOUR_KEY
curl.exe https://api.axforge.ai/v1/rerank ^
-H "Authorization: Bearer %AXFORGE_API_KEY%" ^
-H "Content-Type: application/json" ^
-d "{\"model\":\"bge-reranker-v2-m3\",\"query\":\"When is the invoice due?\",\"documents\":[\"The office is closed on Mondays.\",\"Payment is due within 30 days of the invoice date.\",\"Invoices are sent by email.\"],\"top_n\":2}"
Create an account and your API key is available in the console. 3M free tokens every 30 days with every new account.