Embedding model
An embedding model is an AI model that turns text, images or other data into lists of numbers, called embeddings, arranged so that items with related meaning end up close together.
An embedding model does not write answers. It reads an input, such as a sentence, a document or a product photo, and returns a fixed-length list of numbers. OpenAI's text-embedding-3-small, for example, returns 1,536 numbers per input by default, and text-embedding-3-large returns 3,072. No single number means much on its own. What matters is that inputs with related meaning get vectors that sit close together.
That makes embedding models the engine of semantic search. An organisation embeds all of its documents once and stores the vectors, often in a vector database. When someone asks a question, the question is embedded too, and the system returns the documents whose vectors are most similar, commonly measured by cosine similarity. This is the retrieval step in retrieval-augmented generation. OpenAI's documentation also lists clustering, recommendations, anomaly detection and classification as common uses.
Why have a separate model for this at all? The 2019 Sentence-BERT paper by Nils Reimers and Iryna Gurevych makes the case with numbers. Using the original BERT model to find the most similar pair among 10,000 sentences meant about 50 million inference computations, roughly 65 hours. Their model, which embeds each sentence once and then compares vectors, did the same job in about 5 seconds. Embedding first and comparing afterwards is what makes search over millions of documents practical.
Choosing one is less simple than picking the top of a chart. The Massive Text Embedding Benchmark, published in October 2022, covered 8 kinds of task across 58 datasets and 112 languages, and its authors found that no single embedding method dominated across all of them. A model that is excellent at retrieval may be weaker at clustering. Vectors from different embedding models are also not interchangeable, so switching models means embedding the whole collection again.
Size is a cost question. Longer vectors take more storage and more computation to compare. OpenAI's newer models let developers shorten their embeddings, and its documentation says text-embedding-3-large cut to 256 dimensions can still beat the older text-embedding-ada-002 at its full 1,536 dimensions on that benchmark.
Mainly for finding related things: searching documents by meaning rather than exact words, recommending similar products, grouping similar items and spotting outliers. Embedding models also supply the retrieval step in retrieval-augmented generation, where a chatbot looks up relevant passages before it answers. A large language model generates text one token at a time. An embedding model reads its input once and returns a single fixed-length vector that represents its meaning. Embedding models are usually much cheaper to run, and many systems use both: the embedding model finds relevant material and the language model writes the answer. Start with public benchmarks such as MTEB, but look at scores for the task and language you need, since no model leads everywhere. Then test a few candidates on a sample of your own data. Consider vector length too, because it drives storage and search costs. Yes, but every stored item has to be embedded again with the new model. Each model places items in its own space, so vectors from two different models cannot be meaningfully compared with each other.Common questions
What is an embedding model used for?
What is the difference between an embedding model and a large language model?
How do I choose an embedding model?
Can I switch embedding models later?
Search for "text embedding model", "sentence embeddings" or "MTEB leaderboard" to compare models and see how they are used. Reliable sources include providers' own embedding documentation, the original research papers on arXiv and the benchmark's published results. Treat leaderboard positions as a starting point only, since a model's rank on public datasets may not reflect how it handles your own documents.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.