Vercel — AI · · 1 min read

Voyage Rerank 3 and Rerank 3 Lite are now available on AI Gateway

Mirrored from Vercel — AI for archival readability. Support the source by reading on the original site.

Rerank 3 and Rerank 3 Lite from Voyage AI by MongoDB are now available on AI Gateway.

The models reorder search results by relevance before passing documents to a language model. The series improves retrieval quality across domains, with the largest gains on long documents and code.

Rerank 3 focuses on accuracy, while Rerank 3 Lite is optimized for latency and cost. Both handle up to 32K tokens per query-document pair and follow instructions in the query to guide ranking.

To use Rerank 3, set the model to voyage/rerank-3:

import { rerank } from 'ai';
const { ranking } = await rerank({
model: 'voyage/rerank-3',
query: 'How does a vector database find similar documents?',
documents: [
'A load balancer distributes traffic across servers.',
'A vector database searches embeddings to find similar documents.',
topN: 1,

For Rerank 3 Lite, change the model to voyage/rerank-3-lite.

Try Voyage Rerank 3 in the AI Gateway model playground, or explore the model catalog.

AI Gateway provides one API for calling models, tracking usage and cost, and configuring routing, retries, and failover. You can use an AI Gateway API key or bring your own provider key.

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from Vercel — AI