vai logo
vai
Use CasesShared SpaceDocs
Get Started
Embeddings
Cost Optimization
Model Selection

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
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 space

The benchmark proves that multiple Voyage 4 models can represent the same text in a compatible space. The estimate command in the tape then turns that abstract property into an operational cost argument.

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.

$vai explain shared-space
$echo '=> embed same text with two models -- cosine similarity proves shared space'
$echo '=> voyage-4-large: best quality, use for documents at ingest time'
$echo '=> voyage-4-lite: cheapest, use for queries at search time'
$vai benchmark space
$echo '=> ~0.938 similarity -- same space, different cost points'
$echo '=> what does that mean in dollars?'
$vai estimate --docs 10M --queries 100M --months 12
$echo '=> asymmetric strategy saves ~83% on query-time embedding costs'

Related demos

More shareable workflows from the same VAI demo library.

Model Discovery
Benchmarks
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

VAI command

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

Show Under the Hood

Prerequisites

A valid VOYAGE_API_KEY is set in the environment.

View DemoSource
Getting Started
Embeddings
Featured
What Is an Embedding?

Start from first principles: generate a Voyage embedding, inspect its shape, and compare full-size versus Matryoshka-reduced vectors.

API key

VAI command

vai embed 'MongoDB Atlas makes vector search production-ready'

Show Under the Hood

Prerequisites

A valid VOYAGE_API_KEY is set in the environment.