Part of the AI visibility glossary
What is Embedding?
An embedding is a list of numbers, called a vector, that a model produces to represent a piece of text, an image or another item. Items with similar meanings get vectors that sit close together, so software can compare meanings by measuring the distance between vectors instead of matching exact words.
Also called: Vector embedding, Text embedding, Embeddings
How embeddings work
OpenAI’s documentation defines an embedding as a vector of floating point numbers, where the distance between two vectors measures how related they are: small distances suggest high relatedness and large distances low relatedness. It lists common uses, including search, clustering, recommendations and classification.
Google’s Machine Learning Crash Course explains why this beats a simpler code that gives every item its own slot. Such codes treat every item as unrelated, while embeddings capture semantic relationships, such as hot dogs being more similar to shawarmas than to salads.
Not every AI company makes its own embedding model. Anthropic’s documentation says it does not offer one and points developers to Voyage AI instead.
Why it matters for your pages
Search built on embeddings turns the question and the stored passages into vectors, then ranks the passages by how close they sit to the question. A passage can therefore be found because it means the same thing as the question, even when it shares few of its words.
Two habits follow from that. Write passages that each make one point clearly, so the meaning of the passage, and with it the vector, is about one thing. And describe what your product does in the words your buyers use, not only in your own terms.
How to check it yourself
- List five questions buyers ask before they choose a product like yours, written in their own words.
- For each question, find the passage on your site that answers it, and note whether it does so in a few sentences or is spread across a long page.
- Read each passage on its own, out of context. If it only makes sense together with the rest of the page, rewrite it so it stands alone.
- Ask the same questions in an AI assistant that shows sources, and check whether the passages it cites answer them more directly than yours.
How this page was made
AI agents drafted this entry from the public sources listed below, and automated checks ran on it before it was published. Read our editorial policy.
Questions
Is an embedding the same as a keyword?
No. A keyword is a word to match exactly. An embedding is a set of numbers that stands for meaning, so two texts that use different words to say the same thing can have embeddings that sit close together.
Can I see the embedding of my page?
Not the one a given AI product uses internally. Developers can create embeddings of their own text through an embeddings API and compare passages, which gives a rough idea of how related two texts are, though a different model would produce different numbers.
Do embeddings only work for text?
No. Embedding models can also represent images and other kinds of content, which lets some systems search across text and pictures together.
Sources
- Vector embeddings · OpenAI
- Vector embeddings · OpenAI
- Embeddings, Machine Learning Crash Course · Google for Developers
- Embeddings · Anthropic