Picture a team that has spent three weeks rewriting the instructions for their internal AI assistant. They have added rules, examples and polite reminders to double check sources. The answers still come back wrong, and sometimes they quote a policy that was retired last year. The instinct is to keep tuning the words. In our experience of how these systems are built, that instinct is usually aimed at the wrong target. The prompt is rarely where a broken AI system starts.

This guide explains where wrong answers really come from, how to tell upstream problems from prompt problems, and what a sensible next step looks like. We write it for leaders who need to make decisions about budget and risk, not only for the engineers who keep the system running.

Where the answer actually comes from

Most enterprise assistants do not know your business. They are general language models that have been connected to your documents through a retrieval system, often called retrieval-augmented generation or RAG. When someone asks a question, the system searches your content, pulls out a handful of passages, and hands them to the model along with the question. The model then writes an answer based on what it was given.

That design has a consequence that surprises many teams. The model can only be as accurate as the passages it receives. If the search returns an outdated page, a half-finished draft, or a paragraph that is only relevant in a different country, the model will often produce a fluent, confident answer built on that material. The writing will look polished, which makes the error harder to spot.

This is why we tell clients to fix the retrieval layer first. A better prompt can make an answer sound more careful. It cannot make the underlying text correct. For a deeper look at how these pipelines break, our piece on why most RAG pipelines fail before they reach production covers the common failure points in more detail.

What this week’s news tells us

OpenAI recently published a customer story on its news site about Cult.fit, the Indian fitness company, and how it is using OpenAI’s Codex coding tool to build what the piece describes as operational capability. The story is a useful reminder that AI tools are increasingly being used inside day-to-day operations rather than in isolated experiments. The more an organisation depends on these tools, the more its results depend on how the surrounding systems are built, monitored and owned. You can read the original account here: Cult.fit builds operational muscle with Codex.

The three upstream layers that decide answer quality

When we look at an assistant that is underperforming, we usually check three layers before touching the prompt.

Chunking and indexing

Documents have to be cut into pieces before they can be searched. Cut them too large and the retrieved passage carries a lot of irrelevant text that dilutes the answer. Cut them too small and a sentence loses the context that gives it meaning, such as a condition or an exception listed two paragraphs earlier. The embedding approach, which turns text into numbers the search can compare, also shapes what gets found. None of these choices is glamorous, and all of them are easy to get subtly wrong.

Freshness and source of truth

Many organisations store the same policy in several places: a wiki, a shared drive, an old PDF, and an email attachment everyone forwarded. If the retrieval system indexes all of them with equal weight, the assistant has no way to know which version is current. A good design defines which system is the source of truth, how often it syncs, and what happens when a document is withdrawn. Without that, the assistant will keep quoting yesterday’s rules with the same confidence it uses for today’s.

Evaluation

Ask most teams how they know their assistant is accurate and you will hear a mix of spot checks and gut feeling. A proper evaluation harness is a fixed set of realistic questions with known good answers, run every time something changes. It tells you whether a new chunking rule or a new model version made things better or worse. Our guide to performance metrics that matter to your business explains how to connect these checks to outcomes people in the business actually care about.

Why demos hide these problems

A demo is built to succeed. Someone chooses a clean set of documents, picks questions the system handles well, and shows the best answers. Everyone leaves impressed. Then the system meets the real document set, with its duplicates, scanned images, contradictions and missing files, and the results change.

Part of the problem is organisational. In many projects, the team that builds the demo is different from the team that runs production, with different goals and different incentives. The handoff between them is where things quietly stall. The demo team gets credit for a impressive prototype, and the production team inherits a system nobody designed to be operated. We have written about this in our piece on why AI deployment failed and how to avoid it.

Our own approach is to keep one team accountable from architecture through production operations, so the people who design the retrieval layer are also the people who see how it behaves after launch. That is not a claim that handoffs are impossible to manage. It is simply a way of removing the gap where accountability gets lost.

Questions your AI system should be able to answer

Beyond accuracy, leaders usually have three questions that matter for trust, and a production system should be able to answer all of them. We put them in plain words because they come up in almost every serious conversation about enterprise AI.

Operations: monitoring, rollback and on-call

Shipping the assistant is the beginning of the work, not the end. Models drift as the data around them changes. Latency creeps up when usage grows. Costs can rise quietly when a retrieval step starts pulling far more text than it needs. A production setup watches these signals continuously and treats them as operational issues rather than occasional surprises.

Three things matter most in practice:

Monitoring. Track answer quality through the evaluation set, plus latency and cost per request. Set alerts for sudden changes, not only for outages. Our production monitoring checklist lists the signals we usually start with.

Rollback. Every change to the retrieval layer, the model or the prompt should be reversible. Teams that cannot roll back quickly tend to freeze, and a frozen assistant accumulates problems that nobody wants to touch.

On-call and runbooks. Someone should know what to do at two in the morning when the assistant starts citing the wrong document. A short, tested runbook beats a heroic improvisation every time.

Build or buy, and why the question keeps coming back

Many teams revisit the infrastructure decision every few months: should we build our own retrieval and serving stack, use a managed platform, or mix the two? If you find yourself reopening that question every six months, the question itself is a signal. It usually means nobody has defined what the system must do, how it will be measured, or who owns it after launch.

There are real trade-offs on both sides. Building gives you control over data flow, cost structure and customisation, but it takes skilled people to maintain. Buying gets you running faster and offloads some operational burden, but it can create dependence on one vendor’s pricing, roadmap and data terms. Our article on build versus buy for AI infrastructure walks through how to weigh these honestly, and our piece on vendor lock-in in AI consulting covers the contract terms worth scrutinising.

What a diagnostic sprint looks like

If you suspect your assistant has an upstream problem but are not sure where, a short, structured look often saves months. Our Diagnostic Sprint is a two-week engagement. It includes a full system audit of what you already have, a cost and risk exposure report, and a prioritised build plan. The aim is to give you a clear picture before you commit further budget.

The sprint is designed around business results rather than hours. We scope the work around the outcome you need, so the question is what would make the system worth relying on, not how many days we can fill. You can read more about what teams have found in our piece on AI diagnostic sprint results, and you can see the full range of work on our services page.

Frequently asked questions

Should we always fix the prompt first?
Not usually. Prompt changes are quick and cheap, which is why teams reach for them first. But if the retrieved documents are wrong, stale or badly split, no wording will make the answer reliable. Check retrieval and data quality before spending more time on instructions.

How can we tell whether the problem is retrieval or the model?
Look at what was retrieved for a wrong answer. If the passages are irrelevant, incomplete or outdated, the retrieval layer is the likely cause. If the passages were correct and the model still misread them, the issue may sit with the model or the instructions. A good evaluation set makes this distinction visible.

Is a two-week sprint enough to learn something useful?
In our experience, two weeks is long enough to see the shape of the problem, the main risks and the order in which to tackle them. It will not solve everything, but it should replace guesswork with a plan you can act on.

Where should we start if we have nothing in place yet?
Start with three questions: what the assistant is for, which documents it should be allowed to use, and how you will know its answers are right. Answering those honestly will shape almost every technical decision that follows.

Talk to us

If your AI assistant is giving answers you cannot fully trust, or if you are weighing what it would take to make it production-ready, we would be glad to help you sort out what is actually going on. Our team can look at what you already have, identify where the gaps sit, and lay out a practical path forward. Get in touch through our contact page and we will start the conversation from there.