# Embedding models: how to choose one

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

Source: https://www.honeyhive.ai/learn/embedding-models (updated 2026-11-16)

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](/learn/semantic-similarity) or [semantic search](/learn/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](/learn/rag-pipeline) and also power [semantic caching](/learn/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](https://arxiv.org/abs/2210.07316) 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](https://arxiv.org/abs/2502.13595) 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](https://www.sbert.net/docs/sentence_transformer/pretrained_models.html) 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](https://aistudio.google.com/docs/embeddings) over 100 languages for [gemini-embedding-2](/learn/gemini-embedding-2). The Sentence Transformers docs [note](https://www.sbert.net/docs/sentence_transformer/pretrained_models.html) 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](https://developers.openai.com/api/docs/guides/embeddings) 8192 tokens. Google [gives](https://aistudio.google.com/docs/embeddings) gemini-embedding-001 2,048 and gemini-embedding-2 8,192. Voyage [lists](https://docs.voyageai.com/docs/embeddings) 32,000 for most current models. |
| Dimensions | Storage and search cost against quality | OpenAI [defaults](https://developers.openai.com/api/docs/guides/embeddings) to 1536 and 3072 for its two v3 models. Google's [range](https://aistudio.google.com/docs/embeddings) is 128 to 3072. Voyage [offers](https://docs.voyageai.com/docs/embeddings) 2048, 1024, 512 and 256 on models that support it. |
| Domain | Whether a model is tuned for your content | Voyage [sells](https://docs.voyageai.com/docs/embeddings) 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](https://aistudio.google.com/docs/embeddings) a task_type such as RETRIEVAL_QUERY. gemini-embedding-2 uses a text prefix instead. Voyage [recommends](https://docs.voyageai.com/docs/embeddings) setting input_type. |
| Hosting and cost | API or self-hosted, and what you pay per token or per GPU hour | OpenAI [prices](https://developers.openai.com/api/docs/guides/embeddings) usage per input token. Sentence Transformers [advises](https://www.sbert.net/docs/sentence_transformer/pretrained_models.html) 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](https://docs.voyageai.com/docs/embeddings) 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](/learn/chunking-strategies)).

**Shortened vectors.** Matryoshka Representation Learning, from [Kusupati and colleagues](https://arxiv.org/abs/2205.13147), trains one embedding to carry information at several granularities, so a prefix of the vector stays useful. Google [says](https://aistudio.google.com/docs/embeddings) both its Gemini embedding models use it. OpenAI [reports](https://developers.openai.com/api/docs/guides/embeddings) 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](https://aistudio.google.com/docs/embeddings) for any size but 3072.

**Quantization.** Some models can return smaller number types. Voyage [lists](https://docs.voyageai.com/docs/embeddings) 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](https://docs.voyageai.com/docs/embeddings), but Google's two models handle the label differently: gemini-embedding-2 [rejects](https://aistudio.google.com/docs/embeddings) 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](https://docs.voyageai.com/docs/embeddings) 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](/learn/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](/learn/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](https://github.com/embeddings-benchmark/mteb) 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](/learn/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](https://docs.honeyhive.ai/v2/integrations/llamaindex.md) traces retrieval and embeddings with OpenInference, and its [datasets](https://docs.honeyhive.ai/v2/datasets/run-experiments.md) 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](https://aistudio.google.com/docs/embeddings), into a list of numbers (a vector) so that texts with similar meaning end up close together. OpenAI [lists](https://developers.openai.com/api/docs/guides/embeddings) search, clustering, recommendations, anomaly detection and classification among the uses.

### Which embedding model is best?

None leads everywhere. The authors of the [MTEB benchmark](https://arxiv.org/abs/2210.07316) 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](https://developers.openai.com/api/docs/guides/embeddings) and Google's [output_dimensionality](https://aistudio.google.com/docs/embeddings) 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](https://docs.voyageai.com/docs/embeddings) 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](https://www.sbert.net/docs/sentence_transformer/pretrained_models.html) multilingual models that give similar embeddings for the same text in different languages, with no input language to specify.
