PromptForge
AI Glossary

Retrieval & data

Embedding

Also known as: embeddings, vector embedding

Definition

An embedding is a list of numbers representing the meaning of a piece of text, such that semantically similar texts have mathematically similar vectors. Embeddings make meaning-based search possible.

An embedding model converts text into a fixed-length vector, typically a few hundred to a few thousand dimensions. The training objective places related concepts near each other in that space, so "car" sits closer to "automobile" than to "banana" despite sharing no letters.

This is what enables semantic search. Comparing embedding vectors finds documents about the same topic even when they use entirely different vocabulary — something keyword search fundamentally cannot do.

Embeddings from different models are not comparable. If you change embedding models, you must re-embed your entire corpus.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.