Glossary · data

Embedding

A list of numbers that captures the meaning of a piece of text, so that a retrieval system can find passages with similar meaning.

An embedding is a list of numbers that a model produces from a piece of text. Texts with similar meaning get lists that are close together, so a system can search by meaning rather than by exact words. Embeddings are the basis of most semantic search in retrieval systems.

An embedding is only as good as the model that produced it and the text it was given. It also has no built-in notion of permission, date or authority. Those have to be handled around it.

In practice

I choose an embedding model by testing it on the client's own questions and documents, not on public benchmarks. The test is simple: for each question, does the right chunk come back in the top results? I record the score, and I rerun the test whenever the model or the chunking changes, because a new embedding model changes every stored vector.

Vectors are stored with their source and their access rules. A vector without its source cannot be checked or removed, and that becomes a problem the first time a document must be deleted.

Example

[Composite] A team switched embedding models to improve results, and the scores on the public benchmark rose. On the client's own questions the right chunk moved out of the top five for a third of cases. The team kept the old model, and the embedding choice went into the evaluation set so that future changes are tested the same way.

Common mistakes

  • Choosing an embedding model from a leaderboard rather than from the client's questions.
  • Re-embedding some documents but not others after a model change, which mixes two spaces that cannot be compared.
  • Storing vectors without the source reference and the access rule.

Related terms

Cite this definition

Embedding. Mayur Patil, mayurpatil.ai, updated 2026-11-02. https://mayurpatil.ai/glossary/embedding/

Enquiry

Tell me about the work

The use case, where it is blocked and who is involved. I reply with a suggested starting point. Or email hello@mayurpatil.ai.

Goes to my CRM and my inbox. No newsletter, no sharing. See Privacy (opens in a new tab).

Close