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 is RAG – and why your AI assistant makes things up without it

RAG is an approach in which a language model answers from your knowledge base instead of making things up. How RAG works and why businesses need it – explained with a real-world example.
Nikolay S.
CTO at onema
What is RAG – and why your AI assistant makes things up without it – illustration for the onema article
RAG (Retrieval-Augmented Generation) is an approach in which a language model answers not “off the top of its head” but on the basis of documents found in your knowledge base. Before generating a response, the system finds relevant fragments – from your catalogue, documentation or CRM – and passes them to the model as a source. This makes answers accurate, verifiable and grounded in your data.

That's the formal definition. Now in plain language.

Why “feed” the model anything at all


Language models have two inherent flaws that undermine their usefulness for business.

First: the model doesn't know your data. GPT has read half the internet but has no idea which products you have in stock, what your supply contract says or how much you charge for your hair serum. Second: when the model doesn't know something, it doesn't stay silent – it confidently makes things up. This is called hallucination (we cover it in a separate article), and in a product it isn't a cute bug but real damage: an assistant that recommends a non-existent product to a customer is worse than no assistant at all.

RAG cures both ailments in one go: before the model opens its mouth, the system finds the right fragments in your base and says, “answer based on this”. The model stops making things up because it no longer needs to – the facts are right in front of it.

How it works: query → knowledge base search → retrieved fragments + query → LLM → data-grounded answer.

What it looks like in a real product


In Sigma.AI – an assistant for a grocery marketplace that we developed – the “knowledge base” was the catalogue: 1,155 recipes and 238 normalised ingredients, each linked to a specific stock item. When a shopper types “what can I cook with chicken and mushrooms”, the system doesn't ask the model to “come up with a recipe” – it first finds suitable recipes in the base, checks which ingredients are in stock, and only then assembles the answer.

The shopper experiences the result of this architecture as magic: every suggestion can be added to the basket with a single tap, because behind it is a real product with a real price. The product owner sees it as economics: the assistant sells from stock rather than talking in abstractions.

The most underrated stage here isn't neural networks but data preparation. The word “normalised” above stands for weeks of work: in a raw catalogue, “chicken fillet”, “chick fillet” and “chilled chicken breast” are three different products, but for search they need to become a single ingredient. RAG is exactly as good as the base beneath it. We start projects with a data audit – and sometimes honestly tell the client that before building an assistant, they need to get their catalogue in order.

What RAG gives a business – in brief


In our experience, RAG is the fastest route to an AI product you can trust: answers are grounded in your data and verifiable; knowledge is updated without retraining the model – add a product to the catalogue and the assistant knows about it immediately; confidential data doesn't need to be “baked into” the model – it stays in your base; and it's considerably cheaper than fine-tuning, which people often ask about first but which very few actually need.

Where to start


Not by choosing a vector database or comparing models. Start with two questions: what questions should the assistant answer, and where does the data for those answers currently live? If the data exists, the first working RAG scenario can be launched in a few weeks and then expanded iteratively, as was the case with Sigma.AI. If there is no data or it's in chaos, that's fine too: preparing the base is simply the first stage of the project – and now you know that in advance.

A real-world example

Sigma.AI — an assistant for the Sigma.Market grocery marketplace: builds a basket from items that are in stock.
Will RAG help your product?
Describe your task in the estimate form – we'll look at your data and tell you honestly what can realistically be launched and for how much. How we build such pipelines is shown in the Sigma.AI case study and on 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