- Start with raw input (single words like
apple,dog,cat, or longer text such as sentences or documents). - An embedding model translates text into numeric form so a machine can process and compare it.
- Popular embedding model families include Word2Vec, sentence-transformers like SBERT, and embedding variants derived from the GPT family.
- The output is a fixed-length vector (for example, 768 or 1536 floating-point values). One vector per input item.

- Machines operate on numbers. Representing text as vectors enables mathematical comparison and indexing.
- Embedding models are trained so semantically similar items (for example,
dogandcat) produce similar vectors; dissimilar items (for example,applevsdog) produce vectors that are farther apart. - Once numerical, items can be efficiently searched, clustered, or used in downstream models.
Key idea: Embeddings map semantic meaning into geometry — similar meanings are close in vector space, enabling machines to compare and retrieve by similarity.

dog and cat are numerically close, while apple is distant. Real embeddings are much longer and capture nuanced relationships across many dimensions—for example synonyms, analogies, and topical similarity (e.g., “running shoes” ≈ “jogging sneakers”).
Embedding model overview
| Model Family | Typical Dimensionality | Use Case |
|---|---|---|
| Word2Vec | 100–300 | Lightweight word-level semantics, fast training |
| Sentence Transformers (SBERT) | 384–768 | Sentence and paragraph embeddings for semantic search |
| GPT-style embeddings | 768–1536+ | Rich contextual embeddings suited to retrieval for LLMs |

- Embeddings are numeric, fixed-length vectors learned from text (or other modalities) that encode semantic information.
- Similar meanings are nearby in vector space, which enables semantic search and similarity-based retrieval.
- Embedding models and vector databases together power modern retrieval systems and many GenAI applications.