How RAG Helps Stop AI Making Things Up

An explanation of retrieval-augmented generation (RAG), how it gives AI access to external information and why it can reduce hallucinations.

AI system retrieving relevant information from a collection of digital documents before generating an answer.

If you have spent much time using AI tools, you have probably discovered that they have an awkward habit. They can give an answer that sounds completely convincing while being completely wrong.

There is another problem. An AI model does not automatically know about your private information. Ask it about your company's internal procedures, documentation for a private project or the configuration of your home network and, unless you provide that information, it has nothing reliable to work from.

One way of dealing with both problems is retrieval-augmented generation, usually shortened to RAG.

The name makes it sound considerably more complicated than the basic idea actually is.

Think of RAG as an open-book test

A useful way to understand RAG is to think about the difference between a closed-book and open-book exam.

A normal AI conversation is somewhat like a closed-book test. The model has what it learnt during training, along with whatever information you provide in the current conversation. If the information needed to answer a question is not available, the model may still attempt to produce an answer.

That is where hallucinations can occur. In AI terminology, a hallucination is an answer containing information generated by the model that is incorrect or unsupported, despite sometimes sounding perfectly plausible.

RAG turns the process into something closer to an open-book test.

Before asking the AI to answer, the RAG system searches a collection of information that it has been given access to. This might include company documentation, manuals, policies, websites, project files or other sources.

It finds the information most relevant to your question and supplies that information to the AI along with the question. The AI can then use those retrieved documents as reference material when producing its answer.

What happens when you ask a question?

At its simplest, RAG involves three steps.

  1. Retrieve. The system searches its available information and finds the passages most relevant to your question.
  2. Augment. Those passages are added to the information supplied to the AI model.
  3. Generate. The model uses your question and the retrieved information to produce its answer.
Infographic showing how RAG searches available information, retrieves relevant passages and gives them to an AI to generate an answer.

The documents are usually prepared for searching beforehand by breaking them into smaller sections, often called chunks. Rather than handing the AI an entire 200-page manual, the system might retrieve only the few paragraphs that appear relevant to the question.

Many RAG systems can also search by meaning rather than relying entirely on exact words. For example, a question about "resetting my password" could still locate instructions headed "account credential recovery" even though the wording is different.

You do not need to understand the mathematics behind that process to understand RAG. The important part is that the system tries to find useful information first and gives it to the AI before asking for an answer.

Why not just train the AI on your documents?

Training and fine-tuning are different from RAG.

Fine-tuning changes a model to make it better suited to particular tasks, behaviour or types of output. RAG leaves the underlying model alone and instead gives it access to relevant information when that information is needed.

That distinction matters when the information changes regularly.

Suppose a company changes its leave policy. With a RAG system, the organisation can update the source document and update the searchable information. Future questions can then retrieve the new policy without changing the AI model itself.

The same principle works for product manuals, technical documentation, price lists, support information and other material that changes over time.

RAG can also show where an answer came from

Another useful feature of a well-designed RAG system is that it knows which documents it retrieved.

That means an application can provide references or citations with an answer, allowing the user to check the original information rather than simply trusting whatever the AI says.

This is particularly useful when an answer is based on company policies, technical documentation or other information where getting the details right matters.

Access controls can also be applied to the retrieval system. An employee might be allowed to search general company procedures, for example, while confidential finance or personnel documents remain unavailable. This security has to be designed into the system; RAG does not automatically make private information secure.

RAG does not make AI infallible

RAG is sometimes described as a way of stopping AI hallucinations, but that overstates what it can do.

It can significantly improve the information available to the model, but the answer is only as good as the information retrieved. If the source documents are wrong, out of date or incomplete, the resulting answer can also be wrong. The search can retrieve the wrong passage, or the model can misinterpret otherwise correct information.

A better way to describe RAG is that it grounds an AI's answer in information retrieved from known sources.

Instead of expecting the model to know everything, RAG gives it somewhere to look.

That relatively simple idea is what makes it possible to turn a general-purpose AI model into something that can answer questions about your documentation, your organisation or another specialised collection of information, without having to teach all of that information to the model itself.

COMMENTS

Name

2016,1,2019,2,2020,1,ai,1,Alcoholic Eggnog,1,Amber Walker,2,ANDRA,1,Angus Henry,2,Anniversary,1,archive,1,Auki,21,Auki Henry,30,Auki Henry Google+,1,Auki Henry Photography,6,Aussie Bandit,1,Australia,1,Australia Post,1,Behind the Scenes,1,Beyond She Brings The Rain,6,Blog,54,Christmas,1,crypto,9,Darwin,8,Darwin Cyclone December 2011,1,Darwin Fashion,1,Darwin Photography,1,Darwin Slamfest,2,Darwin Wet Season,1,December,2,Desert Nationals,1,Dietary,1,Doesn't Matter Anyway,2,Doesnt Matter Anyway,1,Drag Racing,1,DT3,1,DTOWN-3,1,Ed Forman,1,Eggnog,1,FEAR,1,FEAR Monaro,1,Featured,9,Fitness and Fat Burning,1,Food Photography DIY,1,Glidecam X-10,3,Golden Noble,1,Google vs ACCC,1,Health,1,HighRPM,3,Hope,1,Hotshots 2012,1,Jeri Ryan,1,Jessica Shalders,2,Kamfari,2,Kayla Robinson,1,Kelly Ann Doll,1,Khalia-may Gepp,1,Lan Treagus,1,low carb beer,1,Lyrics,1,Maddison Ash,6,Making a Music Video,1,Mark Hamilton,1,Mick Brasher,1,Miss Kelly Ann Doll,1,monaro engine,1,Monsoon,1,Motorsports NT,1,NFT,3,Nightcliff Sunset Showers,1,Oil Painting,1,Photography,21,Photos,1,Pinup,1,Playground Workout,1,Quito Washington,1,Ranger RX AS Speed,1,Recipe,4,Reviews,1,Rockabilly,1,Sam Korn,4,Sarah Clee,1,SBS Speedweek,1,Seven of Nine,1,Sgraffito,1,She Brings The Rain,8,Skarlett,3,Skarlett Darwin,1,Skarlett Music,1,Skarlett Music Video,1,Skarlett Promo Shot,1,Slamfest,1,Slamfest 2012,2,Stacey Leigh,1,Star Trek,1,Studio Shoot,1,Summer Boag,1,tech,29,The Official Auki Henry,1,The Rock,1,Tsunkatse,1,Twitterfeed,1,ULEGAL,1,Ultimate Alcoholic Eggnog,1,v8 monaro,1,V8 Supercars,1,Voyager,1,XDRIFT,1,Xmas,1,
ltr
item
Auki Henry: How RAG Helps Stop AI Making Things Up
How RAG Helps Stop AI Making Things Up
An explanation of retrieval-augmented generation (RAG), how it gives AI access to external information and why it can reduce hallucinations.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Mv7oW_MweKfMZYssKbMZYhR_ySeqf0_QUCH1KfnYkSYf_Jy8qqySWsc92Z5ntqmtLsJof0lX5BW6kk7MQsoa-nHOAVO1y8JQgOtAFkHCxlYD-lboTLkYeDSWvMimbVJHwtzYY1MGHsg2uIQfrBFVZ5jyewRSxiOZaH2xO_5CXMBrMj66O8ThYZhBHfg/s1600/rag-ai-retrieval-augmented-generation.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7Mv7oW_MweKfMZYssKbMZYhR_ySeqf0_QUCH1KfnYkSYf_Jy8qqySWsc92Z5ntqmtLsJof0lX5BW6kk7MQsoa-nHOAVO1y8JQgOtAFkHCxlYD-lboTLkYeDSWvMimbVJHwtzYY1MGHsg2uIQfrBFVZ5jyewRSxiOZaH2xO_5CXMBrMj66O8ThYZhBHfg/s72-c/rag-ai-retrieval-augmented-generation.jpg
Auki Henry
https://www.aukihenry.com/2026/08/how-rag-helps-stop-ai-making-things-up.html
https://www.aukihenry.com/
https://www.aukihenry.com/
https://www.aukihenry.com/2026/08/how-rag-helps-stop-ai-making-things-up.html
true
1303356979935275804
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content