AI GLOSSARY · AI CONCEPTS
Embedding
Definition
In machine learning, an embedding is a numerical representation of an item, often a vector. In semantic retrieval, embeddings support similarity comparisons; nearby representations do not guarantee that two items answer the same question or are true.
Also called: embeddings, vector embedding.
In plain language
An embedding turns a piece of text into a long list of numbers so a computer can measure how alike two texts are. Think of a map where every sentence is a pin: sentences about the same thing land near each other, even when they share no words. A search over your notes can then find a note about 'cancelling a subscription' when you type 'stop my plan'. The numbers come from a model, so they are only as good as that model. An embedding model trained mostly on one kind of text may place texts from another field badly, and two texts can look close without answering the same question. Embedding a large set of documents takes computing time, and the resulting vectors must be stored somewhere.
Technical definition
A text-embedding service can map inputs to vectors for comparison. Relatedness depends on the representation and metric; cosine similarity is one common measure. Query and stored representations need a compatible space, which does not mean every system must use a single identical encoder. An embedding is the representation, not the model producing it or the database storing it. RAG retrieval can use lexical search, vector search or a combination; embeddings are not mandatory for every RAG pipeline.
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.
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
- It uses embeddings at both ends of the pipeline, so you can see that a question and a document are compared as vectors made by the same model.
Skill by Skill Almanac · Illustrative, not executed
rag-chunking-planner 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- 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
- In a RAG index each chunk becomes one embedding, so chunk boundaries decide what a vector represents. The skill measures that choice before you embed everything.
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
- Exact and near-duplicate paragraphs found across a folder of text and Markdown files, each group reported with its file and location.
- Why it exercises the concept
- Finding passages that are alike is a task embeddings are also used for. Use it as a plain baseline and compare the groups it reports with what a vector search would return.
How it shows up when you use agents
In a vector-based document-retrieval pipeline, an embedding model produces representations, an index compares them, and the application can supply matching passages to a language model. This is one way to support retrieval-augmented generation; lexical retrieval is another option.
For example, a query about stopping a plan might retrieve a passage about cancellation despite different wording. This is an illustration of the goal, not a measured retrieval result. Inspect the returned passages: an item can be nearby in the representation space yet fail to answer the question.
Record the embedding configuration used for an index. When changing encoders, check compatibility rather than mixing arbitrary vector spaces. Test exact identifiers as well as paraphrased questions; hybrid retrieval can combine lexical and vector signals.
Common confusions
- Embedding versus embedding model. The first is a representation; the second produces it.
- Embedding versus vector database. A vector database stores and searches representations; storage is separate from generation of an answer.
- Similarity versus truth. Vector proximity measures a relationship under the chosen model and metric. It does not establish that a claim is true.
- Retrieval vectors versus model internals. In the document-retrieval example above, vectors rank candidate passages. Neural models also use embeddings internally; that related use is not the same as a separate retrieval index.
Related terms
Show all 48 related terms
Terms that mention Embedding
58 terms mention this one
- Agent card (A2A)
- AI watermarking
- Azure OpenAI Service
- Bag of words (BoW)
- Batch API
- BERTScore
- BM25
- Chroma (vector database)
- Chunking
- Claude Agent SDK
- CLIP (model)
- Clustering (machine learning)
- Cohere
- Contrastive learning
- Cosine similarity
- Cross-encoder
- Data poisoning
- Diffusion transformer (DiT)
- Dimensionality reduction
- FAISS
- Feature engineering
- Feature extraction
- Feature store
- Few-shot learning (FSL)
- GPT4All
- Hierarchical Navigable Small World (HNSW)
- Hybrid search
- k-means clustering
- k-nearest neighbors (k-NN)
- Knowledge graph
- LangChain
- Latent space
- LlamaIndex
- LLM security
- LocalAI
- Matryoshka embeddings
- Mem0
- Milvus
- Negative prompt
- OWASP Top 10 for LLM Applications
- pgvector
- Pinecone (vector database)
- Positional encoding
- Qdrant
- Recommender system
- Reranking
- Retrieval-augmented generation (RAG)
- Semantic caching
- Sentence Transformers
- TF-IDF
- Topic modeling
- Triton Inference Server
- Vector database
- Vector search
- Weaviate
- Word embedding
- Word2vec
- Zero-shot learning
Guides that mention Embedding
More in AI concepts
Sources
- Vector embeddings, OpenAI (API Docs) (accessed 2026-11-23)
- What is Vector Embedding?, IBM (accessed 2026-11-23)
- Embeddings, Google (Machine Learning Crash Course) (accessed 2026-11-23)
- RAG and generative AI: retrieval and index choices, Microsoft Learn (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources. An independent review of the sources and examples is in progress. Wikipedia is never the only source.
Review record
Independent review in progress
Drafted by Claude (original draft) and Codex (automated revisions). An independent review of its sources and examples is in progress.
This entry is still in review, so it is not listed in search engines yet.
Change log (3)
- : First version.
- : Verifier pass: reworded cosine similarity and same-model claims to match OpenAI.
- : Scoped entity, retrieval and tool-use explanations; complete exact-version review remains pending.