Core concepts · AI agents

What are embeddings?

3 min read

In one sentence

An embedding is a list of numbers that represents the meaning of a text, so that texts with similar meaning have similar numbers. It allows searching by meaning and not just by exact words.

01

Why it matters in a business

Embeddings matter because they let you search by meaning, not just exact words. They underpin smart search and RAG: they turn texts into numbers that represent their sense, so "return a product" and "refund" sit close together.

02

How it works

If you search "return a broken product" and your document says "claim a defective item", a word search does not match them, but an embeddings search does.

The lists of numbers are stored in a vector database, which is optimised to quickly find those most similar to the question’s.

03

Understanding it in depth

An embedding is a way of representing the meaning of a text as a list of numbers. Two texts about the same thing, even if they use different words, end up represented by similar lists of numbers. That allows searching by meaning and not only by matching words: a query like how do I cancel my order can find a paragraph titled returns and cancellations.

Embeddings are stored in a vector database, which is built to quickly find the texts closest to a question. It is the piece that makes search in a RAG system possible: the question is turned into numbers, compared with those of the stored fragments and the most similar ones are retrieved.

They are not magic and do not always replace traditional search. They can fail with exact codes, product references or proper names, where literal matching matters. That is why many systems combine both searches, by meaning and by exact words, and check with real questions that they find what they should.

04

The pieces, one by one

  • Embedding model

    The program that turns a text into its numerical representation.

  • Vector

    The list of numbers that sums up the meaning of a fragment.

  • Vector database

    The store that keeps the vectors and finds those closest to a query.

  • Hybrid search

    A combination of search by meaning and by exact words so nothing is missed.

05

An example in a business

An internal contract search that finds the "penalty for delay" clause even if the contract calls it "compensation for lateness".

06

When yes and when no

It makes sense when…

  • You have many texts and people ask in different ways from how they are written.
  • You are building an assistant that must answer with your documents.
  • You can measure with real questions whether it finds the right thing.

Better not when…

  • A few small documents: a normal keyword search is enough.
  • What is searched are codes, exact references or structured data.
  • You have no way to check the quality of what it retrieves.

07

Common mistakes

  • Thinking they always replace keyword search.
  • Splitting documents carelessly and losing context.
  • Not regenerating them when documents change.

08

How to start

  1. Choose which texts you want to search by meaning.
  2. Split them into passages that make full sense.
  3. Generate their embeddings and store them in a suitable database.
  4. Test with real questions and, if needed, combine with keyword search.

09

Frequently asked questions

What is a vector?

A list of numbers that represents the meaning of a text.

Do I need a special database?

For many texts a vector database helps; for a few, simple options exist.

Are they visible to the user?

No: they work underneath, inside the search or the assistant.

Do embeddings store my texts?

The vector is a numerical representation, but the system usually also stores the original text so it can show and cite it. It is worth knowing where everything is hosted and under what terms.

Do I need a vector database to start?

Not always. For a few documents, a simple solution may do. A vector database makes sense when volume grows or the search must be very fast.

Do embeddings become obsolete?

Yes, if you change the model that generated them or if the document changes. Then they must be generated again so search stays consistent.

10

Quick glossary

Vector
A list of numbers representing the meaning of a text.
Similarity
A measure of how alike two vectors, and therefore two texts, are.
Semantic search
Search that takes meaning into account and not only words.

11

Go deeper

To see how it is applied in practice, read the guide AI agents for business: what they are, what they do and how to start.

Related concepts

All concepts

Let’s talk

Want to see how it applies in your business?

Tell us your case. We reply within 24 hours with a real proposal. No strings attached.