# Why RAG fails on government content, and what to fix first
https://miromiro.co.nz/insights/why-rag-fails-on-government-content/

Most wrong answers from a government RAG assistant start with retrieval and content, not the model. The common failures, and the order to fix them in.

---

Insight · AI search

# Why RAG fails on government content, and what to fix first

By Miro Bzduch · November 2026

When a RAG assistant gets a government question wrong, the model is rarely the first thing to fix. Usually the search step brought back the wrong page, an old page, or half of the right one. Fix the content and the retrieval first, and test them separately from the answers.

## What RAG does, in one paragraph

RAG stands for retrieval-augmented generation. A person asks a question. The tool searches your content and pulls out a handful of passages, often called chunks, that look most relevant. A language model then writes an answer using only those passages, ideally with a link to each source. The model can only be as right as the passages it was given.

That makes RAG a search project first. Most of what goes wrong on government content goes wrong before the model sees anything.

## Why government content is hard for RAG

Government pages are written for people who read the whole page. RAG reads a few paragraphs, cut out of context. Five habits of official content cause most of the trouble.

What the content does | What the assistant does | Fix first |

Puts the condition in a different sentence or section from the number | Retrieves "Dog registration costs $150" without "for desexed dogs", and gives the desexed fee to everyone | Keep each number and its condition in the same sentence |

Publishes the same fact on several pages | Retrieves two versions that have drifted apart, and picks one or blends them | Publish each fact once and link to it |

Leaves old pages and PDFs live | Retrieves last year's fee because the old page matches the question better | Retire or exclude what nobody owns before indexing |

Uses the agency's words, not the public's | Misses the "Rates rebate" page when someone asks "can I get help paying my rates?" | Add the words people use to the pages, and test with real questions |

Puts answers in tables, calculators or tools | Gets a table with no headings, or an empty page from a tool built in the browser | Write the general rule in plain text beside the table or tool |

These start before the model sees anything. A better model given the wrong passage writes a better-sounding wrong answer.

The same patterns cause wrong answers in public AI tools such as ChatGPT and Google's AI Overviews. More in [why AI gives wrong answers about your agency](https://miromiro.co.nz/insights/why-ai-gets-your-agency-wrong/) and [why AI tools can't see some of your pages](https://miromiro.co.nz/insights/pages-blank-to-ai/).

## Some questions shouldn't go through RAG at all

"When is my bin day?" has a different answer for every address. No passage on the website answers it for one person. A RAG assistant either guesses from a general page or quotes the wrong street.

Questions that need the person's own details belong with the tool that already answers them: the bin day finder, the rates lookup, the eligibility checker. The assistant's job is to recognise the question and hand it over, with a link. Deciding which questions go where is part of scoping, not a fix for later.

## What to fix first, in order

- 1. Decide what's in scope. Choose the content the assistant may answer from. Leave out old news, archived PDFs and anything without an owner. A smaller, current set of pages beats everything the site has ever published.

- 2. Fix the pages behind the top questions. Take the twenty questions people ask most and read the pages that should answer them, as if you only had one paragraph. Put conditions beside numbers. Date anything that changes. Remove the duplicates.

- 3. Test retrieval on its own. For each test question, write down the page and sentence that should answer it. Check whether that passage comes back in what the tool retrieves. If it doesn't, nothing downstream can save the answer.

- 4. Look at how pages are cut up. If a passage keeps arriving without its heading or its condition, the chunking is cutting in the wrong place. This is a setting for the vendor or developers, and it's worth asking about before you sign.

- 5. Then tune the prompt and the model. Once the right passages come back, work on how the answer is written: when to decline, how to cite, how to say "it depends".

## Why the order matters

Teams often start at step five because it's the easiest to change. A prompt tweak can fix the question in front of you and break three others. Content fixes last, and they help people reading the website, Google and every public AI tool at the same time.

Retrieval testing also changes the conversation with a vendor. "Your tool missed the right page on these questions" is a request they can act on. "The answers feel off" isn't.

## What to measure

- Retrieval: for how many test questions the right passage came back.

- Answers: how many answers had nothing wrong in them, checked fact by fact against the source. The method is in [how to test whether your AI gives correct answers](https://miromiro.co.nz/insights/how-to-test-ai-answers/).

- Hand-offs: how often the assistant declined or handed over when it should have, and how often it answered when it shouldn't.

Keep the three apart. A wrong answer with the right passage is a model or prompt problem. A wrong answer with the wrong passage is a retrieval or content problem. They have different owners.

## Where to start

Pick one service and its twenty most-asked questions. For each, note the page that should answer it, ask the assistant, and check what it retrieved. That's often enough to find the first content fixes.

At MBIE I researched how search works across MBIE's websites and wrote requirements for AI-assisted search. The retrieval checks above are ones I'd put in any RAG requirements.

## Common questions

What is RAG?
Retrieval-augmented generation: the tool searches your content for the passages most likely to answer a question, then a language model writes an answer from those passages. If the search step brings back the wrong passages, the model writes a fluent answer from the wrong facts.

Will a better model fix wrong answers from a RAG assistant?
Rarely on its own. On government content many wrong answers trace back to the passages that were retrieved or to how the pages were written, so a better model gives the same wrong facts in better sentences.

How do you test retrieval separately from the answers?
For each test question, write down the page and sentence that should answer it, then check whether that passage is in what the tool retrieved. If it isn't, the answer can only be right by luck.

[Image: Miro Bzduch]

## Miro Bzduch

AI consultant in Wellington, working on AI implementation, strategy and findability. I've led findability at MBIE and UX design at Health New Zealand, and I founded [Foundable](https://foundable.co.nz/). My MBIE work includes [checking AI Overviews for accuracy](https://miromiro.co.nz/projects/ai-overviews-accuracy/).

Related:
[RAG and knowledge search](https://miromiro.co.nz/ai-consulting/rag/) · [Why is AI giving wrong or outdated answers about our agency?](https://miromiro.co.nz/insights/why-ai-gets-your-agency-wrong/)

## Get in touch

Email [hello@miromiro.co.nz](mailto:hello@miromiro.co.nz), call [(027) 450 5720](tel:+64274505720), or [ask about my availability](https://miromiro.co.nz/contact/?about=availability).
