Skip to main content
Back to Glossary
Glossary Term

RAG (Retrieval-Augmented Generation)

Abbreviation: RAG

RAG is when a model searches an external database for relevant snippets before responding and adds them to its context, instead of relying only on what it memorized during training.

3 min read
technologydata retrievalmodel context

What Is RAG?

RAG (Retrieval-Augmented Generation) is an architecture where a model first searches an external data source — a document store, a glossary, a translation memory — for relevant snippets, then adds what it found to its own context and answers with that data in hand. It solves a fundamental limitation of any language model: it can't know what wasn't in its training data, and it doesn't remember anything that happened after training.

Why RAG Matters for Translation

Applied to translation, RAG is a way to feed a model exactly the terms, matches, and examples relevant to a specific document, instead of relying on what the model "remembers" from training. A concrete example: before translating a segment, the system searches translation memory for similar previously translated snippets and the glossary for required terms for this document, and adds everything it found to the model's prompt.

How RAG Retrieval Works

The most common approach is vector search: both the query and the stored data are turned into numeric vectors (embeddings), texts with similar meaning end up close together in that space, and the system finds the vectors nearest to the query. This is often combined with classic keyword full-text search — a hybrid approach is usually more reliable than either method alone.

RAG and Translation Memory — a Familiar Idea, New Name

For the translation industry, the core idea behind RAG isn't new: TM has done exactly this for decades — finding similar previously translated segments and offering them to a translator. The difference is where the found material goes: in a TM editor, a match is shown to a person as a suggestion, while in a RAG architecture, the retrieved text goes straight into the model's context, and the model decides on its own how to use it while generating a response.

Where RAG Helps, and Where It's Risky

RAG solves the problem of data freshness and specificity well — the model answers with up-to-date, domain-specific information in hand, not just general training knowledge. The risk is that RAG doesn't guarantee the model actually and correctly uses the retrieved context: it can ignore an inserted term or cite an irrelevant retrieved snippet if the search itself was imprecise. A RAG system's quality is determined equally by the quality of retrieval and the model's ability to apply what it found correctly.

FAQ

Is RAG the same thing as fine-tuning a model?

No. Fine-tuning permanently changes the model itself. RAG changes nothing about the model — it inserts data into one specific request, and the next request can pull from an entirely different source.

No, that's the most common method but not the only one — classic full-text search, or a combination of both, works too.

How is RAG different from plain translation memory?

The retrieval mechanics are similar, but with TM, a human translator sees and judges the match, while with RAG, the retrieved text goes directly into the model's context without a human necessarily reviewing it at that step.

Can a RAG system give a wrong answer even if it retrieved the right data?

Yes — finding a relevant snippet doesn't mean using it correctly; the model can ignore the retrieved information or misinterpret it.

Where does a RAG-like approach typically show up in a translation pipeline?

When glossary terminology and translation-memory matches are inserted into the model's prompt before it generates a translation for a specific segment.

Frequently Asked Questions

Is RAG the same thing as fine-tuning a model?

No. Fine-tuning permanently changes the model itself. RAG changes nothing about the model — it inserts data into one specific request, and the next request can pull from an entirely different source.

Does RAG always use vector search?

No, that's the most common method but not the only one — classic full-text search, or a combination of both, works too.

How is RAG different from plain translation memory?

The retrieval mechanics are similar, but with TM, a human translator sees and judges the match, while with RAG, the retrieved text goes directly into the model's context without a human necessarily reviewing it at that step.

Can a RAG system give a wrong answer even if it retrieved the right data?

Yes — finding a relevant snippet doesn't mean using it correctly; the model can ignore the retrieved information or misinterpret it.

Where does a RAG-like approach typically show up in a translation pipeline?

When glossary terminology and translation-memory matches are inserted into the model's prompt before it generates a translation for a specific segment.

KTTC Team
3 min read

We use cookies to improve your experience. Learn more in our Cookie Policy.