DEV Community

Cover image for What is RAG?
Tarun Kumar
Tarun Kumar

Posted on • Edited on

What is RAG?

So you’ve undoubtedly heard the term “RAG” thrown around in AI chats and are wondering what it means. Don’t worry, it’s not as complicated as it seems, and I’ll explain it in plain English.

The Basics
RAG stands for Retrieval-Augmented Generation. I know that sounds super technical. But here’s the thing: it’s actually a pretty clever solution to a problem that AI models have been dealing with for a while now.

Think about it this way. You know how sometimes you’re chatting with an AI, and it just makes stuff up? Like, it sounds confident, but it’s completely wrong? That’s called hallucination, and it happens because these models are basically working from memory. They were trained on a bunch of data up until a certain point, and after that, they’re flying blind.

Top comments (0)