Embedding models: how to choose one

Build agents
HoneyHive Engineering

An embedding model turns text into vectors for search and RAG. The criteria that decide which one to use, and how to test candidates on your own data.

An embedding model turns a piece of text into a vector, so that texts with similar meaning land close together and can be found by similarity search or semantic search. To choose one, shortlist by language, domain and input length, decide what vector size you can afford to store and search, then score the shortlist on your own queries and documents. A leaderboard rank is only a starting point.

Embeddings sit inside the retrieval half of a RAG pipeline and also power semantic caching. The choice affects both quality and cost, and changing it later means re-embedding everything.

Why a leaderboard is not the answer

The Massive Text Embedding Benchmark (MTEB) is the usual starting point. Muennighoff, Tazi, Magne and Reimers built it from 8 task types, 58 datasets and 112 languages, and found that “no particular text embedding method dominates across all tasks.” The follow-up multilingual benchmark, MMTEB, covers 250+ languages and more than 500 tasks, including long-document and code retrieval. When it was published in February 2025, its authors reported that the best-performing publicly available model, multilingual-e5-large-instruct, had only 560 million parameters, so the biggest model is not automatically the best one.

The Sentence Transformers docs suggest the MTEB leaderboard as inspiration, and warn that “models that perform well on the leaderboard do not necessarily do well on your tasks.” Scores also change as models are added, so treat any rank as a snapshot. Use the leaderboard to build a shortlist, filter out models you cannot host, and move on.

The criteria

Criterion What to check Example from provider docs
Language Which languages your documents and queries use Google lists over 100 languages for gemini-embedding-2. The Sentence Transformers docs note LaBSE supports 109 languages but works less well for sentence pairs that are not translations of each other.
Input length How long the chunks are, and what happens past the limit OpenAI’s v3 models accept 8192 tokens. Google gives gemini-embedding-001 2,048 and gemini-embedding-2 8,192. Voyage lists 32,000 for most current models.
Dimensions Storage and search cost against quality OpenAI defaults to 1536 and 3072 for its two v3 models. Google’s range is 128 to 3072. Voyage offers 2048, 1024, 512 and 256 on models that support it.
Domain Whether a model is tuned for your content Voyage sells separate models for code, finance and legal retrieval.
Query and document handling Whether queries and documents need different prefixes or task types Google’s gemini-embedding-001 takes a task_type such as RETRIEVAL_QUERY. gemini-embedding-2 uses a text prefix instead. Voyage recommends setting input_type.
Hosting and cost API or self-hosted, and what you pay per token or per GPU hour OpenAI prices usage per input token. Sentence Transformers advises filtering out models that need excessive hardware.

These figures are from provider docs as read on 16 November 2026. Model names and limits change, so confirm them on the provider’s page before you commit.

Details that cause bugs

Input length and truncation. A chunk longer than the limit is either cut or rejected. Voyage’s truncation setting truncates over-length text when true and raises an error when false. A silent cut means the end of a chunk is never searchable, so size chunks below the limit (see chunking strategies).

Shortened vectors. Matryoshka Representation Learning, from Kusupati and colleagues, trains one embedding to carry information at several granularities, so a prefix of the vector stays useful. Google says both its Gemini embedding models use it. OpenAI reports that a text-embedding-3-large embedding shortened to 256 dimensions still beats an unshortened text-embedding-ada-002 on MTEB. Normalization matters after shortening: OpenAI says to normalize if you shorten manually, and Google says gemini-embedding-001 needs manual normalization for any size but 3072.

Quantization. Some models can return smaller number types. Voyage lists int8 and binary outputs for some models, where a binary vector is one eighth of the dimension count. Measure the retrieval quality it costs, like any other setting.

Query and document prefixes. Models that expect a task type or prefix give different vectors depending on how you label the text. Voyage notes embeddings made with and without input_type are compatible, but Google’s two models handle the label differently: gemini-embedding-2 rejects the task_type field that gemini-embedding-001 uses, so code written for one does not carry over. Google also says the two models’ embeddings are incompatible, so upgrading means re-embedding.

Switching later. Voyage is explicit that embeddings from its 4 series are compatible with each other, which is the kind of guarantee to look for before you commit. Without one, assume a swap means re-embedding the whole corpus.

Test candidates on your data

  1. Collect real queries and the documents that should answer them, as a golden dataset. Start small and add failures as you find them.
  2. Embed the same corpus with each shortlisted model, using the same chunking.
  3. Score retrieval for each, for example with the context metrics in RAG evaluation.
  4. Compare quality against vector size, input limit and cost, then pick the cheapest model that is good enough.

The MTEB repository documents how to evaluate your own model and add a task, if you want to extend a benchmark with your domain. Fine-tuning a small embedding model on domain data is another option. The semantic caching page covers one such result and why to treat a vendor’s numbers with care.

Check it in a trace

Retrieval quality depends on the embedding step, so record it. HoneyHive’s LlamaIndex integration traces retrieval and embeddings with OpenInference, and its datasets can run an experiment on each candidate model’s pipeline so results are compared side by side.

FAQ

What is an embedding model?

A model that turns text, and in some cases images, into a list of numbers (a vector) so that texts with similar meaning end up close together. OpenAI lists search, clustering, recommendations, anomaly detection and classification among the uses.

Which embedding model is best?

None leads everywhere. The authors of the MTEB benchmark found that no text embedding method dominates across all tasks. Shortlist from a leaderboard, then score the candidates on queries and documents from your own application.

How many dimensions should an embedding have?

More dimensions can keep more information but cost more to store and search. Several providers let you shorten vectors: OpenAI's dimensions parameter and Google's output_dimensionality both do. Measure retrieval quality at the sizes you are considering.

Can I switch embedding models later?

Only by re-embedding your documents and queries with the new model, unless the provider says the models are compatible. Voyage, for example, says embeddings from its 4 series are compatible with each other.

Do I need a multilingual embedding model?

If your documents or queries come in more than one language, yes. The Sentence Transformers docs describe multilingual models that give similar embeddings for the same text in different languages, with no input language to specify.

Share