We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
VoyageAI by MongoDB: rerank-2.5
voyageai/rerank-2.5Try VoyageAI by MongoDB: rerank-2.5 now
Runs on your balance at the prices above. New accounts start with free usage.
Results will appear here.
Settings
VoyageAI by MongoDB: rerank-2.5 at a glance
- Context window of 32,000 tokens, enough for long documents and multi-turn conversations.
About VoyageAI by MongoDB: rerank-2.5
VoyageAI by MongoDB: rerank-2.5 is a reranking model from Voyage AI, a provider whose rerankers are distributed under the VoyageAI by MongoDB name. It sits in the rerank category, which means its job is not to generate text but to take a set of candidate documents and reorder them by relevance to a query. If your application already retrieves passages, chunks, or search results and you want the best matches at the top, this is the kind of model you would reach for.
The model accepts text as input and produces a reranking as output. It has a context length of 32,000 tokens, which is the budget shared across the query and the documents you submit in a single request, and a maximum output of 28,800. Because the output is a ranking rather than generated prose, you should not expect it to answer questions, summarize content, or write code. Its entire contribution is a relevance ordering over the candidates you provide.
Practical use cases follow directly from that. A retrieval augmented generation pipeline can use rerank-2.5 as a second stage after a fast vector or keyword search, taking the top candidates and reordering them so the most relevant chunks are the ones passed to a generation model. The same pattern applies to enterprise search, documentation search, and support knowledge bases, where the first stage favors recall and the reranker restores precision. It is also useful for deduplication and prioritization tasks where you have more candidate passages than you can afford to show a user or feed into a downstream prompt.
You call it through api14's OpenAI-compatible API using the model id "voyageai/rerank-2.5". Because the endpoint follows the OpenAI schema, you can point an existing OpenAI client at api14's base URL and pass this id in the model field. The model's supported parameters list is empty, so there are no additional tuning options to set beyond what the rerank request itself requires, such as the query and the documents to be scored. Keep requests within the 32,000 token context, remembering that the query and every candidate document count toward that total.
On the question of when to look elsewhere: rerank-2.5 only handles text and only returns a ranking, so tasks that need image input, audio, or generated output are outside its scope and belong to a different model. If you need a single model to both retrieve and answer, a generation model is the better fit, with rerank-2.5 optionally placed in front of it as a precision stage.
How to call the VoyageAI by MongoDB: rerank-2.5 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "voyageai/rerank-2.5".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.post("/rerank", { body: {
"model": "voyageai/rerank-2.5",
"query": "What is the capital of France?",
"documents": [
"Paris is the capital of France.",
"Berlin is in Germany."
],
"top_n": 1
} });
console.log(result.results);
Specifications
- Context length
- 32,000
- Max output
- 28,800
- Input
- text
- Output
- rerank
Requests on api14 · last 7 days
VoyageAI by MongoDB: rerank-2.5: frequently asked questions
- How much does the VoyageAI by MongoDB: rerank-2.5 API cost?
- VoyageAI by MongoDB: rerank-2.5 is free to call ($0 per token). Free variants have stricter upstream rate limits, so use them for testing and low-volume work.
- What is the context window of VoyageAI by MongoDB: rerank-2.5?
- VoyageAI by MongoDB: rerank-2.5 reads up to 32,000 tokens per request: prompt, history and documents together. It writes up to 28,800 output tokens per response.
- What can VoyageAI by MongoDB: rerank-2.5 do?
- VoyageAI by MongoDB: rerank-2.5 accepts text and returns rerank.
- How do I call VoyageAI by MongoDB: rerank-2.5 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "voyageai/rerank-2.5". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to VoyageAI by MongoDB: rerank-2.5?
- Comparable Rerank models at a similar price: NVIDIA: Nemotron 3.5 Rerank 8B (free), VoyageAI by MongoDB: rerank-3-lite, VoyageAI by MongoDB: rerank-3. Each runs through the same API key, so switching is one string.
VoyageAI by MongoDB: rerank-2.5 community
New topicThis community has no topics yet. Open the first one about VoyageAI by MongoDB: rerank-2.5.