Best embedding models in 2026 for RAG and search

The best embedding models as of November 2026, ranked for RAG and search, with dated MTEB scores, prices per million tokens, and a tested truncation script.

Published
Reading time
15 min read
Level
Intermediate
By
AI for Devs
TL;DR
  • As of November 20, 2026, the best embedding model on third-party retrieval boards is the open Qwen3-Embedding-8B (Apache 2.0). It ranks first on MTEB's RTEB board with a 69.37 mean.
  • The best hosted embedding API for text RAG is Voyage's voyage-4-large at $0.12 per million tokens. It ranks second on RTEB, but the board shows no mean for it, so part of its case rests on Voyage's own tests.
  • MTEB scores are only comparable within one board and version. Qwen3-Embedding-8B scores 75.22 on MTEB(eng, v2), and OpenAI's guide lists 64.6 for text-embedding-3-large without naming a version.
  • Matryoshka truncation is cheap when a model is trained for it: EmbeddingGemma 2 loses 0.68 points on MTEB English v2 at 256 dimensions, a third of its storage, by Google's figures.
  • Leaderboards narrow the list. Your own recall@10 on 100 to 200 labeled queries makes the final pick.

Embedding models turn text, code, images, or audio into vectors, so a vector database can return the stored items closest to a query. The best embedding models in late 2026 split into hosted APIs from Voyage, Cohere, Google, and OpenAI, and open models such as Qwen3-Embedding, Harrier, and EmbeddingGemma 2 that you run yourself. Public boards cover the two groups unevenly, and several leading APIs have no complete score on MTEB's newest boards. This ranking uses dated leaderboard rows, labeled vendor evaluations, prices read on November 16, 2026, and a tested truncation script.

#Best embedding models in 2026, ranked

Qwen3-Embedding-8B is the best embedding model overall as of November 20, 2026, if you can host an 8B model, and Voyage's voyage-4-large is the best hosted API for text retrieval. The other seven each win on one need: visual documents, mixed media, code, multilingual text, small hardware, hybrid search, or price.

RankModelBest forAccessPrice per 1M text tokensEvidence class
1Qwen3-Embedding-8BBest retrieval you can self-hostOpen, Apache 2.0Your hardwareThird-party: RTEB #1, 69.37 mean
2Voyage voyage-4-largeHosted text RAGAPI$0.12Third-party: RTEB #2, no mean; vendor: RTEB
3Cohere embed-v5.0-proPDFs, slides, and 128K-token inputsAPI, VPC, on-premises$0.12Third-party: RTEB 65.87; vendor: ViDoRe V3
4Google gemini-embedding-2Text, images, audio, and video in one indexAPI$0.20, or $0.10 batchVendor only: 69.9 MTEB Multilingual
5Voyage voyage-code-4Code search and coding agentsAPI$0.12Vendor only: 19 code retrieval sets
6Microsoft Harrier OSS v1Open multilingual retrievalOpen, MITYour hardwareThird-party: MTEB Multilingual v2 #1, 74.27
7Google EmbeddingGemma 2CPUs, laptops, and phonesOpen, Apache 2.0Your hardwareThird-party: 67.53 on MTEB(eng, v2)
8BAAI BGE-M3Dense and sparse vectors from one modelOpen, MITYour hardwareOlder model, widely deployed
9OpenAI text-embedding-3-smallCheapest default in an OpenAI stackAPI$0.02Third-party: RTEB #64, no mean

Third-party means the MTEB leaderboard, which no model vendor runs, read on November 16, 2026. Vendor means the model's maker ran the test. A missing row is missing evidence, not proof of a weak model.

#How to choose an embedding model

Choose an embedding model by measuring retrieval on your own queries, then filter by what a leaderboard cannot see: input length, languages, dimensions, price, latency, and license. Use public scores to choose the finalists.

Work through the criteria in this order:

  • Retrieval quality on your data. Recall@10 on 100 to 200 real queries beats any average, because your vocabulary and document lengths differ from a benchmark's.
  • The right benchmark. Read retrieval scores and RTEB, not the overall mean, which also averages classification and clustering tasks that RAG never runs.
  • Max input tokens. The limit caps chunk size: 512 tokens for multilingual-e5-large-instruct and nomic-embed-text-v2-moe, 8,192 for OpenAI and Gemini, 32,000 for Voyage 4, and 128K for Cohere Embed 5.
  • Dimensions. Storage grows linearly with them, and Matryoshka-trained models let you cut vectors short.
  • Languages and code. Use a code model when queries are issue descriptions and documents are source files.
  • Price, including re-embedding. Vectors from different models are not comparable, so switching means re-embedding every chunk unless the vendor documents a shared space.
  • Latency. Query embedding sits on the request path of every search.
  • License. Apache 2.0 and MIT allow commercial self-hosting, CC BY-NC 4.0 needs a separate license, and some APIs cannot be self-hosted at all.

#MTEB scores: which board and which version

MTEB is a family of boards, so a score means nothing without its board and version. For RAG, read the RTEB boards and the retrieval column of MTEB(eng, v2) or MTEB(Multilingual, v2), and check the zero-shot column before you trust a high average.

The English v2 board has 41 tasks across seven task types and favors datasets not commonly used for fine-tuning, while the original set survives as MTEB(eng, v1). RTEB(beta) covers retrieval in legal, finance, code, and healthcare across 22 languages, including closed datasets.

The rank is a Borda count across tasks, so a model can outrank one with a higher mean. A dash in the mean column means at least one task has no result. The zero-shot column estimates the share of a board's datasets that a model did not train on.

Rows below were read on November 16, 2026. "No mean" means a row exists without a complete average.

ModelMTEB(eng, v2) meanZero-shot, eng v2MTEB(Multilingual, v2) meanRTEB(beta) rank and mean
Qwen3-Embedding-8B75.2295%70.58#1, 69.37
QZhou-Embedding75.9748%Not listedNot listed
voyage-4-largeNot listedNot listedNot listed#2, no mean
Cohere embed-v5.0-proNot listedNot listedNot listed#7, 65.87
gemini-embedding-00173.3095%68.37#18, no mean
harrier-oss-v1-27bNo mean87%74.27Not listed
EmbeddingGemma 267.5395%60.52Not listed
text-embedding-3-largeNo meanNot reportedNo mean#46, no mean

QZhou-Embedding beats Qwen3-Embedding-8B on the English mean at 48% zero-shot, so about half of that board's datasets overlap its training data. Qwen's score at 95% zero-shot says more about an unseen corpus.

Gemini Embedding 2 has only a partial row for its preview. OpenAI's embeddings guide lists 62.3% and 64.6% on MTEB for its v3 models without naming a version, so do not set those beside v2 numbers.

Vendor numbers fill the gaps, each from the vendor's own choice of tests:

  • Voyage reports that voyage-4-large beats Gemini Embedding 001 by 3.87%, Cohere Embed v4 by 8.20%, and OpenAI v3 Large by 14.05% on average across 29 RTEB datasets at NDCG@10 (January 15, 2026).
  • Cohere reports 85.8 on ViDoRe V3 for Embed 5 Pro, against 83.7 for Voyage 4 Large and 83.2 for Gemini Embedding 2 (September 30, 2026), using RCP-nDCG@10, its own metric over a fixed candidate set rather than first-stage retrieval.
  • Google reports 69.9 on MTEB Multilingual and 84.0 on MTEB Code for Gemini Embedding 2 in its May 26, 2026 paper.

#The nine picks, model by model

Each entry gives vendor facts and leaderboard rows as of November 16, 2026, then says who should pick it.

#1. Qwen3-Embedding-8B: best overall if you can host it

Qwen3-Embedding-8B leads both RTEB boards with complete scores: 69.37 on RTEB(beta) and 69.59 on RTEB(eng, beta). It also scores 75.22 on MTEB(eng, v2), 70.58 on Multilingual v2, and 80.69 on MTEB(Code, v1), each at 95% zero-shot or higher.

Its model card lists Apache 2.0, a 32K-token input, more than 100 natural and programming languages, and output sizes from 32 to 4,096 dimensions. Qwen says a query-side task instruction typically adds 1% to 5% to retrieval. The weights take about 14.1 GiB at 16-bit precision, and the 4B and 0.6B siblings trade a few points for less memory.

The model dates from June 2025, so the board leader is 17 months old. Pick it when you have a GPU and want the top third-party score with no per-token bill.

#2. Voyage voyage-4-large: best hosted API for text RAG

voyage-4-large ranks second on RTEB(beta), the highest of any hosted API, though the board shows no mean for it. It costs $0.12 per million tokens after 200 million free, and accepts 32,000 tokens per input.

Voyage's docs list 1,024 dimensions by default, or 256, 512, or 2,048, in float, int8, uint8, binary, or ubinary. Voyage calls it the first production-grade mixture-of-experts embedding model. All Voyage 4 models share one space, so you can index with voyage-4-large and embed queries with voyage-4-lite at $0.02.

Pick it for hosted text retrieval with long inputs and a cheap query model that needs no re-index.

#3. Cohere Embed 5 Pro: best for PDFs and visual documents

Cohere's embed-v5.0-pro, released September 30, 2026, has the best complete RTEB score of any hosted model: 65.87 on RTEB(beta), against 62.15 for embed-v5.0-fast. It embeds text, images, and mixed pages such as PDF pages into one vector, from inputs up to 128K tokens.

Cohere's docs list 256 to 2,048 dimensions in float, int8, or binary, and more than 100 languages. Pro costs $0.12 per million text tokens and Fast $0.08, with images at $0.40 for both. Pro and Fast share a space, and Cohere recommends indexing with Pro and querying with Fast. Embed 5 runs on Cohere's API, Model Vault, Microsoft Foundry, Amazon SageMaker, or your own VPC or data center through vLLM.

Pick it for scanned reports, slide decks, and financial filings, or when data must stay on your servers.

#4. Gemini Embedding 2: best for mixed media in one index

gemini-embedding-2 puts text, images, audio, video, and PDFs into one space, and went generally available on April 22, 2026. Since November 6, 2026, requests to gemini-embedding-2-preview route to the GA model, which shares its schema, price, and space, so no re-index is needed. Update the model string anyway.

Google's docs allow 8,192 text tokens, six images, 180 seconds of audio, 120 seconds of video, or one six-page PDF per request. Output defaults to 3,072 dimensions, accepts 128 to 3,072, and is renormalized automatically when cut. There is no task_type field, so prefixes such as task: search result | query: go in the text.

Text costs $0.20 per million tokens, or $0.10 in batch. The text-only gemini-embedding-001 costs $0.15, takes 2,048 tokens, uses a different space, and can shut down as early as May 14, 2028. Pick Gemini Embedding 2 when one index must search screenshots, recordings, and video, knowing its scores so far are Google's own.

#5. Voyage voyage-code-4: best for code retrieval

voyage-code-4, released August 13, 2026, targets retrieval for coding agents. Voyage built 19 test sets from merged pull requests, with the issue as the query and the files the fix touched as the answers, and reports beating Gemini Embedding 2 by 31.03% and OpenAI v3 large by 48.58% at NDCG@10.

It costs $0.12 per million tokens, takes 32,000 tokens, and outputs 256 to 2,048 dimensions. It has no row on MTEB(Code, v1), so every score is Voyage's. The open alternative is Qwen3-Embedding-8B at 80.69 on that board, whose leader, papr-embed-code-1-4b at 81.13, reports only 16% zero-shot. Pick voyage-code-4 for issue-to-file search, and test it on your own repository.

#6. Microsoft Harrier OSS v1: best open multilingual model

harrier-oss-v1-27b leads MTEB(Multilingual, v2) at 74.27, at 78% zero-shot, ahead of Qwen3-Embedding-8B at 70.58. Its MIT-licensed card lists a 32,768-token input and 5,376-dimension output, and the weights take about 50.3 GiB at 16-bit precision.

The card does not mention Matryoshka training, so plan to store all 5,376 dimensions, past pgvector's index limits of 2,000 for vector and 4,000 for halfvec. The 0.6B sibling scores 69.01 on the same board. Pick the 27B model for multilingual corpora on a large GPU, and the 0.6B model for modest hardware.

#7. EmbeddingGemma 2: best for CPUs and devices

EmbeddingGemma 2 is a 270M-parameter text model under Apache 2.0, with optional vision and audio encoders that bring it to 740M. Its model card lists an 8,192-token input, 768 dimensions with Matryoshka cuts to 512, 256, and 128, and more than 100 languages.

Google reports 68.46 on MTEB(eng, v2), and the leaderboard shows 67.53, so quote the source with the number. Pick it for search on laptops, phones, or CPU-only servers.

#8. BGE-M3: best for hybrid search from one model

BGE-M3 returns dense, sparse, and multi-vector representations from one forward pass, so one model feeds hybrid search. Its card lists MIT, 8,192 tokens, 1,024 dimensions, and more than 100 languages.

It dates from January 2024, trails newer models, and has no complete mean on the boards above, but about 30 million downloads in the past month on Hugging Face mean serving tools cover it well. gte-multilingual-base is a smaller option with sparse output: Apache 2.0, 305M parameters, 8,192 tokens, and 128 to 768 dimensions. Pick BGE-M3 when exact identifiers such as error codes must match.

#9. OpenAI text-embedding-3-small: cheapest hosted default

text-embedding-3-small costs $0.02 per million tokens, accepts 8,192 tokens, and returns 1,536 dimensions that the dimensions parameter can shorten. OpenAI's vectors are normalized to length 1, so a dot product equals cosine similarity.

On RTEB(beta), text-embedding-3-small ranks 64th and text-embedding-3-large 46th, neither with a mean. text-embedding-3-large costs $0.13, more than voyage-4-large, which ranks 44 places higher. voyage-4-lite matches the small model's price with a 32,000-token input. Pick text-embedding-3-small to stay inside an OpenAI-only stack.

Also checked and not ranked: Amazon's Titan Text Embeddings V2 and Nova Multimodal Embeddings, whose prices the Bedrock pricing page did not show, Mistral's 2023 mistral-embed, and NVIDIA's Nemotron-3-Embed-8B, third on RTEB(beta) with no mean.

#Embedding model prices and specs

Hosted embedding prices run from $0.02 to $0.20 per million text tokens as of November 16, 2026, so a one-billion-token corpus costs $20 to $200 to embed. A million 20-token queries cost $2.40 at $0.12.

Price per million text tokens for twelve hosted embedding models, from $0.02 for text-embedding-3-small and voyage-4-lite to $0.20 for gemini-embedding-2, which is $0.10 in batch. Embedding one billion tokens costs 1,000 times the listed price.USD per 1M text tokens, and the cost to embed 1B tokens$0.00$0.05$0.10$0.15$0.20text-embedding-3-small$0.02 | $20 per 1Bvoyage-4-lite$0.02 | $20 per 1Bvoyage-4$0.06 | $60 per 1Bembed-v5.0-fast$0.08 | $80 per 1Bmistral-embed$0.10 | $100 per 1Bvoyage-4-large$0.12 | $120 per 1Bembed-v5.0-pro$0.12 | $120 per 1Bvoyage-code-4$0.12 | $120 per 1Btext-embedding-3-large$0.13 | $130 per 1Bgemini-embedding-001$0.15 | $150 per 1Bcodestral-embed-2505$0.15 | $150 per 1Bgemini-embedding-2$0.20 | $200 per 1Bstandard ratebatch rate, gemini-embedding-2
Fig. 1Embedding a billion tokens costs $20 on the cheapest hosted models and $200 on Gemini Embedding 2 at the standard rate, so corpus size, not query volume, drives the bill. List prices as of November 16, 2026.

Prices below are list prices for text, read on November 16, 2026, from OpenAI, Google, Voyage, Cohere's Embed 5 post, Mistral's model pages, and the Amazon Bedrock docs.

Hosted modelPer 1M text tokensMax input tokensDefault dimensionsSmaller sizes and types
voyage-4-large$0.1232,0001,024256, 512, 2,048; int8 and binary
voyage-4-lite$0.0232,0001,024Same, shared space with voyage-4-large
voyage-code-4$0.1232,0001,024256, 512, 2,048
embed-v5.0-pro$0.12128K2,048256 to 1,536; int8 and binary
embed-v5.0-fast$0.08128K2,048Same, shared space with Pro
gemini-embedding-2$0.20, $0.10 batch8,1923,072128 to 3,072, renormalized for you
gemini-embedding-001$0.152,0483,072128 to 3,072, normalize yourself
text-embedding-3-large$0.138,1923,072Any size through dimensions
text-embedding-3-small$0.028,1921,536Any size through dimensions
amazon.titan-embed-text-v2:0Not shown when read8,1921,024512, 256

Open models cost GPU time instead of tokens. The license column decides whether you can ship them in a product.

Open modelLicenseParametersMax input tokensDimensions
Qwen3-Embedding-8BApache 2.07.6B32K32 to 4,096
harrier-oss-v1-27bMIT27B32,7685,376
EmbeddingGemma 2Apache 2.0270M text8,192768, 512, 256, 128
BGE-M3MIT568M8,1921,024, plus sparse
voyage-4-nanoApache 2.0340M32,000256 to 2,048
multilingual-e5-large-instructMIT560M5121,024
jina-embeddings-v5-text-smallCC BY-NC 4.00.6B32K32 to 1,024

voyage-4-nano shares the Voyage 4 space, so a local prototype can query an index the hosted models built.

#Dimensions and Matryoshka truncation

Matryoshka representation learning trains a model so the first N dimensions of each vector work as a smaller embedding. Cutting 768 dimensions to 256 cuts storage and exact-search cost by two thirds, and a model trained this way loses little until the cut gets deep.

Google's EmbeddingGemma 2 table shows the shape. At 256 dimensions the model loses 0.68 points on MTEB English v2 and 0.95 on Multilingual v2. At 128 the loss grows to 2.78 and 3.47 points, and code retrieval drops 7.27.

Points lost against the 768-dimension score for EmbeddingGemma 2. At 512 dimensions the loss is 0.05 to 1.44 points, at 256 it is 0.68 to 2.50, and at 128 it is 2.78 on English, 3.47 on multilingual, and 7.27 on code.Points lost against 768 dimensions, Google-reported Mean(Task)0-2-4-6-8768 dimsfull size512 dims1.5x smaller256 dims3x smaller128 dims6x smaller-2.78-3.47-7.27MTEB(eng, v2)MTEB(Multilingual, v2)MTEB(Code, v1)
Fig. 2EmbeddingGemma 2 loses 0.05 to 1.44 points at 512 dimensions and up to 7.27 points on code at 128, so stop cutting where your own recall starts to fall. Scores reported by Google.

Renormalize after every cut. Gemini Embedding 2 does it for you, while gemini-embedding-001 and manual cuts of OpenAI vectors need an L2 normalization afterward. A vector cut without renormalizing is shorter than length 1, so a store that ranks by dot product scores it differently from cosine.

The script below shows both effects with the Python standard library only. It generates 800 documents in 40 topics, with topic signal strongest in the first dimensions, the property Matryoshka training aims for. A rotated copy has identical full-length similarities but spreads the signal evenly, like a model never trained for truncation.

truncate_demo.py
Python
"""Cosine similarity and Matryoshka-style truncation on generated vectors.
 
Standard library only. No embedding model or API is called.
"""
import math
import platform
import random
from operator import mul
 
D, TOPICS, DOCS, QUERIES, K = 256, 40, 800, 100, 10
DIMS = (256, 128, 64, 32, 16)
rng = random.Random(7)
 
 
def dot(a, b):
    return sum(map(mul, a, b))
 
 
def normalize(v):
    n = math.sqrt(dot(v, v))
    return [x / n for x in v]
 
 
def cosine(a, b):
    return dot(a, b) / math.sqrt(dot(a, a) * dot(b, b))
 
 
def gauss(n):
    return [rng.gauss(0, 1) for _ in range(n)]
 
 
# Topic signal decays faster than noise along the vector, so the first
# dimensions are the most informative. Matryoshka training aims for that.
decay = [math.exp(-i / 48) for i in range(D)]
noise = [w**0.75 for w in decay]
centroids = [[w * x for w, x in zip(decay, gauss(D))] for _ in range(TOPICS)]
 
 
def sample(topic):
    return normalize([c + s * e for c, s, e in zip(centroids[topic], noise, gauss(D))])
 
 
doc_topic = [i % TOPICS for i in range(DOCS)]
query_topic = [rng.randrange(TOPICS) for _ in range(QUERIES)]
front_docs = [sample(t) for t in doc_topic]
front_queries = [sample(t) for t in query_topic]
 
 
def random_rotation(n):
    """Gram-Schmidt on Gaussian vectors gives a random orthogonal matrix."""
    basis = []
    while len(basis) < n:
        v = gauss(n)
        for b in basis:
            p = dot(v, b)
            v = [x - p * y for x, y in zip(v, b)]
        basis.append(normalize(v))
    return basis
 
 
R = random_rotation(D)
rot_docs = [[dot(row, v) for row in R] for v in front_docs]
rot_queries = [[dot(row, v) for row in R] for v in front_queries]
 
 
def top_k(query, docs, score=dot):
    ranked = sorted(((score(query, d), i) for i, d in enumerate(docs)), reverse=True)
    return [i for _, i in ranked[:K]]
 
 
def truncate(vectors, d, renorm=True):
    return [normalize(v[:d]) if renorm else v[:d] for v in vectors]
 
 
def evaluate(queries, docs):
    full = [top_k(q, docs) for q in queries]
    rows = {}
    for d in DIMS:
        found = [top_k(q, truncate(docs, d)) for q in truncate(queries, d)]
        hits = sum(doc_topic[i] == query_topic[n] for n, f in enumerate(found) for i in f)
        kept = sum(len(set(f) & set(g)) for f, g in zip(found, full))
        rows[d] = (hits / (K * QUERIES), kept / (K * QUERIES))
    return rows
 
 
print(f"python {platform.python_version()}, D={D}, {TOPICS} topics, {DOCS} docs, {QUERIES} queries")
q = front_queries[0]
same, other = front_docs[query_topic[0]], front_docs[(query_topic[0] + 1) % TOPICS]
print(f"same topic:  cosine {cosine(q, same):.4f}, dot {dot(q, same):.4f}")
print(f"other topic: cosine {cosine(q, other):.4f}, dot {dot(q, other):.4f}")
drift = max(abs(dot(a, b) - dot(ra, rb)) for a, ra in zip(front_queries[:5], rot_queries[:5])
            for b, rb in zip(front_docs, rot_docs))
print(f"rotation changes full-length dot products by at most {drift:.1e}")
 
front, rot = evaluate(front_queries, front_docs), evaluate(rot_queries, rot_docs)
print("\n          front-loaded          rotated copy")
print("dims  bytes  p@10  top10 kept  p@10  top10 kept")
for d in DIMS:
    print(f"{d:>4} {d * 4:>6}  {front[d][0]:.3f}  {front[d][1]:>10.3f}  "
          f"{rot[d][0]:.3f}  {rot[d][1]:>10.3f}")
 
d = 64
raw = truncate(front_docs, d, renorm=False)
norms = [math.sqrt(dot(v, v)) for v in raw]
qs = truncate(front_queries, d)
moved = sum(len(set(top_k(q, raw)) - set(top_k(q, raw, cosine))) for q in qs)
print(f"\ncut to {d} dims, not renormalized: doc norms {min(norms):.3f} to {max(norms):.3f}")
print(f"top-10 results that differ from cosine ranking: {moved / (K * QUERIES):.1%}")
 
print("\nstorage for 10 million vectors, GiB: float32 / int8 / binary")
for d in (3072, 2048, 1536, 1024, 768, 512, 256):
    gib = [10_000_000 * d * b / 2**30 for b in (4, 1, 1 / 8)]
    print(f"{d:>5} dims: {gib[0]:7.2f} / {gib[1]:6.2f} / {gib[2]:5.2f}")

Run it with python truncate_demo.py. It ran on Python 3.15.1 with no packages installed, on an Apple M2 with 16 GB, in about 14 seconds. Real output:

Text
python 3.15.1, D=256, 40 topics, 800 docs, 100 queries
same topic:  cosine 0.3956, dot 0.3956
other topic: cosine 0.1169, dot 0.1169
rotation changes full-length dot products by at most 3.6e-15
 
          front-loaded          rotated copy
dims  bytes  p@10  top10 kept  p@10  top10 kept
 256   1024  0.950       1.000  0.950       1.000
 128    512  0.947       0.989  0.913       0.803
  64    256  0.921       0.927  0.770       0.638
  32    128  0.778       0.741  0.535       0.422
  16     64  0.504       0.463  0.303       0.224
 
cut to 64 dims, not renormalized: doc norms 0.889 to 0.979
top-10 results that differ from cosine ranking: 3.0%
 
storage for 10 million vectors, GiB: float32 / int8 / binary
 3072 dims:  114.44 /  28.61 /  3.58
 2048 dims:   76.29 /  19.07 /  2.38
 1536 dims:   57.22 /  14.31 /  1.79
 1024 dims:   38.15 /   9.54 /  1.19
  768 dims:   28.61 /   7.15 /  0.89
  512 dims:   19.07 /   4.77 /  0.60
  256 dims:    9.54 /   2.38 /  0.30

Here p@10 is the share of the top 10 from the query's own topic, and "top10 kept" is the overlap with the full-length top 10.

Precision at 10 against kept dimensions on generated vectors. Both sets score 0.950 at 256 dimensions. At 64 dimensions the front-loaded set keeps 0.921 and the rotated copy falls to 0.770; at 16 they reach 0.504 and 0.303.Precision@10 on generated vectors, by kept dimensions0.000.250.500.751.00256128643216Dimensions kept, out of 2560.9210.770front-loaded, like Matryoshka trainingrotated copy, signal spread evenly
Fig. 3Both vector sets score 0.950 at full length. Cut to 64 dimensions, the front-loaded set keeps 0.921 and the rotated copy falls to 0.770, so truncation only works on models trained to put information first.

This exercised cosine similarity, truncation, renormalization, and storage arithmetic. It ran no embedding model or API, so the precision values describe generated data, not any product.

Quantized output multiplies the savings. Voyage 4 and Cohere Embed 5 return int8 and binary vectors, and 10 million 3,072-dimension vectors shrink from 114.44 GiB in float32 to 3.58 GiB in binary. Measure recall at the exact size and type you will store.

#Latency, batching, and self-hosting

Query embedding sits on the request path, while document embedding is a throughput job that can run in batch. Measure p95 query latency from your own region, because this article ran no latency test and vendors publish few numbers.

  • Batch pricing cuts indexing cost. Gemini Embedding 2 charges half, and Voyage's Batch API costs 33% less with a 12-hour window and no free tokens. OpenAI's pricing page lists no batch rate for embeddings.
  • A shared space moves queries to a smaller model. Cohere measured Embed 5 Fast at 377.3 documents per second against 159.7 for Pro, and Voyage suggests voyage-4-lite queries over a voyage-4-large index.
  • Amazon Bedrock throttles embedding models by requests per minute rather than tokens, so batch many short chunks into each call.

Self-hosting turns token cost into memory. Qwen3-Embedding-8B needs about 14.1 GiB for 16-bit weights and Harrier 27B about 50.3 GiB, computed from their parameter counts, while EmbeddingGemma 2's text model runs on a CPU. Cohere's Embed 5 post names vLLM for private deployments, and the inference engine comparison covers that stack.

Model churn is the hidden cost. Google shut down text-embedding-004 on January 14, 2026, so track dates in the model retirements dataset, and store the model name and dimension count beside every vector so a re-index can run in stages.

#Test embedding models on your own data

Two or three finalists and one afternoon of labeling settle the choice. Measure with exact search, so the vector database index adds no error of its own.

  1. Collect 100 to 200 real user queries and label the chunks that answer each one.
  2. Chunk once with one chunker, and keep chunks under the smallest finalist's input limit.
  3. Embed with each finalist in its documented format: Qwen's query instruction, Gemini's task: prefix, or Nomic's search_query: prefix.
  4. Score recall@10 and mean reciprocal rank with exact cosine search over all chunks.
  5. Repeat at the truncated size and output type you plan to store.
  6. Add reranking on top and measure again, because a reranker can close the gap between finalists.
  7. Choose the cheapest finalist within two points of the best recall@10 that your license terms allow.

The two-point threshold is a starting position, not a benchmark result. Tighten it if your answers carry legal or financial weight. If retrieval still misses after this test, the cause may sit outside the embedding model, and RAG vs fine-tuning covers the failures retrieval cannot fix.

#Questions

What is the best embedding model for RAG?

As of November 20, 2026, Qwen3-Embedding-8B is the best embedding model for RAG if you can host an 8B model. It ranks first on MTEB's RTEB retrieval board with a 69.37 mean and ships under Apache 2.0. For a hosted API, Voyage's voyage-4-large ranks second on the same board at $0.12 per million tokens. Confirm either on your own queries.

What is the best open-source embedding model?

Qwen3-Embedding-8B is the best open-weight embedding model overall: Apache 2.0, a 32K-token input, and first place on RTEB as of November 16, 2026. For multilingual text, Microsoft's MIT-licensed Harrier OSS v1 27B leads MTEB Multilingual v2 at 74.27. For CPUs and devices, EmbeddingGemma 2 is a 270M-parameter text model under Apache 2.0.

Which MTEB score should I trust?

Trust a score only when it names the board and version, such as MTEB(eng, v2) or RTEB(beta), and comes from the leaderboard rather than a vendor post. For RAG, read retrieval scores, not the overall mean. Check the zero-shot column too: a model trained on many benchmark datasets can post a high average that does not carry over to your data.

How many dimensions should my embeddings have?

Start at the vendor's recommended middle size, such as 768 or 1,024, and measure recall against the full size on your own queries. EmbeddingGemma 2 loses 0.68 points on MTEB English v2 at 256 dimensions, by Google's figures. Truncate only models trained with Matryoshka representation learning, and renormalize vectors after cutting them unless the API does it for you.

Can I switch embedding models without re-embedding my documents?

Usually not. Vectors from different models live in different spaces, so a switch means re-embedding every chunk. The exceptions are documented families. The Voyage 4 models share one space, Cohere Embed 5 Pro and Fast share one, and Google says gemini-embedding-2 uses the same space as its preview. Gemini Embedding 001 and 2 are not compatible.

What are embeddings in AI?

Embeddings are fixed-length lists of numbers that a model produces for text, images, code, or audio, placed so that related inputs end up close together. Search compares a query's embedding with stored embeddings, usually by cosine similarity, and returns the nearest items. RAG systems use embeddings to find the passages a language model should read before it answers.

Are OpenAI embeddings still good in 2026?

OpenAI's text-embedding-3 models still work, but they are 2024 models that trail newer ones on current boards. On RTEB, text-embedding-3-large ranks 46th and text-embedding-3-small 64th as of November 16, 2026. At $0.02 per million tokens, text-embedding-3-small stays a fair default inside an OpenAI-only stack, while text-embedding-3-large at $0.13 is hard to justify.