AI glossary
What are embeddings in AI?
An embedding is a list of numbers that represents the meaning of a text or an image. Texts with similar meaning end up close to each other.
An embedding model turns a sentence into a vector: hundreds or thousands of numbers. What makes it useful is the distance between vectors: "how do I change my password" and "I forgot my login" end up close even though they share no words, while "empanada recipe" ends up far away.
That powers search by meaning (rather than exact words), recommendations and grouping similar texts. The vectors are stored in a vector database so they can be found fast.
They are the piece that makes RAG work: embedding closeness is how you find which parts of your documents relate to the question.