Skip to content

Word Embedding

A numerical vector encoding the meaning of a single word. Words that are similar in meaning receive similar vectors.

Classic Example

In the space of word embeddings, famous analogies work:

king - man + woman ≈ queen

The model "understands" the relationships between words as directions in vector space.

History

  • Word2Vec (2013) — the first popular word embeddings;
  • GloVe — global vectors based on co-occurrence statistics;
  • Contextual embeddings — modern models (BERT, E5), where the vector of a word depends on the context.

From Word to Document

Modern RAG usually works not with individual words, but with entire phrases and paragraphs through embedding models. But the principle is the same: meaning = vector.

See Also

← All terms