Voyage Rerank 2.5
Voyage Rerank 2.5 is Voyage AI's generalist reranker optimized for retrieval quality. It supports a context window of 32K tokens, instruction-following over natural language steering, and multilingual reranking. On 93 retrieval datasets, it improves accuracy by 7.94% over Cohere Rerank v3.5.
import { rerank } from 'ai';
const result = await rerank({ model: 'voyage/rerank-2.5', query: 'What is the capital of France?', documents: [ 'Paris is the capital of France.', 'Berlin is the capital of Germany.', 'Madrid is the capital of Spain.', ],})Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|