vai logo
vai
Use CasesShared SpaceDocs
Get Started
Model Discovery
Benchmarks
Embeddings

Models And Benchmarks

Survey the Voyage model lineup, explain benchmark context, and then measure embedding latency on your own hardware before choosing a production model.

API key
View Source TapeOpen Docs
Prerequisites

A valid VOYAGE_API_KEY is set in the environment.

Under the hood

See the exact VAI command, the matching Voyage AI layer, and the MongoDB query shape behind the demo.

vai benchmark embed --input 'What is the best way to index a large document corpus?'

The catalog and explainer parts of the tape build context, but the benchmark command is where selection becomes operational. It lets you test model latency against your own prompt shape before committing.

Share or copy this demo

Keep it lightweight. The prepared text stays behind the buttons.

Open canonical URL

Share

Copy

LinkedIn opens the share dialog and copies the prepared text so you can paste it in quickly.

Exact commands

The full walkthrough is included here so anyone can replay the demo exactly as published.

$echo '=> which Voyage AI model should you use? vai models has the answer'
$vai models
$echo '=> RTEB NDCG@10: retrieval quality across 36 real-world datasets'
$vai explain rteb
$echo '=> general RAG: voyage-4-large (docs) + voyage-4-lite (queries)'
$echo '=> code search: voyage-code-3'
$echo '=> finance: voyage-finance-2'
$echo '=> legal: voyage-law-2'
$echo '=> benchmark latency on your own hardware before committing'
$vai benchmark embed --input 'What is the best way to index a large document corpus?'
$echo '=> pick your model, then: vai pipeline ./docs/ --model <chosen-model>'

Related demos

More shareable workflows from the same VAI demo library.

Embeddings
Cost Optimization
Shared Embedding Space And Cost Savings

Validate that Voyage 4 models share an embedding space, then connect that result to asymmetric retrieval and concrete cost savings.

API key

VAI command

vai benchmark space

Show Under the Hood

Prerequisites

A valid VOYAGE_API_KEY is set in the environment.

View DemoSource
Reranking
Retrieval
Standalone Reranking

Rerank intentionally messy candidate documents against a query, then compare the full reranker to the lite version to show the latency-precision tradeoff.

API key

VAI command

vai rerank 'how do I connect to MongoDB Atlas?' --documents 'Use the connection string from your Atlas dashboard' 'Python is a popular language' 'Atlas supports vectorSearch aggregation' 'Copy your URI and pass it to MongoClient' 'The weather in San Francisco is mild'

Show Under the Hood

Prerequisites

A valid VOYAGE_API_KEY is set in the environment.

Getting Started
Embeddings
Featured
CLI Quickstart For Embeddings

Walk through the core vai embedding commands: model discovery, embedding generation, explainers, and similarity.

API key

VAI command

vai embed "What is MongoDB Atlas?"

Show Under the Hood

Prerequisites

A valid VOYAGE_API_KEY is set in the environment.