AI Engineering

28 min read

Embedding Models (Oct 2026):
OpenAI vs Cohere vs Voyage 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 leads the public RTEB retrieval board, its rerankers work on any first-stage results, and a 50 to 100 query eval on your own data beats every leaderboard.

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:

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.

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-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; volume discounts and batch pricing come off these.

ModelDimensions (default, options)Max tokens$/1M tokensMultilingualSelf-host
OpenAI text-embedding-3-large3072 (shortenable, Matryoshka)8,192$0.13GoodNo
OpenAI text-embedding-3-small1536 (shortenable, Matryoshka)8,192$0.02GoodNo
Cohere Embed 5 Pro2048 (256 to 1536), float, int8, binary128K$0.12100+ languagesPrivate deployment
Cohere Embed 5 Fast2048 (256 to 1536), float, int8, binary128K$0.08100+ languagesPrivate deployment
voyage-4-large1024 (256, 512, 2048), float, int8, binary32,000$0.12Multilingual-tunedVPC via marketplaces
voyage-41024 (256, 512, 2048), float, int8, binary32,000$0.06Multilingual-tunedVPC via marketplaces
voyage-4-lite1024 (256, 512, 2048), float, int8, binary32,000$0.02Multilingual-tunedVPC via marketplaces
Gemini Embedding 23072 (768 and 1536 recommended)8,192$0.20100+ languagesNo
BGE-M31024 (dense + sparse + multi-vector)8,192$0 (self-host)100+ languagesYes (MIT)
Qwen3-Embedding (0.6B, 4B, 8B)1024, 2560, 4096 (any size from 32, Matryoshka)32K$0 (self-host)100+ languagesYes (Apache 2.0)
EmbeddingGemma-300m768 (512, 256, 128)2K$0 (self-host)100+ languagesYes (Gemma terms)
voyage-4-nano1024 (256, 512, 2048)32,000$0 (self-host)MultilingualYes (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.

  1. 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.
  2. 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.
  3. 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.
  4. 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 precisionBytes per vector1M vectors
3072, float3212,28812.3 GB
1536, float326,1446.1 GB
1024, float324,0964.1 GB
512, float322,0482.0 GB
1024, int81,0241.0 GB
1024, binary1280.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.

ModelFAQ recall@10Code recall@10Multilingual recall@10Avg query latencyNotes
OpenAI 3-small0.840.710.7895 msBaseline default
OpenAI 3-large0.870.740.81140 msMarginal lift vs price
Cohere embed-v40.860.730.89110 msMultilingual standout
Voyage-3-large0.910.830.85180 msBest retrieval, slowest
Voyage-30.860.760.81160 msStrong mid-tier
BGE-M3 (self-host)0.850.720.8628 msCheapest 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.

Model100K chunks1M chunks10M 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.

Voyage AI in 2026: the questions people actually ask

Voyage AI joined MongoDB in February 2025, and its models are served both from the Voyage API and from MongoDB Atlas. It is the provider I get the most specific questions about, so here are the direct answers. All prices are from Voyage's pricing page and all benchmark deltas are Voyage's own published numbers unless I say otherwise.

How do Voyage models compare with OpenAI and Cohere for text retrieval?

Short answer: Voyage is ahead on retrieval, at about the same price as the other premium models. Voyage reports that voyage-4-large beats Gemini Embedding 001 by 3.87 percent, 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 independent RTEB leaderboard had voyage-4-large in first place when I read it. My own (older) runs point the same way: Voyage-3-large beat OpenAI 3-small by 8 to 14 percent recall on domain-heavy corpora. On price, voyage-4-large and Cohere Embed 5 Pro are both $0.12 per million tokens and OpenAI 3-large is $0.13. The open question is Cohere Embed 5, which launched after Voyage published those comparisons.

How do you balance accuracy, latency and cost across Voyage models?

Pick a rung on the ladder, then mix rungs. Voyage's own recommendation is voyage-4-large for the best quality ($0.12), voyage-4-lite for the lowest latency and cost ($0.02), and voyage-4 for a balance between the two ($0.06). Because all Voyage 4 models share one embedding space, you do not have to choose one: 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.

Which Voyage model is best for a latency-sensitive application with a large query volume?

voyage-4-lite for the queries, against an index built with a larger Voyage 4 model. voyage-4-lite is the model Voyage tunes for latency and cost, and at $0.02 per million tokens a million 50-token queries cost $1. Keep the index at 512 or 1024 dimensions in int8 so search stays fast. If you rerank, use rerank-3-lite, which Voyage positions for latency-sensitive applications, keep the shortlist to around 50 candidates, and measure p95 from the region you deploy in. Voyage does not publish latency figures, so that measurement is the only number worth trusting.

Can Voyage's rerank-2 or rerank-3 be used with OpenAI or Cohere embeddings?

Yes. A reranker takes the query and the text of each candidate, not their vectors, so it does not care what produced the shortlist. Voyage's reranker docs describe applying it to candidates from embedding search or from lexical search such as BM25, and Voyage evaluated rerank-3 on top of BM25, OpenAI text-embedding-3-large, voyage-3-large and voyage-4-large. rerank-2 still works but is now an older model with a 16,000 token context; rerank-3 and rerank-3-lite have 32,000 tokens and cost $0.05 and $0.02 per million tokens. Voyage reports both beat Cohere Rerank v4.0 Pro, by 2.72 and 2.23 percent, across 95 datasets.

How does voyage-code-3 compare with other embedding models?

It has been replaced by voyage-code-4, which is better and cheaper. According to Voyage's launch post, voyage-code-4 beats voyage-code-3, Cohere Embed v4, Gemini Embedding 2 and OpenAI text-embedding-3-large by 13.98, 19.21, 16.01 and 40.06 percent in average NDCG@10 across the 28 code retrieval datasets used to evaluate voyage-code-3, and by wider margins on a new benchmark built from issue-fixing pull requests. It costs $0.12 per million tokens against $0.18 for voyage-code-3. The gap is real in my own data too: on my code search index the general voyage-3-large already beat OpenAI 3-small by 12 points of recall. Use a code model when queries describe behaviour ("where do we retry failed payments"); plain grep still wins when the query is an identifier.

How does voyage-3-large compare with voyage-law-2?

Today the real comparison is voyage-4-large against voyage-law-2, and you should test both. voyage-3-large is now an older model, replaced by voyage-4-large. voyage-law-2 is still current: it is tuned for legal retrieval, has a 16,000 token context and a fixed 1024-dimension float output, and costs $0.12 per million tokens. voyage-4-large costs the same, reads 32,000 tokens, and can be shrunk to 256 dimensions or quantized to int8 or binary, which matters for a large contract archive. Voyage's Voyage 4 evaluation includes law datasets, but I have not found a published head-to-head between voyage-4-large and voyage-law-2. At equal price, 50 to 100 real legal queries settle it in an afternoon.

Do Voyage models support multilingual search?

Yes. voyage-4-large, voyage-4 and voyage-4-lite are all described as optimized for general-purpose and multilingual retrieval, which is why the separate voyage-multilingual-2 is now an older model. Voyage does not publish a language count for them the way Cohere (100+) and BGE-M3 (100+) do. The multilingual part of its rerank-3 evaluation spans 51 datasets in 31 languages, which gives you a sense of coverage. For low-resource languages, test before you commit.

So when does Voyage win?

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. 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?":

  1. 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.
  2. 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.
  3. Embed the same chunks with every candidate. Same chunking, same distance metric, same top-k. Change one thing at a time.
  4. 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.
  5. 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.
  6. 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. For a fuller version of this, including how to build the query set quickly, see the benchmarking section of how to choose an embedding model, 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, 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.

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.

How do Voyage AI embeddings compare with OpenAI and Cohere?

On retrieval, Voyage is ahead on most published evaluations. 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 RTEB datasets, and on the public RTEB leaderboard voyage-4-large held first place when I checked on 16 October 2026. Those are vendor and leaderboard numbers, not mine. On price they are close: voyage-4-large and Cohere Embed 5 Pro are $0.12 per million tokens and OpenAI text-embedding-3-large is $0.13. OpenAI wins on simplicity, Cohere on multilingual and multimodal documents, Voyage on retrieval quality and on its model ladder from voyage-4-lite to voyage-4-large.

Can Voyage rerankers be used with OpenAI or Cohere embeddings?

Yes. A reranker scores the query against the text of each candidate, not against vectors, so it does not care what produced the shortlist. Voyage's documentation describes running it on candidates from embedding search or from lexical search such as BM25, and Voyage evaluated rerank-3 on top of BM25 and OpenAI text-embedding-3-large among others. rerank-2 still works but is now listed as an older model; rerank-3 and rerank-3-lite are the current ones, at $0.05 and $0.02 per million tokens with a 32,000 token context.

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.

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.