Skip to content

Embedding

Adrià Castany 2 min

What is an 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 called

vector, vector representation

Topic
AI in support
On this page
  1. Searching by meaning is not searching by words
  2. Why it matters
  3. What they are used for in customer service
  4. The intuition
  5. How closeness is measured
  6. Passage size matters
  7. They are recomputed when content changes
  8. How Intake handles it
  9. Frequently asked questions

Searching by meaning is not searching by words

A keyword search finds the texts that contain the same terms.

A search with embeddings finds the ones that mean the same, even when they share no words. Many search engines combine the two, because proper names and error codes are found better by exact match.

Why it matters

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.

What they are used for in customer service

Wherever it helps to know whether two texts are about the same thing.

  • Searching the help center by meaning.
  • Retrieving the passages an AI agent writes its answer from.
  • Grouping conversations on the same topic even when they are worded differently.
  • Spotting the questions that repeat and the article that is missing.
  • Finding conversations similar to the one being handled.

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.

How Intake handles it

Frequently asked questions

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.

Are an embedding and a vector the same thing?

In practice, yes. The embedding is the vector that represents the meaning of a text. A vector database is where they are stored and searched.

Glossary

Keep reading

Glossary

Related terms

See the full glossary

Add it without dropping what you use

15 minutes, no commitment