32 min read
Embedding Models 2026:
Voyage AI vs OpenAI vs Cohere vs BGE
By Ergini, Software & AI Developer
TL;DR
Start with OpenAI text-embedding-3-small at $0.02 per million tokens, move to voyage-4-large ($0.12) when retrieval quality in a specialized domain is the bottleneck, pick Cohere Embed 5 for multilingual and PDF-heavy corpora, and self-host BGE-M3 or Qwen3-Embedding for residency or scale. Voyage vectors are dense, Voyage leads the public RTEB retrieval board, its rerankers work on any first-stage results including OpenAI and Cohere, and a 50 to 100 query eval on your own data beats every leaderboard.
Want the answer for your own case first? The free embedding model picker turns seven questions into a ranked shortlist with the cost and storage math.
Go deeper on a specific comparison
This page is the survey. If your shortlist has already come down to a specific pair, or to a specific decision, these go further than a section here can:
- BGE-M3 vs OpenAI embeddings - open and self-hosted against the default API, and the hybrid dense-sparse output OpenAI has no equivalent for.
- Voyage vs OpenAI embeddings - when a domain-tuned model is worth leaving the default for.
- Cohere Embed v4 vs OpenAI text-embedding-3 - multimodal PDF embedding, Matryoshka dimensions, and VPC deployment.
- Rerankers explained - because if your recall at 50 is fine and your recall at 5 is not, the embedding model is not your problem.
- RAG cost per query - where the embedding bill sits next to the model, reranker and vector database bills.
- Vector database comparison: Pinecone, Qdrant, Weaviate, pgvector - where the vectors live once you have picked a model, and the monthly bill where self-hosting the store starts to win.
Direct verdict: which embedding model to pick in 2026
The embedding model is the single decision in a RAG pipeline that gets the most debate and the least rigor. Three honest defaults cover 95 percent of real projects. OpenAI text-embedding-3-small is the right starting point for almost everything because it costs $0.02 per million tokens, runs at low latency from a managed API, is multilingual enough for European workloads, and is trivial to swap later. Reach for voyage-4-large when retrieval quality is the bottleneck and your domain is specialized - legal, finance, biomedical, or code. Reach for BGE-M3 when self-hosting wins on data residency, scale economics, or predictability.
Everything else in this post is the detail behind those three sentences. Cohere Embed 5 gets its own moment for multilingual and document-heavy retrieval, Voyage gets a section that answers the questions people actually ask about it, and the later sections cover domain-specific models, rerankers, dimensions, a test you can run on your own data, and the migration pattern that keeps a model swap from melting your weekend. If you want the broader retrieval picture, this sits naturally next to the vector database comparison and the production RAG architecture guide.
Voyage AI questions, answered directly
Most of the questions that bring people to this page are about Voyage AI, often asked word for word. Here are the short answers, each checked against the vendor's own documentation or launch post on 17 November 2026 and linked underneath. Benchmark percentages are the vendor's figures, not mine. Voyage AI is part of MongoDB, and its models are served from the Voyage API and from MongoDB Atlas.
Are Voyage AI vectors dense or sparse?
Dense. Every Voyage embedding model returns a fixed-length vector, a list of floats or, with int8 and binary output, a list of integers, at 1024 dimensions by default for the Voyage 4 models, with 256, 512 and 2048 as options. Voyage's API has no sparse output, so for hybrid search you pair it with BM25 or a sparse model; BGE-M3 is the model that returns dense and sparse vectors from one pass.
Sources: Voyage text embedding docs, BGE-M3 model card.
How does voyage-code-3 compare with other embedding models?
At its December 2024 launch, Voyage reported that voyage-code-3 beat OpenAI text-embedding-3-large by 13.80 percent and CodeSage-large by 16.81 percent on average across 32 code retrieval datasets, with a 32K token context against OpenAI's 8K. It is now an older model: Voyage reports that voyage-code-4 (August 2026) beats it by 13.98 percent on 28 of those code datasets and by 27.54 percent on 19 agentic benchmarks built from issue-fixing pull requests, at $0.12 per million tokens against $0.18.
Sources: voyage-code-3 announcement, voyage-code-4 announcement, Voyage pricing.
How do Voyage AI embedding models compare with OpenAI and Cohere for text retrieval?
Voyage reports that voyage-4-large beats Cohere Embed v4 by 8.20 percent and OpenAI text-embedding-3-large by 14.05 percent in average NDCG@10 across the 29 datasets of the RTEB retrieval benchmark, and the public RTEB leaderboard had it in first place when I checked on 16 October 2026. Prices are close: voyage-4-large and Cohere Embed 5 Pro cost $0.12 per million tokens and OpenAI text-embedding-3-large $0.13. Cohere Embed 5 launched after Voyage's comparison, so run both on your own queries.
Sources: Voyage 4 announcement, Cohere Embed 5 announcement, Voyage pricing.
How does voyage-3.5 compare with other embedding models?
At its May 2025 launch, Voyage reported that voyage-3.5 beat OpenAI text-embedding-3-large by 8.26 percent and Cohere Embed v4 by 1.63 percent on average across 100 datasets in eight domains, at $0.06 per million tokens. It is now listed as an older model: voyage-4 costs the same $0.06 and, per Voyage, approaches the quality of voyage-3-large.
Sources: voyage-3.5 announcement, Voyage 4 announcement, Voyage pricing.
How does voyage-3-large compare with voyage-law-2?
In its January 2025 launch post, Voyage states that voyage-3-large outperforms its domain models from the previous generation, voyage-law-2 included, on their own domains. voyage-3-large is now an older model ($0.18 per million tokens) replaced by voyage-4-large ($0.12), while voyage-law-2 is still current at $0.12 with a 16K context and a fixed 1024 dimensions. For a legal corpus today, test voyage-4-large against voyage-law-2 on your own queries.
Sources: voyage-3-large announcement, Voyage text embedding docs, Voyage pricing.
Which Voyage AI model is best for a latency-sensitive application with a large query volume?
voyage-4-lite, which Voyage optimizes for latency and cost, at $0.02 per million tokens. Because all Voyage 4 models share one embedding space, you can embed your documents once with voyage-4-large and your queries with voyage-4-lite, which is the pattern Voyage itself recommends. If you rerank, rerank-3-lite is the reranker Voyage positions for latency-sensitive applications.
Sources: Voyage text embedding docs, Voyage 4 announcement, Voyage reranker docs.
How do I choose between Voyage's high-accuracy and lower-latency models?
Voyage's ladder is voyage-4-large for quality ($0.12 per million tokens), voyage-4 for balance ($0.06) and voyage-4-lite for latency and cost ($0.02). Because the three share an embedding space, you choose per side: the large model for the corpus, which you embed once, and the query model that fits your latency budget. Decide with 50 to 100 of your own labeled queries, measuring recall@10, p95 latency from your region and cost per 1,000 queries.
Sources: Voyage 4 announcement, Voyage pricing.
Can Voyage AI's rerank-2 be used with third-party embeddings like OpenAI or Cohere?
Yes. A reranker scores the query against the text of each candidate, so it works on any shortlist, and Voyage's own rerank-2 evaluation ran it on top of OpenAI text-embedding-3-large, reporting an average 13.89 percent accuracy gain across 93 datasets. rerank-2 is now an older model; rerank-3 ($0.05 per million tokens) and rerank-3-lite ($0.02) are current, with a 32K context.
Sources: rerank-2 announcement, Voyage reranker docs, Voyage pricing.
How does Voyage rerank improve over embedding-only retrieval?
A reranker is a cross-encoder that reads the query and each candidate together, which is more precise than comparing two separately computed vectors. Voyage reports that rerank-3 lifts NDCG@10 by 16.67 percent over OpenAI text-embedding-3-large alone, 6.38 percent over voyage-4-large alone and 20.33 percent over BM25, across 95 datasets. Run it on the top 50 to 100 candidates, never on the whole corpus.
Sources: Voyage rerank-3 announcement, Voyage reranker docs.
How does Voyage AI compare with other providers for PDFs, slide decks and multimodal search?
voyage-multimodal-3.5 embeds interleaved text and images, including screenshots of PDF pages and slides, and video, so visually rich documents need no text extraction step; it costs $0.12 per million text tokens plus $0.60 per billion pixels. Voyage reports it beats voyage-multimodal-3 and Cohere Embed v4 on 15 visual document retrieval datasets. Cohere Embed 5 also embeds images and mixed text-and-image inputs, while OpenAI's text-embedding-3 models are text only.
Sources: Voyage multimodal embedding docs, voyage-multimodal-3.5 announcement, Cohere Embed 5 announcement.
Do Voyage models support multilingual search?
Yes. Voyage describes voyage-4-large and voyage-4 as built for general-purpose and multilingual retrieval, which is why the separate voyage-multilingual-2 is now an older model. Voyage publishes no language count; its voyage-3.5 evaluation included 62 multilingual datasets in 26 languages, so test low-resource languages on your own queries.
Sources: Voyage text embedding docs.
BGE-M3 vs OpenAI embeddings: which should I use?
BGE-M3 is open (MIT), self-hosted, 1024 dimensions, 8,192 tokens and 100+ languages, and returns dense, sparse and multi-vector representations in one pass. OpenAI text-embedding-3-small ($0.02 per million tokens) and text-embedding-3-large ($0.13) are hosted, dense only, 8,192 tokens, and shortenable from 1536 or 3072 dimensions. Choose OpenAI to ship fast with nothing to run; choose BGE-M3 for data residency, built-in hybrid search or very high volume.
Sources: BGE-M3 model card, OpenAI embeddings guide.
What are affordable alternatives to Cohere for embeddings and reranking?
For embeddings, voyage-4-lite and OpenAI text-embedding-3-small cost $0.02 per million tokens and voyage-4 $0.06, against $0.12 for Cohere Embed 5 Pro; Cohere's own Embed 5 Fast is $0.08. For reranking, Voyage rerank-3-lite costs $0.02 per million tokens. At high volume, self-hosted BGE-M3, Qwen3-Embedding or the open-weight voyage-4-nano cost only the GPU they run on.
Sources: Voyage pricing, OpenAI embeddings guide, Cohere Embed 5 announcement.
The longer comparisons sit further down: what each provider is best at, the cost per corpus size, and the afternoon eval that settles the choice on your own data. If the decision is really BGE-M3 against the OpenAI default, the BGE-M3 vs OpenAI comparison covers self-hosting and the dense-plus-sparse output in depth.
What changed in 2026
The field moved more this year than in the two before it. If you last looked in 2025, this is what is different:
- Voyage 4 (15 January 2026). voyage-4-large, voyage-4 and voyage-4-lite replaced the 3 and 3.5 series, plus an open-weight voyage-4-nano. All four share one embedding space, so you can index with one and query with another. voyage-3-large, voyage-3.5 and voyage-code-3 are now listed as older models. Voyage's announcement.
- voyage-multimodal-3.5 (15 January 2026), the multimodal model that embeds text, images, screenshots of PDF pages and slides, and now video.
- voyage-code-4 (13 August 2026), a code model trained for coding agents, at $0.12 per million tokens against $0.18 for voyage-code-3.
- Voyage rerank-3 and rerank-3-lite (30 September 2026), replacing rerank-2 and rerank-2.5 as the recommended rerankers.
- Cohere Embed 5 (30 September 2026), in Pro and Fast tiers that also share an embedding space, with a 128K token context and 100+ languages. Embed v4 is now the previous generation, and Cohere's current rerankers are Rerank 4 Pro and Fast.
- Gemini Embedding 2, Google's first multimodal embedding model in the Gemini API, at $0.20 per million text tokens.
- Open models caught up. Qwen3-Embedding, Microsoft's harrier-oss and EmbeddingGemma now sit at or near the top of the public MTEB boards.
- OpenAI did not move. text-embedding-3-small and text-embedding-3-large are still its only current embedding models.
The 2026 contenders at a glance
These are the models doing the real work in production right now. The table below is the cheat sheet I keep open when scoping embedding work. Prices, dimensions and context lengths are the list values on each provider's own pricing and documentation pages as I read them on 16 October 2026, with the Voyage, OpenAI and Cohere figures rechecked on 17 November 2026; volume discounts and batch pricing come off these.
| Model | Dimensions (default, options) | Max tokens | $/1M tokens | Multilingual | Self-host |
|---|---|---|---|---|---|
| OpenAI text-embedding-3-large | 3072 (shortenable, Matryoshka) | 8,192 | $0.13 | Good | No |
| OpenAI text-embedding-3-small | 1536 (shortenable, Matryoshka) | 8,192 | $0.02 | Good | No |
| Cohere Embed 5 Pro | 2048 (256 to 1536), float, int8, binary | 128K | $0.12 | 100+ languages | Private deployment |
| Cohere Embed 5 Fast | 2048 (256 to 1536), float, int8, binary | 128K | $0.08 | 100+ languages | Private deployment |
| voyage-4-large | 1024 (256, 512, 2048), float, int8, binary | 32,000 | $0.12 | Multilingual-tuned | VPC via marketplaces |
| voyage-4 | 1024 (256, 512, 2048), float, int8, binary | 32,000 | $0.06 | Multilingual-tuned | VPC via marketplaces |
| voyage-4-lite | 1024 (256, 512, 2048), float, int8, binary | 32,000 | $0.02 | Multilingual-tuned | VPC via marketplaces |
| Gemini Embedding 2 | 3072 (768 and 1536 recommended) | 8,192 | $0.20 | 100+ languages | No |
| BGE-M3 | 1024 (dense + sparse + multi-vector) | 8,192 | $0 (self-host) | 100+ languages | Yes (MIT) |
| Qwen3-Embedding (0.6B, 4B, 8B) | 1024, 2560, 4096 (any size from 32, Matryoshka) | 32K | $0 (self-host) | 100+ languages | Yes (Apache 2.0) |
| EmbeddingGemma-300m | 768 (512, 256, 128) | 2K | $0 (self-host) | 100+ languages | Yes (Gemma terms) |
| voyage-4-nano | 1024 (256, 512, 2048) | 32,000 | $0 (self-host) | Multilingual | Yes (Apache 2.0) |
Sources: OpenAI, Cohere, Voyage pricing, Gemini, Qwen3-Embedding, EmbeddingGemma and voyage-4-nano. Voyage gives every account the first 200 million tokens free on the Voyage 4 models, and its Batch API takes 33 percent off for ingestion jobs that can wait up to 12 hours. Gemini's batch rate is half its standard rate. The older Voyage models are still served: voyage-3-large and voyage-code-3 at $0.18, voyage-3.5 at $0.06.
What the leaderboards say, and what they do not
I read the public MTEB leaderboard on 16 October 2026. None of what follows is my data; it is the leaderboard's, and it moves month to month.
- MTEB Multilingual (v2): Microsoft's open harrier-oss-v1-27b ranks first with a mean task score of 74.27. Qwen3-Embedding-8B scores 70.58 and Google's gemini-embedding-001 scores 68.37, both in the top five.
- MTEB English (v2): Qwen3-Embedding-8B scores 75.23 and gemini-embedding-001 scores 73.30.
- RTEB, the retrieval-only board (beta): voyage-4-large holds first place, voyage-4 sits 12th, Cohere embed-v4.0 and OpenAI text-embedding-3-large sit in the high 30s, and BGE-M3 and text-embedding-3-small in the low 50s.
The catch: OpenAI text-embedding-3, Cohere embed-v4.0 and the Voyage 4 models have no complete run on the MTEB v2 averages, so those boards simply show no average for the APIs most teams are choosing between. RTEB, which is retrieval-only and keeps some datasets private, is the more useful board for RAG, and it is where the API models do appear. Treat any of it as ordinal, and remember that an average over dozens of tasks can hide exactly the domain you care about.
The 4 things you actually evaluate
Practitioners get lost in MTEB because it is a single number and looks like a leaderboard. The decision is multi-axis. These are the four axes I score every candidate on before a model gets near production.
- Recall at 10 on your data. The only number that matters. Build an eval set from real user questions and labeled correct chunks, then measure recall@10 for each candidate model on your actual corpus. MTEB is a proxy; this is the ground truth. The recipe is further down.
- Latency at p95. Embedding the query is almost always on the critical path. In my measurements OpenAI and Cohere land around 80 to 150 ms from US East, Voyage around 120 to 220 ms, and self-hosted BGE on a co-located GPU 15 to 40 ms. For chat-style interactive RAG, the latency difference is noticeable. Measure from your own region before you trust anyone's numbers, including mine.
- Cost at your token volume. Embedding costs come in two flavors - ingestion (one-time, big batches) and query (per-request, smaller). Most teams underestimate ingestion by 5 to 10x because they forget about reindexing on model upgrades and chunking changes.
- Dimension count. Every dimension is bytes in your vector database, RAM in your index, and time on every distance calculation. The next section puts numbers on it.
The temptation is to pick on MTEB and ship. Resist it. I have watched teams switch from OpenAI to a higher-ranked open model and lose recall on their actual queries because the MTEB tasks did not match their domain. Always evaluate on your data.
Dimensions vs accuracy, latency and storage
Storage is the easy part to calculate, because it is linear: a float32 value is 4 bytes, so a vector costs 4 bytes per dimension before quantization. Quantized embeddings use 8 bits or 1 bit per dimension, which cuts storage by 4x or 32x against float32. Raw vector size for one million chunks, before any index overhead:
| Dimensions and precision | Bytes per vector | 1M vectors |
|---|---|---|
| 3072, float32 | 12,288 | 12.3 GB |
| 1536, float32 | 6,144 | 6.1 GB |
| 1024, float32 | 4,096 | 4.1 GB |
| 512, float32 | 2,048 | 2.0 GB |
| 1024, int8 | 1,024 | 1.0 GB |
| 1024, binary | 128 | 0.13 GB |
Latency follows the same direction: smaller vectors mean less RAM per index, more of the index in memory, and cheaper distance calculations, so search gets faster as dimensions drop. Embedding latency is mostly set by the model, not the output size. Accuracy is the part that does not scale linearly. Models trained with Matryoshka learning keep most of their retrieval quality when truncated to 512 or 256 dimensions, and quantization-aware models such as the Voyage 4 family and Cohere Embed 5 keep most of it in int8 too. More dimensions only means better retrieval within one model; a 3072-dimension vector from one model is not automatically better than a 1024-dimension vector from another. My default is to embed at full size, store 512 or 1024, and only go larger if the eval shows a gap.
Real benchmarks on 3 retrieval tasks
I ran a controlled comparison on three representative client workloads - a 50,000 chunk SaaS FAQ, a 180,000 chunk TypeScript and Python code search index, and a 400,000 chunk multilingual product knowledge base covering English, German, French, and Albanian. Same chunks, same 300 labeled queries per task, top-k=10, no rerank, cosine distance. These runs predate Voyage 4 and Cohere Embed 5, so they show the previous generation; the vendors report that their new models are ahead of these, and I have not re-run the suite on them yet.
| Model | FAQ recall@10 | Code recall@10 | Multilingual recall@10 | Avg query latency | Notes |
|---|---|---|---|---|---|
| OpenAI 3-small | 0.84 | 0.71 | 0.78 | 95 ms | Baseline default |
| OpenAI 3-large | 0.87 | 0.74 | 0.81 | 140 ms | Marginal lift vs price |
| Cohere embed-v4 | 0.86 | 0.73 | 0.89 | 110 ms | Multilingual standout |
| Voyage-3-large | 0.91 | 0.83 | 0.85 | 180 ms | Best retrieval, slowest |
| Voyage-3 | 0.86 | 0.76 | 0.81 | 160 ms | Strong mid-tier |
| BGE-M3 (self-host) | 0.85 | 0.72 | 0.86 | 28 ms | Cheapest at scale |
Read the table by column, not by row. Voyage-3-large wins outright on code search because the training mix is heavy on code. Cohere wins on multilingual because it was tuned for that explicit task. BGE-M3 punches well above its price tag and the latency story is dramatic when you co-locate inference with the vector DB. OpenAI 3-small is never the best model, and it is never bad enough to disqualify itself.
Cost math at 100K, 1M, and 10M chunks
Cost arguments get hand-wavy fast. Here is the concrete ingestion math at list prices, assuming an average chunk of 400 tokens and a one-time embed of the whole corpus. Reindexing on a model change costs the same again. Query costs are roughly 20 to 80 tokens per request, so for any QPS under a few hundred, query spend is rounding error against ingestion.
| Model | 100K chunks | 1M chunks | 10M chunks |
|---|---|---|---|
| OpenAI 3-small or voyage-4-lite ($0.02/M) | $0.80 | $8.00 | $80 |
| voyage-4 ($0.06/M) | $2.40 | $24 | $240 |
| Cohere Embed 5 Fast ($0.08/M) | $3.20 | $32 | $320 |
| voyage-4-large or Cohere Embed 5 Pro ($0.12/M) | $4.80 | $48 | $480 |
| OpenAI 3-large ($0.13/M) | $5.20 | $52 | $520 |
| Gemini Embedding 2 ($0.20/M) | $8.00 | $80 | $800 |
| BGE-M3 (GPU rental) | ~$5 (one-off VM) | ~$15 (few hours) | ~$80 (full day) |
Two things shift this table in practice. Voyage's 200 million free tokens cover a 100K chunk corpus at this chunk size outright, and batch endpoints cut a third (Voyage) or half (Gemini) off a large ingestion. The crossover that surprises people: BGE-M3 self-hosted is cheaper than OpenAI 3-small from roughly 10 million chunks upward, and dramatically cheaper than the $0.12 tier from 1 million chunks. The catch is that self-hosting buys you a running inference server, not a free lunch. Below 5 million chunks and without an SRE on the team, API models almost always win on total cost once you price your engineering hours honestly. This is the same shape as the pgvector vs Pinecone crossover and the OpenAI API cost breakdown - the line moves with how you value ops time.
When OpenAI wins
OpenAI 3-small is the sane default. It is the embedding model I reach for at the start of every new client engagement and the one I leave in place unless an explicit signal pushes me elsewhere. The reasons are boring and that is the point.
It is cheap enough that ingestion cost almost never shows up on the bill. The dimensions support Matryoshka truncation down to 256 or 512 for a major storage win. The SDK is identical to every other OpenAI call you are already making, so there is no new auth, no new SDK, no new dashboard. The broad-domain quality is consistently in the band where it is not the best model but it is never the bottleneck. And when you do need more, you can swap to 3-large with one line of code and keep the same client.
Use OpenAI when your corpus is general-purpose web content, SaaS documentation, customer support transcripts, or anything else that looks like the public internet. Skip it when you have a specialized domain where Voyage measurably wins, or when you need multilingual quality strong enough to handle cross-lingual retrieval as a first-class requirement. Note too that OpenAI has not shipped a new embedding model since the text-embedding-3 pair, while every competitor in this table has, so the quality gap to the leaders is wider than it was.
When Cohere wins
Cohere Embed 5 is the model I reach for when multilingual quality is the requirement or the corpus is full of PDFs, slides and scanned pages. The training mix is genuinely multilingual, not English with a multilingual head bolted on, and cross-lingual retrieval works the way you want - a Spanish query lands on the relevant German chunk if the meaning matches. Embed 5 also embeds images and mixed text-and-image inputs, and its 128K token context is roughly four times Voyage's and sixteen times OpenAI's.
The second Cohere strength is that it makes you say what each text is for. Every call carries an input_type - search query, search document, classification or clustering - and the embedding is shaped for that job. Getting this right on mixed query styles (questions, keywords, full sentences) is worth a few points of recall on its own, and getting it wrong is a common, silent mistake. Embed 5 Pro and Fast share an embedding space, so you can index with Pro at $0.12 per million tokens and query with Fast at $0.08.
The third reason to pick Cohere is that you are probably going to pair it with Cohere Rerank 4, and the embedding plus reranker combination from one vendor is genuinely smoother than mixing providers: one contract, one data processing agreement, one set of private deployment options. Note that Embed 5 launched on 30 September 2026, so independent results on it are still thin.
When Voyage wins
The short answers to the common Voyage questions are near the top of this post. This section is the judgement call behind them. All prices are from Voyage's pricing page and all benchmark deltas are Voyage's own published numbers unless I say otherwise.
Pick a rung on the ladder, then mix rungs. Because all Voyage 4 models share one embedding space, you do not have to choose a single model: embed the corpus once with voyage-4-large and embed queries with voyage-4 or voyage-4-lite. Voyage calls this asymmetric retrieval, and it puts the expensive model where it is paid once (ingestion) and the cheap, fast model where it is paid on every request. Then turn the storage knobs: 512 dimensions and int8 output cost far less to store and search than 2048 in float. Voyage does not publish latency figures, so measure p95 from the region you deploy in.
Rerankers are vendor-neutral. rerank-3 was evaluated on top of BM25, OpenAI text-embedding-3-large, voyage-3-large and voyage-4-large, and Voyage reports that rerank-3 and rerank-3-lite beat Cohere Rerank v4.0 Pro by 2.72 and 2.23 percent across 95 datasets. So you can keep OpenAI or Cohere embeddings and still add a Voyage reranker with no reindex, or the other way round.
Domain models need a test, not a guess. voyage-law-2 and voyage-finance-2 date from 2024, and Voyage said its own general voyage-3-large already beat them on their domains. I have not found a published head-to-head between voyage-4-large and voyage-law-2, and at the same $0.12 per million tokens, 50 to 100 real legal queries settle it in an afternoon. Code is the clearest case for a domain model: on my own code search index the general voyage-3-large beat OpenAI 3-small by 12 points of recall, and voyage-code-4 is reported well ahead of both. Use a code model when queries describe behaviour ("where do we retry failed payments"); plain grep still wins when the query is an identifier.
Where I have seen Voyage pay off
On the client work where retrieval quality is the bottleneck - legal contracts, financial filings, biomedical literature, production code search - Voyage consistently lifted recall by 8 to 14 percent over OpenAI 3-small and 4 to 8 percent over OpenAI 3-large on my eval sets, and the Voyage 4 generation is reported to widen that gap. Voyage also ships specialized models for the verticals where that lift matters most, and lets you switch between them within one API without changing your pipeline.
Pick Voyage when retrieval quality is the user-facing constraint, your domain is specialized enough that general models leave recall on the table, and you can live with a managed API (or a marketplace VPC deployment). Skip it when your corpus is general-purpose and you can recover the same quality lift by adding a reranker on top of a cheaper embedding model - which is often the better economic call. For the head-to-head with the default, read Voyage vs OpenAI embeddings.
When BGE and self-hosted wins
BGE-M3 is the open-source model that genuinely competes with the closed-source APIs in production. It is MIT-licensed, the multilingual story is excellent (100+ languages with cross-lingual retrieval that works), it reads up to 8,192 tokens, and it produces dense, sparse, and multi-vector representations in one forward pass. For hybrid retrieval setups, that last property is a real advantage.
Self-hosting wins on three axes. Data residency is the most common driver - EU clients with sensitive content cannot send every chunk to a US-hosted API regardless of the SOC 2 attestation, and when the text legally cannot leave your infrastructure, volume no longer matters: the decision is already made. That is the core of my self-hosted LLM work. Cost is the second - at corpora above 50 million tokens per month, a single A10 or L4 GPU running text-embeddings-inference from Hugging Face is cheaper than any API. Predictability is the third - API rate limits, latency variance, and version changes are real operational risks that self-hosting eliminates.
The cost is operational. You run an inference server, you monitor GPU utilization, you handle version upgrades, you wake up if the pod restarts. Most teams I work with through my hire an AI developer in Kosovo practice find this trade worth it past the 5 million chunk mark; smaller teams in the US tend to stay on APIs longer because the engineering hours are more expensive.
The other open source text embedding models worth a look
- Qwen3-Embedding (0.6B, 4B and 8B, Apache 2.0): 32K context, any output size from 32 up to 4096 dimensions, 100+ languages, and instruction-aware. The 8B model is the strongest open model most teams can realistically serve, and it sits near the top of both MTEB boards. It needs a real GPU; the 0.6B model is the one to try on modest hardware.
- EmbeddingGemma-300m (Gemma terms): 768 300M parameters, 768 dimensions with Matryoshka options down to 128, 100+ languages, and cheap to serve on modest hardware. Its 2K token context means short chunks only.
- voyage-4-nano (Apache 2.0): Voyage's open-weight model, 32K context, and it shares the Voyage 4 embedding space, so a self-hosted nano can sit next to the hosted models without a reindex.
- harrier-oss-v1 (Microsoft): first on MTEB Multilingual at 27B parameters, with 0.6B and 270M siblings. Impressive on the board; the large one is a serious serving bill.
If your shortlist is BGE-M3 against the OpenAI default, the BGE-M3 vs OpenAI comparison has the detail; if it is Cohere against OpenAI 3-large, read Cohere Embed v4 vs OpenAI text-embedding-3.
Domain-specific models: code, legal and finance
Short answer: choose a domain model when one index holds mostly one kind of content and your users ask in that domain's language; otherwise stay general. The current options are voyage-code-4 for code, voyage-law-2 for legal and voyage-finance-2 for finance, all at $0.12 per million tokens.
They win when the vocabulary is far from web text and the query style is specific. Code is the clearest case: a query like "where do we mishandle empty arrays" has no identifier to grep for, and a model trained on queries paired with the code they point at finds it. Contracts and case law, where near-identical clauses differ by one defined term, and financial filings, where the answer sits in a table or a footnote, are the other two.
They do not win in three common situations. First, mixed corpora: one index usually has to serve everything, and a legal model indexing your HR policies and product docs too gives back what it gains. Second, generation gaps: voyage-law-2 and voyage-finance-2 date from 2024, while voyage-4-large is from 2026 and Voyage evaluated it on law and finance datasets among others, so the newer general model may match or beat the older specialist. Third, cheaper fixes: a reranker on top of a general model often closes the same gap for less. The decision is cheap to make with evidence, because the price is the same: run both on your eval set.
Embedding models vs reranking models
These are two different tools that get compared as if they were one. An embedding model encodes the query and every document separately into vectors, which is what lets you embed the corpus once and search millions of chunks in milliseconds. A reranker is a cross-encoder: it reads the query and one candidate together and scores how well they match, which is far more precise and far too slow to run over a whole corpus. So production retrieval uses both - embeddings fetch the top 50 to 100, the reranker orders that shortlist and keeps the 5 to 10 that go into the prompt. If your right answer is somewhere in the top 50 but rarely in the top 5, a reranker will help more than a better embedding model. The full explainer, including which reranker to pick, is in rerankers explained.
Matryoshka embeddings: the 50% storage win
Matryoshka representation learning is the most under-discussed embedding development of the last two years. The training objective forces the first N dimensions of an embedding to be independently usable, so a 1536-dimension vector can be truncated to 768 or 512 or 256 and still produce sensible retrieval. The lift on storage and query speed is enormous, the recall cost is small, and it requires no re-embedding.
The models that support it in 2026: OpenAI text-embedding-3-small and 3-large (the dimensions parameter), the Voyage 4 family plus voyage-3-large, voyage-3.5 and voyage-code-3, Cohere Embed 4 and 5, Gemini Embedding 001 and 2, Qwen3-Embedding and EmbeddingGemma. The older voyage-3 does not. OpenAI says a text-embedding-3-large vector shortened to 256 dimensions still outperforms an unshortened ada-002 vector at 1536. In my runs OpenAI 3-large is usable down to 256 with only a 2 to 4 percent recall drop, and Voyage and Cohere down to 512 with similar loss.
The pattern I use in production: store full-dimension vectors in cheap object storage, but index a truncated version in the vector database. Query against the truncated index for fast first-pass retrieval, then optionally re-score the top candidates with the full-dimension vectors for higher precision. This cuts memory cost by 4 to 6x without sacrificing recall at top-k.
How to test embedding models on your own data
Every number in this post, mine included, is someone else's data. This is the small eval I run before any model choice, and it is the honest answer to "how do I benchmark our embedding outputs?":
- Collect 50 to 100 real queries. Pull them from search logs, support tickets or chat transcripts, not from your own imagination. Keep the messy ones: typos, keyword fragments, other languages. If the product is not live yet, ask the people who will use it to write them rather than imagining them yourself. Fifty labeled queries are enough to separate candidate models; five are not.
- Label the right chunks. For each query, mark the one to three chunks that actually answer it. This is the slow part and the part that makes the eval worth anything. An LLM can propose labels; a person who knows the content approves them.
- Embed the same chunks with every candidate. Same chunking, same distance metric, same top-k. Change one thing at a time.
- Score recall@10 and nDCG@10. Recall@10 asks whether a right chunk made the shortlist at all; nDCG@10 also rewards ranking it near the top, which is what the prompt actually sees. Record recall@50 as well: if it is high while recall@10 is low, the model finds the right chunk and ranks it too low, so you need a reranker rather than a different model. If recall@50 is low too, look at chunking before you blame the model. That gap is the most useful number this exercise produces.
- Price and time 1,000 queries. At 50 tokens a query, 1,000 queries are 50,000 tokens: $0.001 on a $0.02 model and $0.006 on a $0.12 model, so query embedding is almost free. Reranking is not: Voyage estimates $0.0025 per rerank-3 request for 100 documents of about 500 tokens each, which is $2.50 per 1,000 queries ($1.00 on rerank-3-lite). Record p95 latency from your production region next to each figure.
- Add one reranked run. Rerank the top 50 of the cheapest model and score it the same way. It is often the winner.
// eval.ts - score one model on a labeled query set
type Labeled = { query: string; relevant: Set<string> }; // chunk ids
function recallAtK(ranked: string[], relevant: Set<string>, k = 10) {
const hits = ranked.slice(0, k).filter((id) => relevant.has(id)).length;
return hits / Math.min(relevant.size, k);
}
function ndcgAtK(ranked: string[], relevant: Set<string>, k = 10) {
let dcg = 0;
ranked.slice(0, k).forEach((id, i) => {
if (relevant.has(id)) dcg += 1 / Math.log2(i + 2);
});
let idcg = 0;
for (let i = 0; i < Math.min(relevant.size, k); i++) idcg += 1 / Math.log2(i + 2);
return idcg === 0 ? 0 : dcg / idcg;
}
// For each candidate: search(query) -> ranked chunk ids, then average
// recallAtK and ndcgAtK over the set, next to cost and p95 latency.Pick the cheapest configuration within a point or two of the best. If two candidates are within a point or two of each other, the cheaper or simpler one wins, because marginal benchmark differences do not survive contact with production. The same method works for any model decision, not only embeddings: see building an LLM evaluation framework, and for the full per-query bill, including generation, see RAG cost per query.
Switching embedding models: the reindex burden
Switching embedding models is the most expensive maintenance operation in a RAG pipeline. Every chunk must be re-embedded with the new model. Every vector index must be rebuilt. The cost is real - a 10 million chunk corpus on OpenAI 3-small is $80 of API spend plus several hours of ingestion plus index rebuild time plus the dual-running cost while you validate the new model. The one new escape hatch: Voyage 4 and Cohere Embed 5 share an embedding space within each family, so moving between sizes inside a family (voyage-4-lite to voyage-4-large, Embed 5 Fast to Pro) no longer needs a reindex. Moving between families or generations still does.
The architectural pattern that makes this tolerable is the embedding contract. Wrap every embedding call behind a thin interface, store the model name and dimension count with every vector, keep the raw source text next to it so a re-embed never needs the original documents, and version your indexes by model. Sample TypeScript:
// lib/embedder.ts
export interface Embedder {
modelId: string; // "openai-3-small", "voyage-4-large", etc.
dimensions: number;
embed(texts: string[]): Promise<number[][]>;
embedQuery(text: string, task?: string): Promise<number[]>;
}
// Persisted vector row shape
export type StoredVector = {
id: string;
chunkId: string;
modelId: string; // <-- the load-bearing field
dimensions: number;
vector: number[];
metadata: Record<string, string | number | boolean>;
};The migration pattern is then straightforward. Run the new embedder in parallel for a window - old vectors keep serving traffic, new ingestion writes both old and new model vectors, queries hit both indexes, and you measure the new model on your eval set. When the new model wins, you flip the read path, run a backfill for historical chunks, and after a validation window you delete the old vectors. The whole operation takes a week of calendar time for a 10 million chunk corpus and almost no engineering time. Skip this contract and you will spend a weekend rewriting your retrieval layer instead. The same discipline applies to more complex setups like the ones in the agentic RAG architecture guide.
My picks by use case
These are concrete recommendations I would give a friend in each scenario, with the caveats baked in. If your situation is exotic, bring it to a scoping call - none of these are absolute.
MVP RAG, no specialized domain: OpenAI text-embedding-3-small with Matryoshka truncated to 512 dimensions. Pair with a small reranker only if eval shows you need it. Total embedding spend under $5 per month for a typical prototype corpus.
Production RAG, general-purpose corpus: OpenAI 3-small at full 1536 dimensions plus a hosted reranker (Cohere Rerank 4 or Voyage rerank-3) on the top 50 results. This is the highest-quality-per-dollar configuration I have shipped, and it is what runs in two of my client deployments today, with the reranker generation they launched on.
Specialized domain (legal, finance, code, biomed): voyage-4-large or the matching vertical model from Voyage, chosen on your eval set, with no reranker initially. The base embedding quality is high enough that a reranker is often unnecessary, which saves a network hop and a per-query cost.
High query volume, latency-sensitive: index with voyage-4-large, query with voyage-4-lite, store 512 dimensions in int8, and add rerank-3-lite only if the eval earns it.
Heavy multilingual (5+ languages, cross-lingual) or PDF-heavy: Cohere Embed 5 with the right input_type on every call, plus Cohere Rerank 4. The same-vendor pairing is smoother than mixing providers, and the multilingual retrieval quality has been consistently strong in the API category. If the documents are scanned pages or slides, a multimodal model (Embed 5, voyage-multimodal-3.5 or Gemini Embedding 2) embeds the page image directly, so you skip OCR and layout parsing altogether. Removing that subsystem is worth more than a few points of recall.
EU data residency requirement: BGE-M3 self-hosted on a co-located GPU, with text-embeddings-inference as the server, or Qwen3-Embedding if you have the GPU for it. Pair with a self-hosted reranker like bge-reranker-v2-m3 to keep the entire retrieval pipeline inside your perimeter. This is the only configuration I trust for strictly regulated EU clients.
Cost-sensitive at scale (50M+ chunks): BGE-M3 self-hosted is the right answer. The API per-token cost stops being marginal at this scale, and a single GPU node handles surprising throughput. If you are also building custom retrieval and tool pipelines, this is the kind of work I cover under AI integration.
OmniAPI's actual stack: OmniAPI currently runs OpenAI 3-small at 1024 dimensions (Matryoshka truncated from 1536) paired with Voyage rerank-2 on top 50. The corpus is roughly 4.2 million chunks of API documentation, the monthly embedding bill is under $40, and recall@5 on the production eval set is 0.93. The migration interface above is in place, and a Voyage 4 variant is the next candidate on the eval set.
Frequently asked questions
These are the questions I get most often when teams scope embedding work with me. The answers are also embedded as FAQ structured data for search.
What is the best embedding model for RAG in 2026?
There is no single best model. For raw retrieval quality from an API, voyage-4-large is the one to beat: it leads the public RTEB retrieval leaderboard and costs $0.12 per million tokens. OpenAI text-embedding-3-small at $0.02 per million tokens is still the sane default for general-purpose RAG because it is cheap, fast and easy to swap later. Cohere Embed 5 is the pick for multilingual and PDF-heavy corpora, and BGE-M3 or Qwen3-Embedding are the right picks when you must self-host for cost, residency or scale. Whatever you shortlist, test it on 50 to 100 of your own queries before you commit.
What is the difference between an embedding model and a reranking model?
An embedding model turns the query and each document into vectors separately, so documents can be embedded once and searched in milliseconds across millions of chunks. A reranker is a cross-encoder that reads the query and one candidate together and scores the pair, which is far more precise but too slow to run over a whole corpus. The standard pattern is to retrieve the top 50 to 100 with embeddings, then rerank that shortlist down to the 5 to 10 chunks that go into the prompt.
How do embedding dimensions affect retrieval accuracy, latency and storage cost?
Storage and memory scale linearly with dimensions and precision: one million 1024-dimension float32 vectors are about 4.1 GB raw, the same at 3072 dimensions is about 12.3 GB, and int8 or binary quantization cuts that by 4x or 32x. Distance computation and index memory grow with dimensions too, so smaller vectors are faster to search. Accuracy falls much more slowly than size: models trained with Matryoshka learning, such as OpenAI text-embedding-3, Voyage 4, Cohere Embed 5 and Gemini Embedding, lose only a little recall when truncated to 512 or 256 dimensions. Measure that loss on your own queries before you pick a size.
When should I choose a code, finance or legal embedding model instead of a general-purpose one?
Choose a domain model when one index holds mostly one kind of content and your queries use that domain's language: source code searched by describing behaviour, contracts and case law, or financial filings. Stay general-purpose when the corpus is mixed, when the general model is a newer generation than the domain model, or when a reranker closes the gap more cheaply. voyage-law-2 and voyage-finance-2 date from 2024 and cost the same $0.12 per million tokens as voyage-4-large, so the only fair way to choose is to run both on 50 to 100 of your real queries.
How do I test embedding models on my own search or RAG dataset?
Collect 50 to 100 real user queries, label the chunks that correctly answer each one, embed your corpus with every candidate model, and measure recall@10 and nDCG@10 per model. Add the cost and p95 latency per 1,000 queries from your own region, and include a run with a reranker on top of the cheapest model. Pick the cheapest configuration within a point or two of the best. The whole exercise takes an afternoon for a small corpus and a day for a large one.
Will a better embedding model fix my bad RAG results?
Usually not, and it is the most common misdiagnosis I see. Measure recall@50 and recall@10 on your labeled queries first. If recall@50 is high and recall@10 is much lower, the right chunk is being found but ranked too low, and a reranker fixes that far more cheaply than a model migration. If recall@50 is low as well, the answer is not reaching the candidate set at all, which is more often a chunking problem than a model problem. Only when both look healthy and quality is still short is the embedding model the thing to change.
Does the embedding model really matter compared to chunking and reranking?
It matters less than people think and more than the discourse suggests. On the eval sets I ran, switching from OpenAI 3-small to Voyage-3-large lifted recall@10 by 8 to 14 percent on domain-heavy corpora and 2 to 4 percent on generic content. A reranker such as Cohere Rerank or Voyage rerank typically lifts another 5 to 10 percent on top of any base model. Chunking strategy dwarfs both for badly chunked corpora. Fix chunking first, pick a sensible model second, add a reranker third.
Is OpenAI text-embedding-3-large worth the 6.5x price over 3-small?
Rarely. On OpenAI's own MTEB figures the gap between 3-small and 3-large is 2.3 points (62.3 against 64.6), and the real-world retrieval gap on most of my client corpora is under 4 percent at top-10. For that lift you pay 6.5x per token ($0.13 against $0.02 per million) and store vectors that are twice as large by default. If you have budget to spend on quality, the same money buys more lift from a reranker or from a Voyage 4 model. I default to 3-small and only reach for 3-large when a latency-sensitive workload cannot afford a rerank step.
Can I really self-host BGE-M3 in production?
Yes, and a surprising number of teams should. BGE-M3 is MIT-licensed, handles inputs up to 8,192 tokens in more than 100 languages, and on a single A10 or L4 GPU handles roughly 800 to 1,200 embeddings per second for short documents at a flat infrastructure cost of $300 to $500 per month in my deployments. If you embed more than 50 million tokens per month, it is cheaper than any API. The hidden cost is operating the inference server itself - text-embeddings-inference from Hugging Face makes it tractable, but you still own the on-call. Qwen3-Embedding is the stronger open option on MTEB if you have the GPU budget for it.
What are Matryoshka embeddings and why should I care?
Matryoshka representation learning trains a single embedding so that its first N dimensions are still usable on their own. OpenAI text-embedding-3, the Voyage 4 family, Cohere Embed 4 and 5, Gemini Embedding, Qwen3-Embedding and EmbeddingGemma all support it. In practice you embed once at full size, then store 256 or 512 dimensions for a 70 to 90 percent storage and memory reduction with only a few percent recall loss. For large indexes this is the single biggest cost lever after picking the right vector database.
How painful is switching embedding models on a live system?
It is the most expensive maintenance event in a RAG pipeline because every chunk has to be re-embedded and re-indexed. On a 10 million chunk corpus that is 2 to 8 hours of compute, from under a hundred to several hundred dollars in API spend, and a non-trivial cutover. The way to make it cheap is to write your application against a thin embedding interface from day one, store the model name and version with each vector, and run the new model in parallel until you have eval evidence to flip the switch. Voyage 4 and Cohere Embed 5 now share an embedding space within each family, so moving between sizes inside one family no longer needs a reindex, but moving from Voyage 3 to Voyage 4 still does.
Do multilingual embeddings really work or should I use one model per language?
Modern multilingual models are good enough that per-language models are rarely worth it. Cohere Embed 5, BGE-M3, Qwen3-Embedding and Gemini Embedding all state support for more than 100 languages, and the Voyage 4 models are tuned for multilingual retrieval, with cross-lingual retrieval that is usable out of the box - a French query against English documents returns the right chunks. Per-language models still win in extreme cases like Chinese-only corpora at scale, but for most multilingual RAG, one model is the right architecture. Test low-resource languages, including Albanian, on your own queries before you trust any vendor claim.
Closing
The embedding model category in 2026 is mature enough that any of the models in the opening table will get you to production. The difference between picking well and picking badly is a few percentage points of recall on your real queries, a 10x range in ingestion cost, and how much operational surface you take on. Start with OpenAI 3-small unless your domain is specialized or your scale pushes you to self-host. Build the migration contract from day one. Always evaluate on your data, never on MTEB. Re-evaluate at 1 million chunks and again at 10 million. That is the whole playbook.
If you would rather not spend the afternoon, this eval is the first thing I do in an AI integration engagement: your queries, your corpus, three or four candidate models and a reranked run, and a written recommendation with the numbers behind it before anything gets reindexed.