Home / Insights / Generative AI and LLMs
Generative AI and LLMs
Choosing an Embedding Model for Enterprise Search: Languages, Domains and Cost
The embedding model decides which passages your search can find before any language model writes an answer. This guide shows how to choose one on evidence from your own documents rather than leaderboard rank alone.
Key takeaways
- Public leaderboards are a shortlist tool, not a decision: MTEB’s own authors found no single embedding method dominates across all tasks.
- Language coverage matters more than headline scores for multilingual organisations; check retrieval quality in each language and across languages.
- Changing the embedding model later means re-embedding the whole corpus, so treat the choice as a data migration decision with an exit plan.
- Dimensions drive storage and query cost; models that support shortened embeddings let you trade a little quality for a smaller index.
- Decide with a 100 to 300 question test set from your own documents, scored on recall at k, before scaling ingestion.
On this page
- Why does the embedding model matter so much?
- What actually differs between embedding models?
- How should languages shape the choice?
- How do domain fit, dimensions and cost trade off?
- How do you compare models on your own data?
- How do you decide and implement without locking yourself in?
- Frequently asked questions
- Sources and methodology
When an enterprise search or retrieval-augmented generation (RAG) project underperforms, teams usually blame the language model. More often the problem is earlier: the right passage was never retrieved. The embedding model, which turns text into vectors so that similar meanings sit close together, determines what can be found. If it does not understand your language, your jargon or the way your users phrase questions, no amount of prompt tuning will recover the missing context.
This article is for CTOs and technical leads choosing an embedding model for internal knowledge search, customer help search or a RAG product. It explains what actually differs between models, how to weigh languages, domain fit, hosting and cost, how to run a fair comparison on your own data, and how to avoid locking yourself into a model you will regret.
Why does the embedding model matter so much?
In a typical RAG pipeline, documents are split into chunks and each chunk is embedded once at ingestion. Each user question is embedded at query time, and the search engine returns the chunks whose vectors are closest. The language model only sees what this step returns. Retrieval quality therefore sets a ceiling on answer quality.
Three properties of the embedding model shape that ceiling:
- What it understands. Languages, scripts, domain vocabulary, code, tables and abbreviations seen in training.
- How much it can read. The maximum input length limits chunk size; text beyond it is truncated or must be split.
- How it represents meaning. Most models produce one dense vector per chunk; some also produce sparse (keyword-like) or multi-vector outputs that help with exact terms and long passages.
The model is also sticky. Vectors from different models are not comparable, so switching models means re-embedding every document and rebuilding the index. For a few thousand pages that is an afternoon; for millions of chunks it is a planned migration with real compute cost. That is the main reason to choose carefully up front.
What actually differs between embedding models?
Most teams start with the Massive Text Embedding Benchmark (MTEB). It is useful, but read it carefully. The original MTEB paper covers 8 embedding tasks across 58 datasets and 112 languages, and after benchmarking 33 models its authors found that no particular text embedding method dominates across all tasks. A high average can hide weak retrieval performance, and the retrieval datasets may look nothing like your documents.
Hosted API models
Providers such as OpenAI, Cohere and Google offer embeddings as an API. OpenAI’s third-generation models, announced in January 2024, illustrate the typical trade-offs. According to OpenAI’s announcement, text-embedding-3-small scored 44.0% on the MIRACL multilingual retrieval benchmark and 62.3% on MTEB at $0.00002 per 1,000 tokens, while text-embedding-3-large scored 54.9% and 64.6% at $0.00013 per 1,000 tokens. The older text-embedding-ada-002 scored 31.4% on MIRACL, which shows how much multilingual retrieval quality moved in a single generation.
Open-weight models
Open models can run in your own cloud account or on-premises. Two research-backed examples are relevant for multilingual enterprises. Microsoft’s Multilingual E5 family comes in small, base and large sizes, trained with contrastive pre-training on about 1 billion multilingual text pairs followed by fine-tuning. M3-Embedding (published as BGE-M3) supports retrieval in over 100 languages, accepts inputs up to 8,192 tokens and can produce dense, sparse and multi-vector representations from one model.
Comparison of the main options
| Factor | Hosted API model | Open-weight model, self-hosted |
|---|---|---|
| Time to first result | Minutes | Days (serving, scaling, monitoring) |
| Cost model | Per token, predictable at low volume | Compute you run, cheaper at sustained high volume |
| Data residency | Depends on provider regions and terms | Fully under your control |
| Model changes | Provider may release or retire models | You decide when to upgrade |
| Fine-tuning on your domain | Limited or unavailable | Possible with your own training data |
| Operational burden | Low | Moderate (GPU or CPU serving, batching) |
How should languages shape the choice?
For organisations working across Australia, the UK, Singapore and Southeast Asia, language is often the deciding factor. English-only benchmarks say little about how a model handles Vietnamese policy documents, Bahasa Indonesia support tickets or Chinese supplier contracts.
Three language scenarios
- Monolingual English. Most current models perform reasonably; choose on domain fit, cost and hosting.
- Several languages, same-language queries. Users ask in the language of the documents. You need solid retrieval in each language, and you should test each one separately.
- Cross-lingual queries. Users ask in English about documents written in another language, or the reverse. This is the hardest case and the one where multilingual-trained models such as Multilingual E5 or M3-Embedding, or newer hosted models with strong multilingual scores, earn their place.
Practical checks
- Use MIRACL or similar multilingual retrieval results as a first filter, then test on your own documents.
- Check tokenisation cost: some scripts use more tokens per word, which affects both price and the effective chunk length.
- Watch for mixed-language documents and code-switched queries, which are common in Southeast Asian workplaces.
- Pair dense retrieval with keyword search for product codes, names and abbreviations that embeddings often blur. Our guide to keyword, vector and hybrid search covers this.
How do domain fit, dimensions and cost trade off?
Domain fit
General-purpose models are trained on broad web and question-answer data. Clinical notes, legal clauses, engineering specifications and internal acronyms may be under-represented. Signs of poor domain fit include retrieving passages that share vocabulary but not meaning, or missing documents that use a synonym your users do not. Options, in rising order of effort, are: better chunking and metadata, hybrid search, a re-ranking model over the top results, and fine-tuning an open model on your own query-passage pairs.
Dimensions and storage
Vector size drives index memory, storage and query latency. OpenAI’s documentation explains that the third-generation models accept a dimensions parameter that shortens embeddings while keeping their useful properties, and that text-embedding-3-large shortened to 256 dimensions still outperforms ada-002 at 1,536 dimensions on MTEB. Shortened vectors matter when you have tens of millions of chunks or a vector store with a dimension limit.
A simple cost model
Embedding cost has three parts: the one-off cost of embedding the corpus, the ongoing cost of embedding new and changed documents plus every query, and the cost of storing and searching the vectors. For example, an illustrative corpus of 50 million tokens embedded with text-embedding-3-small at the January 2024 list price of $0.00002 per 1,000 tokens costs about $1 to embed once, and about $6.50 with text-embedding-3-large. At that scale, the model fee is rarely the deciding cost. Vector storage, re-embedding during migrations, and the engineering time spent on evaluation usually matter more.
| Cost driver | Hosted API | Self-hosted | How to reduce it |
|---|---|---|---|
| Initial embedding | Per-token fee | GPU or CPU hours | Deduplicate and skip boilerplate before embedding |
| Queries and updates | Per-token fee | Always-on serving capacity | Embed only changed chunks; cache frequent queries |
| Vector storage and search | Same for both, scales with dimensions | Same | Shorter vectors, quantisation where supported |
| Model migration | Full re-embed | Full re-embed | Keep source text and chunk IDs; version the index |
How do you compare models on your own data?
A one-week bake-off on real documents is usually enough to make a defensible choice. The steps below are what we follow.
- Collect questions. Gather 100 to 300 real or realistic questions from the people who will use the system, covering each language, document type and difficult case (acronyms, numbers, cross-lingual).
- Label the answers. For each question, record which document chunks contain the answer. Subject-matter experts should do this, not the engineering team alone.
- Fix everything else. Use the same chunking, the same metadata and the same search engine for every candidate model, so you are comparing embeddings and nothing else.
- Score retrieval, not answers. Measure recall at 5 and 10 (was a correct chunk in the top results?) and mean reciprocal rank. Answer quality comes later, once retrieval is solid.
- Break results down. Report by language, document type and question type. A model that wins overall but loses badly on Vietnamese documents may be the wrong choice for you.
- Add cost and latency. Record embedding time for the corpus, query latency and projected monthly cost for each candidate.
- Retest with hybrid search and re-ranking. The gap between models often narrows once a keyword component and a re-ranker are added, which may let you choose the cheaper or self-hostable option.
Keep this test set. It becomes the regression suite for every future model change. Our article on building a test set for enterprise knowledge search covers the wider evaluation process.
How do you decide and implement without locking yourself in?
A decision rule of thumb
- Prototype or small corpus, English-heavy, no residency constraints: start with a hosted model; the cost is negligible and you learn quickly.
- Multilingual or cross-lingual users: shortlist models with strong multilingual retrieval results and test each language separately.
- Strict data residency or air-gapped environments: choose an open-weight model you can run in your own cloud account.
- Specialist vocabulary with poor results after hybrid search and re-ranking: consider fine-tuning an open model on labelled pairs.
For example, an illustrative regional insurer with English and Vietnamese policy documents and a residency requirement might shortlist two open multilingual models and one hosted model for comparison, then choose the open model if its Vietnamese recall is within a few points of the hosted one.
Design for change
- Store source text, chunk boundaries and metadata separately from vectors, so you can re-embed without re-parsing.
- Record the model name, version and dimensions alongside every vector or index.
- Build the index under a version name and switch queries with an alias, so a new model can be backfilled and tested side by side.
- Abstract the embedding call behind your own interface, so changing provider is a configuration change plus a re-index, not a rewrite.
Risks to watch
- Silent model updates. If a provider changes a model behind the same name, query and document vectors can drift apart. Pin versions where the provider allows it.
- Truncation. Chunks longer than the model’s input limit are cut, and the lost text is unsearchable.
- Mismatched query and document handling. Some models expect different prefixes or instructions for queries and passages; skipping them reduces quality.
- Over-reliance on dense search. Exact identifiers and rare names still need keyword search.
Selection checklist
- Languages and cross-lingual needs documented, with sample documents for each.
- Hosting and data residency constraints agreed with security and legal.
- Shortlist of two to four models from public benchmarks, including at least one open-weight option.
- Labelled test set of 100 to 300 questions from real users.
- Recall at k, latency and monthly cost recorded per model and per language.
- Index versioning, model metadata and an embedding abstraction in place before full ingestion.
PoliteTech’s Enterprise Knowledge Search work covers ingestion, hybrid retrieval with re-ranking, and quality evaluation, and can run indexes and open models inside your own AWS, Azure or Google Cloud account. We usually begin with a document audit and a set of test questions, which is the same evidence this selection process needs.
Frequently asked questions
Should we just pick the top model on the MTEB leaderboard?
Use the leaderboard to build a shortlist, then test on your own documents. MTEB averages many tasks, and its authors found no single method best across all of them. Retrieval performance on your languages and document types is what matters.
Is a bigger embedding model always better?
Not necessarily. Larger models and vectors often score higher but cost more to run and store. After adding keyword search and a re-ranker, a smaller model may perform within a few points of a larger one on your data.
How hard is it to switch embedding models later?
You must re-embed every chunk and rebuild the index, because vectors from different models are not comparable. If you keep source text and chunk IDs, version your indexes and wrap the embedding call in your own interface, switching becomes a planned re-index rather than a rebuild.
Do we need to fine-tune an embedding model?
Usually not at first. Better chunking, metadata, hybrid search and re-ranking solve most problems. Fine-tuning an open model is worth considering when specialist vocabulary still causes misses after those steps and you have labelled query-passage pairs.
Can embeddings run inside our own cloud for compliance reasons?
Yes. Open-weight models such as Multilingual E5 and M3-Embedding can be served in your own cloud account, so document text never leaves your environment. Plan for serving capacity, batching and monitoring.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Muennighoff et al.: MTEB: Massive Text Embedding Benchmark (arXiv, 2022-2023) — accessed 9 November 2026. Benchmark scope (8 tasks, 58 datasets, 112 languages) and the finding that no embedding method dominates across all tasks.
- OpenAI: New embedding models and API updates (25 January 2024) — accessed 9 November 2026. MIRACL and MTEB scores, per-token prices for text-embedding-3-small and -large, and shortened embeddings.
- OpenAI: Embeddings guide (API documentation) — accessed 9 November 2026. The dimensions parameter, 8,192-token input limit, and the 256-dimension comparison against ada-002.
- Wang et al.: Multilingual E5 Text Embeddings: A Technical Report (arXiv, February 2024) — accessed 9 November 2026. Open multilingual embedding models in three sizes and their training approach.
- Chen et al.: M3-Embedding (BGE-M3) (arXiv, February 2024) — accessed 9 November 2026. Retrieval in over 100 languages, inputs up to 8,192 tokens, and dense, sparse and multi-vector retrieval from one model.
Related reading
Continue your research
Which embedding model will find the right passages in your documents?
We can run a short, evidence-based comparison on your own documents and languages before you commit to full ingestion.
