AI GLOSSARY · AI CONCEPTS

Word embedding

Markdown version · Wikidata Q18395344

Definition

A word embedding is a list of numbers, called a vector, that represents a word so that a computer can compare words by meaning. Google's crash course describes embeddings as lower-dimensional vectors that capture relationships between words.

Also called: word embeddings, word vectors, word vector representation, word embedding model.

In plain language

A word embedding gives every word a list of numbers, like coordinates on a map. A program cannot measure how close the words doctor and nurse are by looking at their letters, but it can measure the distance between their coordinates. The numbers are learned from large amounts of text, so they reflect how words were used in that text. A word embedding on its own does not understand a sentence or check whether a statement is true, and it is only as good as the text it was learned from.

Technical definition

Mikolov, Chen, Corrado and Dean (arXiv 1301.3781) propose two model architectures for learning continuous vector representations of words from very large datasets, and evaluate the resulting vectors on word-similarity tasks. Google's machine learning crash course describes embeddings in general as lower-dimensional representations of sparse data, presented as a fix for sparse representations with too many weights, per the Google crash course. In practice each word in a vocabulary maps to a fixed-length vector that a downstream model reads as input.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is RAG? Retrieval-Augmented Generation Explained

    What you see
    The guide describes indexing, where each chunk of a document is converted into an embedding and stored with its source, and querying, where the question is embedded and the closest chunks are retrieved.
    Why it exercises the concept
    Retrieval rests on the idea behind word embeddings: text turned into vectors so that closeness stands in for relatedness. The guide works with chunks rather than single words, so read it as the later, larger use of the same idea.
  2. Skill by Skill Almanac · Illustrative, not executed

    duplicate-passage-finder 41/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill's catalogue line says it finds exact and near-duplicate paragraphs across a folder of .txt and .md files and reports each group with its file and line number.
    Why it exercises the concept
    It is a contrast case. Finding passages that match is one task; finding passages that mean the same thing in different words is where embeddings come in. The catalogue line does not say which method the skill uses.
  3. Skill by Skill Almanac · Illustrative, not executed

    keyword-demand-research 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill's catalogue line says it turns a keyword export into a de-duplicated demand figure with intent labels and an honest trend reading.
    Why it exercises the concept
    Grouping near-identical search phrases is a task where vectors for words and phrases can help. The catalogue line does not mention embeddings, so this is a contrast case, not a demonstration.

How it shows up when you use agents

You may not meet a word embedding by name in Claude Code, Codex or Cursor. You meet its descendants. In embedding-based retrieval over notes or passages, text is encoded as vectors and compared. Other retrieval methods need not use embeddings, and an agent can recall earlier conversation text by loading stored context. The word-level version is the simplest way to understand the idea: every word becomes a point, and nearby points are related.

Where this matters in a session:

  • Search that ignores exact wording. A search built on embeddings can match a question about cancelling an account with a passage about closing it, which a plain text search could miss. See semantic search.
  • Retrieval before generation. Embedding-based tools can compare vectors to fetch passages for a large language model; lexical or exact-file retrieval need not do so.

What breaks when this is misunderstood: people treat closeness as agreement or truth, when it only measures how similar two pieces of text look to the model. The next action is to read the top few retrieved passages yourself, not only the score, before trusting an answer an agent built on them.

Common confusions

  • Word embedding versus embedding. A word embedding is the version for single words. The wider term covers vectors for sentences, documents, images and other data. See Embedding.
  • Word embedding versus tokenization. A tokenizer splits text into pieces. Embeddings assign vectors to things. They are separate steps.
  • Word embedding versus a language model. The Mikolov paper is about learning vectors for words and testing them on word-similarity tasks. A model such as BERT is a larger network trained on text and adapted to tasks.
  • Myth: the vector is a definition. The vector summarises how the word was used in training text. It is not a dictionary meaning.

Terms that mention Word embedding

4 terms mention this one

More in AI concepts

Next steps

  1. What Is RAG? Retrieval-Augmented Generation Explained The long-form guide.
  2. duplicate-passage-finder A skill that exercises it.
  3. BERT Related term.
  4. Embedding Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections to unsourced or overstated claims.
  • : Required source-scope correction applied; independent affected-claim recheck pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.