onema
AI solutions
MVP
Web development
Mobile apps
UX/UI design
Branding
Find out your project cost
office@onema.ru
Questions and suggestions
Get a cost estimate
  • »
  • »

What are embeddings? Explained without the maths

Embeddings record the meaning of text as numbers — they power semantic search in AI assistants. We explain them without the maths, using a real-world example.
Konstantin K.
Tech Lead at onema
What are embeddings? Explained without the maths — illustration for an onema article
An embedding (also called a vector representation) is a way of recording the meaning of a text as a set of numbers: phrases with similar meanings get similar sets, even if they share no words. Embeddings power semantic search in AI assistants: the system finds "something light for dinner" among the salads, even though the word "salad" wasn't in the query.

In plain terms


Imagine a huge map where every text is a point. Texts about delivery sit in one district, texts about payment in another, chicken recipes in a third. An embedding is a text's coordinates on that map. Only there aren't two coordinates but hundreds: for example, OpenAI's text-embedding-3-small describes a text with 1,536 numbers by default. When a user asks a question, the system calculates its coordinates and looks at which documents lie nearby — that's how it finds meaning rather than matching words.

Keyword search looks for matches. With stemming and a synonym list it will find "dinner" from "dinners", but it won't link "a light dinner" to "a low-calorie salad" until someone adds that synonym by hand. Semantic search finds such pairs on its own — on the map, these phrases are neighbours. In practice the two are combined: keyword search is precise for SKUs and product names, embeddings for free-form phrasing.

Why it matters for business


Embeddings are the workhorse of RAG: before the model answers, the system uses embeddings to find fragments in your knowledge base that are close to the question in meaning. Storing and searching these vectors is the job of a vector database. To the user, all of this feels like an assistant that "gets it" straight away.

Where to start


Embeddings aren't chosen in a vacuum — they're part of a pipeline: what data, what search, what model. For a multilingual product, check how well the embedding model handles each of your languages: OpenAI, Cohere, Google and open multilingual models (such as bge-m3 or e5) behave differently, and they're worth comparing on your real queries. It all starts with a data audit (page AI development).

A real-world example

In Sigma.AI, an assistant for the Sigma.Market grocery marketplace with a database of 1,155 recipes — generation runs on an in-house local model with our own embedding. Requests are processed on in-house infrastructure, in parallel and without paying for each call to an external API. External models (Gemini, OpenAI) are connected there only for specific scenarios. An embedding isn't necessarily "an OpenAI service": the embedding model can live on your side. More in the Sigma.AI case study.
Want search that understands meaning, not just letters?
Describe your task in the estimate form — we'll look at your data and propose a pipeline. To see how it works in production, read the Sigma.AI case study and our AI development page.

FAQs

Cost calculation
Tell us where your product has hit a wall, in the estimate form
After the audit, we'll tell you what to migrate, what to keep and how much it costs
More articles