Skip to main content

Glossary R

Glossary · E-commerce

RAG

Area
E-commerce

Retrieval-augmented generation (RAG) is a method that lets a generative AI model draw on documents held in a knowledge base and use them to enrich its output.

A 2020 research paper by Lewis and colleagues describes RAG. At the time, large language models were limited in how precisely they could retrieve and use knowledge. The authors combined two kinds of memory: a pre-trained model holding what it had learned, and a searchable index of Wikipedia for the model to look things up in.

Germany's Federal Office for Information Security (BSI) describes the method in a German-language study on generative AI models: a search finds relevant information in a knowledge base and passes it to the model as a prompt, together with the user's input. Generative AI models are frequently given a knowledge base this way to avoid hallucinations and improve output quality. There is a risk, too: attackers can poison a knowledge base with manipulated content, so that certain inputs lead the model to answers they chose in advance.

In e-commerce, we use RAG for AI product copy and SEO content. The copy is built from the shop's real product data, category attributes and supplier specifications, not from generic prompts. A project starts with an audit of the product data. We then build a data model and the RAG knowledge base. The generated copy goes through an editorial workflow with sign-off before it reaches the target system.

Where the term appears

Sources

  1. Generative KI-Modelle: Chancen und Risiken für Industrie und Behörden, Version 2.0 vom 17.01.2025 (opens in a new tab)

    Bundesamt für Sicherheit in der Informationstechnik (BSI) accessed

Let's talk about your project.

If this term is on your desk right now, a conversation usually helps faster than any definition.

Search the website

Popular topics

All results