# Word2vec

> Canonical: https://skillalmanac.com/glossary/word2vec | Last verified: 2026-11-24 | Index status: not offered to search engines

Word2vec is a family of neural-network methods that learn a vector (a list of numbers) for each word from large amounts of text, so words used in similar ways get similar vectors. Its architectures are CBOW and skip-gram.

Also called: word2vec model, word 2 vec, word2vec embeddings.

## In plain language

Word2vec turns each word into a short list of numbers by reading a large pile of text and noticing which words appear near which. Words used in similar ways end up with similar numbers, so a program can tell that two words are related without being told. It works like a seating chart built from who sits next to whom at many dinners. Its limits are real: each word gets one fixed list, so a word with several meanings is blended into one, and it knows nothing beyond the text it was trained on. Newer language models handle context better.

## Technical definition

Word2vec is described in the 2013 paper by Mikolov, Chen, Corrado and Dean, which proposes two model architectures for learning continuous vector representations of words from very large datasets. According to IBM, CBOW (continuous bag of words) predicts a target word from the words around it, while skip-gram takes a target word and predicts its context words. The result is one vector per vocabulary word; IBM notes that polysemy is not handled effectively, and that words are treated as atomic units without subword information.

## How it shows up when you use agents

You do not usually call word2vec yourself when you run Claude Code, Codex or Cursor. It matters as the idea behind them: text is turned into [embeddings](/glossary/embedding) so that similar meaning means nearby numbers. The paper on arXiv was submitted in January 2013 and covers vectors for single words. Current retrieval tools often use other embedding models, though the underlying idea of meaning as position is similar.

Where it appears: older [natural language processing](/glossary/natural-language-processing) code, tutorials and libraries that load pretrained word vectors, and explanations of how [semantic search](/glossary/semantic-search) works. When an agent suggests word2vec for a new project, check what you need. A word2vec vector is static, so the word "bank" gets one vector whether it means a river edge or a lender. If your task depends on context, a model that produces context-sensitive vectors is the safer fit, and a [word embedding](/glossary/word-embedding) from word2vec is a baseline, not a final answer.

What breaks when it is misunderstood: people expect word2vec to understand sentences, or to compare documents, which it does not do directly; documents need extra handling. Next step: read the [What is RAG](/learn/what-is-rag) guide to see where embeddings sit in a retrieval pipeline.

## Common confusions

- **Word2vec versus a large language model.** Word2vec learns one vector per word and does not generate text. A [large language model](/glossary/large-language-model) predicts text and uses the surrounding words to interpret each word.
- **CBOW versus skip-gram.** According to IBM, CBOW predicts a word from its neighbours, and skip-gram predicts neighbours from a word.
- **Word2vec versus word embedding.** A word embedding is the general idea. Word2vec is one named method for learning them.
- **Myth.** Word2vec understands meaning. It captures patterns of which words appear together in its training text.

## Worked examples in this catalogue

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide walks through indexing and querying, then a worked chunking example in which a sentence stored alone loses the company and quarter it belongs to.

Why it exercises the concept: Retrieval systems search by embeddings, the same idea of meaning as numbers that word2vec made familiar for single words. The guide shows where such vectors are used.

### [rag-chunking-planner](https://skillalmanac.com/skills/skill-almanac/rag-chunking-planner)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Your documents split by three chunking strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.

Why it exercises the concept: Adjacent, not a word2vec tool: it measures how documents are split before they are turned into vectors for search, a step that sits downstream of any embedding method.

### [keyword-density-count](https://skillalmanac.com/skills/skill-almanac/keyword-density-count)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Counts of how often each keyword or phrase appears in plain page text, whole-word and case-insensitive, with density figures.

Why it exercises the concept: A contrast case. It counts exact words, so two words with the same meaning are separate rows. Word2vec vectors place such words near each other instead.

## Related terms

- [Embedding](https://skillalmanac.com/glossary/embedding.md)
- [Word embedding](https://skillalmanac.com/glossary/word-embedding.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Natural language processing (NLP)](https://skillalmanac.com/glossary/natural-language-processing.md)
- [Semantic search](https://skillalmanac.com/glossary/semantic-search.md)

## Sources

- [Efficient Estimation of Word Representations in Vector Space](https://arxiv.org/abs/1301.3781), arXiv (Mikolov et al.) (accessed 2026-11-24)
- [What are word embeddings?](https://www.ibm.com/think/topics/word-embeddings), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
