Macha
AI Support & Agents

Embeddings

Definition

Embeddings are numeric vector representations of text (or images, code, etc.) that capture meaning, so that pieces of content with similar meaning sit close together in a high-dimensional space.

Also known as: vector embeddingstext embeddingsvector representations

How it works

An embedding model converts a chunk of text into a list of numbers — a vector, often hundreds or thousands of dimensions long. The model is trained so that semantically similar text ("reset my password" and "I forgot my login") produces vectors that are near each other, while unrelated text lands far apart.

You measure closeness with a similarity metric like cosine similarity. That's what makes embeddings the backbone of semantic search, RAG, and clustering: instead of matching keywords, you compare meaning.

Why it matters for support

Embeddings are how an AI support agent finds the right help-center article even when the customer's wording doesn't match your docs. When you connect knowledge sources, they're typically embedded and stored in a vector database so the agent can retrieve the most relevant passages to ground its answer.

Frequently asked

What is the difference between embeddings and tokens?

Tokens are the small text units a model reads. An embedding is the numeric vector that represents a token, phrase, or document's meaning. Tokenization comes first; embedding turns those tokens into meaning-carrying vectors.

Why are embeddings used in support AI?

They let an agent match a customer's question to relevant knowledge by meaning rather than exact keywords, which powers semantic search and retrieval-augmented generation.

Put these ideas to work

Macha is an AI agent layer that sits on top of the help desk you already run — Zendesk, Freshdesk, Front, Intercom, or Gorgias.

Start Trial