Embedding

An embedding is a text represented as a list of numbers that encodes its meaning. Two texts that say the same thing with different words produce similar lists, and that numeric closeness is what makes it possible to search by meaning rather than by exact match.

What is embedding?

An embedding is a text represented as a list of numbers that encodes its meaning. Two texts that say the same thing with different words produce similar lists, and that numeric closeness is what makes it possible to search by meaning rather than by exact match.

Also: vector · vector representation

Why it matters

What changes in a SaaS

It is the piece that lets a search find the right article even when the customer uses different words. Without embeddings, a help center only finds what is written with the same words as the title — which is almost never.

Primer plano de una placa de circuito

Embedding in detail

  • The intuition

    Picture each text as a point in a space. Texts with similar meanings land near each other. Searching means turning the question into a point and looking at what documents surround it. The real dimensions number in the hundreds, but the idea holds.

  • How closeness is measured

    With cosine similarity, which compares the direction of the vectors rather than their length. It is the usual measure because what matters is similarity of meaning, not how long the text is.

  • Passage size matters

    Long passages dilute meaning and retrieve vaguely related things; short ones lose context and retrieve stray sentences. Tuning that size usually improves answers more than switching models.

  • They are recomputed when content changes

    Update an article and its embedding has to be rebuilt, or search keeps finding the old version. It is the usual reason a system keeps answering with information that was already corrected.

Questions about embedding

What are embeddings used for in support?

To find the article that answers a question even when it is written with different words. They are the basis of meaning-based search in any modern help center.

Do embeddings need recomputing when documentation changes?

Yes. Otherwise search keeps finding the previous version of the text, and the system answers with information that was already fixed.

Related terms

A term on its own is only half understood. These come up in the same conversation.

Try it without dropping what you use