
A chatbot that answers with complete confidence, quoting a policy that was retired last year, looks like a model problem. The instinct is to rewrite the instructions, add a line telling it to be careful, and test again. Sometimes that helps a little. Often it does not, because the model was working from the wrong material in the first place.
Our view is that the retrieval layer, the part that finds documents and passes them to the model, is where most of these failures begin. Fix that first. The prompt was rarely the real problem.
Where the answer really goes wrong
Most business AI assistants that answer questions from internal documents use a pattern called retrieval-augmented generation, or RAG. The idea is simple. Your documents are split into pieces, each piece is converted into a numerical form that captures its meaning, and those pieces are stored in an index. When someone asks a question, the system pulls the closest matching pieces and hands them to the model, which writes an answer based on them.
Each step in that chain can break without any visible error. The answer still reads smoothly, so nobody notices until a customer or a colleague acts on it.
Chunking
If the pieces are too small, a sentence loses the context that gave it meaning. If they are too large, the one useful paragraph gets buried under pages of unrelated text. Neither problem announces itself. The system simply returns something close but not quite right.
Indexing and embeddings
The way text is converted into numbers decides what counts as a “similar” match. A poor choice can pair questions with passages that share vocabulary but not meaning. A question about cancelling a contract might surface a passage about cancelling a meeting.
Freshness
An index is a snapshot. If the source document changed last month and the index was built last quarter, the assistant will confidently answer from the old version. Nothing in the answer tells you the document is stale.
The source of truth
Many organisations have three copies of the same policy: a draft, a shared folder version, and a PDF someone emailed years ago. If nobody has decided which copy counts as official, the system will treat them all as equally valid.
In each case, the fix lives in the data pipeline and the index. Rewriting the prompt just asks the model to be more careful with material that is already flawed.
Why the demo looked great and production did not
A demo usually runs on a tidy set of documents, chosen by the person building it. Production gets the real file share, with duplicates, drafts, expired policies, and folders that nobody has opened in years. The gap between those two environments is where many promising projects lose their shine.
There is also a people problem. The team that builds the demo is often optimising for a good showcase. The team that inherits the system is optimising for something that keeps working on a Tuesday afternoon with real users. When those are different groups with different incentives, the handoff between them becomes the weak point. We read that handoff as the place where a project quietly stalls, not as a dramatic failure.
If you have a pilot that has been “almost ready” for a while, our guide on why most RAG pipelines fail before they reach production walks through the common failure points in more detail. For the cost side of that stall, see the real cost of a stalled AI pilot.
Build or buy, and why the question keeps coming back
Every team building AI infrastructure eventually asks whether to build the pieces themselves, buy a platform, or combine the two. That question is healthy the first time. It becomes a warning sign when the answer changes every six months.
A decision that keeps getting reopened usually means the criteria were never written down. Before you choose, it helps to settle a few points:
- Which parts of the system must your team be able to change without asking a vendor?
- Where must your data physically and logically live, and who can see it?
- Who will maintain the component after launch, and with what skills?
- What would it cost to leave this vendor later, in engineering time and in lost history?
The last point matters more than most buyers expect. Dependence on one provider can make a future change expensive even when the first purchase looked sensible. We cover that trade-off in build versus buy, the infrastructure decision most teams get wrong and in our note on vendor lock-in in AI consulting.
Three questions every AI system should be able to answer
When a business asks us about AI systems, three questions come up again and again in different forms. They are good questions, and a serious answer to each one is more useful than a reassuring one.
1. Can you show that our data stays inside our own boundary?
This is about tenant isolation, meaning one customer’s documents never leak into another customer’s answers. It also covers where the data is stored and which services touch it. A good answer names the specific controls and explains how they were tested. A vague answer about security is not enough.
2. How do we know which documents the retrieval system can actually reach?
Access should be enforced when documents are retrieved, not only when a person logs in. If a junior employee cannot open the salary spreadsheet, the assistant should not be able to quote it to them either. Many teams discover that their retrieval index ignores the permissions on the original files. That gap is easy to miss and important to close.
3. If something goes wrong, can you show us exactly what happened?
When an answer is challenged, you need a record: the question asked, the documents retrieved, the version of each document, the model used, and the answer given. Without that trail, every incident becomes guesswork. We explain what a useful trail looks like in building audit trails your board will actually sign off on.
Governance is engineering work, not a binder
Governance is often treated as a policy document that sits on a shelf. In production, it has to live in the system. Policy and compliance guardrails need to be enforced in code, access control needs to be checked against real retrieval paths, and audit logging needs to be complete enough to answer a regulator’s or a board member’s question.
Red-teaming and failure-mode testing belong in this picture too. The idea is to deliberately try to make the system misbehave: ask questions that mix up two customers, probe for documents a user should not see, and push on ambiguous policies. You learn far more from a day of this than from a checklist review. For a practical list of warning signs, see AI governance compliance audit red flags.
What a two-week diagnostic sprint looks like
If you are not ready to commit to a large programme, a short, bounded look is often the sensible first step. Our Diagnostic Sprint is a two-week engagement designed for exactly that. It produces three things:
- A full system audit of what you already have: data sources, retrieval setup, model operations, and governance controls.
- A cost and risk exposure report that shows where money and exposure currently sit.
- A prioritised build plan that puts the fixes in order, so you know what to tackle first.
The goal is to give you a clear picture before you commit further. You should finish the sprint knowing what you have, what you are missing, and what it would take to close the gap. For an example of how these findings tend to look in practice, read AI diagnostic sprint results.
What the wider market is telling buyers
The consulting world is busy at the moment. The Hindu’s explainer asks why AI model companies are moving into the services business, a shift that changes who buyers may end up hiring for implementation work. Consultancy.eu has also reported on the Databricks Data + AI World Tour in Amsterdam, where consultancies showed off their expertise. The Hindu’s explainer on Anthropic’s consulting venture is worth reading if you are weighing a model vendor’s services offer against an independent partner.
Our take is simple. Whoever you hire should be accountable for the system after launch, not just for the proposal. They should be able to explain trade-offs in plain language and tie their work to outcomes you can see on the profit and loss statement. Those are the standards we hold ourselves to, and they are worth asking any consultant to meet.
Frequently asked questions
Should we rewrite our prompts first?
You can, and it is cheap to try. But if the retrieved documents are stale, duplicated, or visible to the wrong people, a better prompt only makes a flawed answer sound more polished. Check the retrieval layer before spending more time on wording.
How do we tell whether the problem is retrieval or the model?
Take a set of questions with known correct answers and trace each one. Look at which documents were retrieved and whether they contained the right information. If the right material never reached the model, the problem sits upstream of the model.
What is the first thing to check for access control?
Confirm that permissions on the original files are respected when content is retrieved, not just when someone signs in. Test it with accounts that have different access levels and see what the assistant will reveal to each one.
How long does a Diagnostic Sprint take?
Our Diagnostic Sprint runs for two weeks. You finish with a system audit, a cost and risk exposure report, and a prioritised build plan, so you can decide what to do next with a clearer picture.
What should we ask a consultant before hiring one?
Ask who will be accountable after launch, how they test for failures, how they handle access control and audit logs, and how they measure success. Our guide on how to hire an AI consultant lists the questions we think matter most.
Talk to us about your system
If an AI assistant in your business is giving answers you cannot fully trust, or a pilot has been stuck between demo and production for longer than you would like, you do not have to untangle it alone. We can spend time understanding what you have, what you are trying to solve, and what it would take to get there. Start with a conversation through our contact page, or read more about how we work on the services page.
We are happy to look at the problem with you, even if the answer turns out to be a small fix to a single pipeline.