AI Chatbot Wrong Answers: How to Find and Fix Them

Published · 14 min read

A customer asks your chatbot about a refund, and the bot confidently quotes a policy that expired months ago. Your team then has to explain why the answer is wrong. To fix wrong answers, check what the system read, what it retrieved and what it does when it can't find evidence.

A chatbot can write a fluent answer without checking whether it's true. The American Bar Association describes text-producing generative AI tools as prediction tools:

GAI tools that produce new text are prediction tools that generate a statistically probable output when prompted.

That's the gap: plausible language isn't the same as a verified answer. A fix needs to change the information reaching the model and the rules for its response, not just tell it more firmly to be accurate.

Find which part of the answer pipeline failed

A chatbot answer passes through several steps. The system receives a question, may search business documents, selects material, gives it to a language model and returns a response. A failure anywhere in that chain can make the final answer wrong.

Save the exact question, answer, date and any source passages or file names the system recorded. Compare them with the current business record. This incident record helps a developer find whether the problem is the prompt, document processing or search.

What you see What may have failed What to check
The answer has no source or cites nothing relevant No retrieval, or instructions allow unsupported answers Whether the chatbot searched approved documents and whether the answer shows the passages used
A correct-looking answer uses an old policy The knowledge base contains stale or duplicate documents The document date, approval status and whether the old version remains searchable
The bot answers about a file that was never read Document ingestion failed Whether the file type was supported and whether extracted text is present
It cites a passage that does not answer the question Retrieval returned a weak match Whether the passage actually supports each claim, not just whether it shares similar words
The bot answers a question outside its remit No clear boundary or refusal rule Whether the question should be answered, declined or sent to a person

Retrieval augmented generation, usually shortened to RAG, means the system searches a knowledge base for relevant passages and gives them to the model before it answers. RAG can connect an answer to business records, but it doesn't prove that the selected passage is relevant or current.

A developer account describes one way retrieval can fail: a similarity search may return the closest passage even when none is a good match. The model then has something to work with and may turn it into a confident answer.

When a user query has no good match in your vector store, cosine similarity doesn't return "nothing found." It returns the least-bad chunk, whatever is closest in embedding space, even if it's completely irrelevant.

Ask your developer to show the passages retrieved for a wrong answer. If they're irrelevant, changing the model's wording won't fix the search.

Why chatbots invent answers, even with business documents

A language model predicts text from the input it receives. The ABA's Formal Opinion 512, published July 29, 2024, describes generative AI as producing statistically probable output. The model doesn't automatically know which policy is current, whether a file opened successfully or whether a retrieved passage answers the question.

Four common causes explain many wrong answers:

  1. No retrieval: The bot relies on its general language ability instead of searching the business's approved information. It may fill gaps with familiar patterns.
  2. Stale or conflicting documents: Search finds an old policy, a draft or two documents that disagree. The model may combine them without knowing which one your team follows.
  3. Vague instructions: A prompt that says "answer the customer" but never says "only answer when supported" rewards completion over restraint.
  4. Bad input or retrieval: A file may be unreadable, text may be extracted incorrectly or search may return a weak match. The model can still answer from that defective context.

A chatbot knowledge base is the collection of information the system can search. If nobody owns updates, a new policy can go live in the business while the bot can still find the old one. Check the update process, not just the chatbot's answer.

Ask a developer to trace one incorrect answer: which file was processed, what text was extracted, which passages were retrieved and what instructions the model received. That trace shows whether the problem is the source, the search or the response rules. If your team also uses AI to summarize client messages, the same evidence check can help with email summaries that miss client deadlines.

Don't judge the system by a handful of questions it answers well. A demo with questions whose answers appear clearly in the source material tests the happy path. It doesn't show whether the bot can say "I don't know" when it can't find relevant information.

Repair sources, retrieval and refusal rules together

Adding documents helps only if the system can read them, retrieve the right parts and refuse to answer without support. Treat these as separate controls, then test the whole chain.

Make the knowledge base trustworthy. Decide which documents count as approved answers, remove superseded material from active search and assign someone to update the collection when policies change. Keep enough information to identify each source and its current version. If two approved documents conflict, resolve that in the records instead of expecting the model to guess which one wins.

Check document ingestion. Ingestion is the process of turning a file into text the chatbot can search. Open several files the system says it processed and compare the extracted text with the original. Look for missing pages, broken tables, garbled characters and skipped attachments. A filename in a database doesn't prove the content was readable.

Make answers traceable. Ask the system to show the exact source passage supporting each answer, then check whether the passage supports the whole claim. A source link gives you evidence to review, but it doesn't make the answer correct. If the passage says when a policy was written but not what it requires, the citation doesn't support the answer.

Add a no-match path. A no-match path tells the chatbot what to do when search finds no useful evidence. The bot can say it couldn't find the answer in approved material and offer a route to a person. Search shouldn't force the model to treat the nearest result as a match.

Set refusal rules in plain language. Tell the system which sources it may use, what counts as adequate support, which topics it must not answer and what to say when evidence is missing. Refusing is the right outcome when the system can't support an answer. For sensitive customer decisions, make the route to a person clear.

Calibrate search with examples. A similarity cutoff is a setting that determines how weak a search result can be before the system treats it as no match. There isn't a universal number to copy: test candidate settings with questions from your business, including questions the knowledge base can't answer. A community developer recommends calibrating the cutoff against domain-specific examples rather than treating a suggested range as a standard (technical explanation of RAG no-match failures).

A practical refusal rule might say: "Answer only from current approved support documents. Include the source passage. If no passage directly supports the answer, say you couldn't find it and route the question to the support team." The exact wording matters less than whether the system follows it when the source is absent, contradictory or unreadable.

Test the repaired chatbot against failures, not just good questions

An evaluation set is a repeatable collection of questions and expected outcomes used to test a system after a change. Include questions the bot should answer, questions it should refuse, questions about changed policies and examples where the input can't be read. A test set made only of answerable questions won't show whether the bot can abstain.

Test case Expected behavior What a failure tells you
A question clearly answered by a current approved document Answer with the supporting passage Retrieval or citation may be broken if the source is missing
A question with no relevant passage Say it could not find support and offer the approved human route The no-match or refusal rule is missing or ineffective
A question about a superseded policy Use the current approved policy or refuse if it cannot identify one Old material may still be searchable, or version handling is unclear
A question based on a file with no readable text Stop and identify the unreadable file Input validation is missing if the bot drafts from empty content
A question where search returns an irrelevant passage Refuse or escalate instead of treating the passage as evidence Retrieval cutoff or relevance checks need work

Keep the question, expected answer or refusal, actual answer, cited passage and result together. Whenever a repair changes the search configuration, document set, model or instructions, rerun the same tests. You'll see whether the fix solved one problem and created another.

Test changed policies directly. Add a question whose answer differs between an old and current document, then check whether the chatbot cites the current one. A plausible answer without a clear version behind it doesn't show that the bot follows current policy.

Test the file path too. Use a representative unreadable file, confirm the system reports the problem and make sure it doesn't draft from a filename or subject line as though it read the contents. For legal or other professional work, the ABA's July 29, 2024 opinion says lawyers should understand the capabilities and limitations of the specific tool they use.

The NIST AI 600-1 profile, published in July 2024, offers a framework for governing, mapping, measuring and managing generative AI risks across a system's lifecycle. Use it to organize questions about testing and who owns each risk, not as a certificate of chatbot accuracy.

What to do when the input is empty or unreadable

A system shouldn't write a business reply from a document it couldn't read. A readable-input check is a gate: the system confirms it extracted usable text before drafting. If the check fails, it should stop, explain why and name the file.

On the first real day of a municipal council system, a letter arrived with only a ZIP attachment the system couldn't read. The AI drafter still produced a topic and a full reply, leaving the clerk to work out that the content was invented. We chose "no readable text, no draft" over drafting from the subject line and whatever text was available. The system now explains why it stopped and names the files it couldn't read; the change was fixed and deployed the same morning, and drafts are written only for letters it can actually read. The AI back office we built for a municipal council shows the decision in context.

A confident reply to a letter nobody has read can look complete. That makes it more dangerous than an obvious error: the person checking it has to discover the invention alone. Don't tell the system to "try harder"; make it show the failure before a draft reaches someone who may trust it.

Drafting from a subject line can work for something disposable, such as an internal brainstorm a person will rewrite anyway. For a customer-facing reply that appears to be based on a letter, make the system stop. If it can't show readable source text, does it still answer? If so, fix that before tuning style or search.

If your chatbot can't reliably read its files, adding retrieval over those files won't solve the input problem. Search can't find text that was never extracted. Ask for an error message that names the unreadable file and a clear route for a person to review it.

Compare patching, replacing the tool and rebuilding

You have several ways to deal with wrong answers. The right one depends on whether the current system can support the controls your business needs, not on whether the vendor calls it AI-powered.

Route Works when Main limitation
Configure the existing chatbot It can search current approved documents, show its sources and support a real no-answer response Prompt changes cannot repair unreadable files or unreliable retrieval
Replace it with an off-the-shelf tool A ready-made product supports your document types, update process and human handoff You need to verify how it handles your own content and failure cases
Ask a freelancer or specialist to repair it The system is understandable and the defect is narrow, such as a missing refusal rule or faulty update step A small patch can leave the rest of the answer pipeline untested
Build a custom system Your workflow needs control over ingestion, retrieval, sources, permissions or escalation It takes scoped development and ongoing ownership of tests and documents
Handle answers manually The answer risk is high and the task is limited enough for a person to check each request Staff time remains part of the cost, and the process may be slow

A patch makes sense when the current system can read the right files, retrieve relevant passages and show the evidence behind answers. Repair the specific defect, then rerun tests for supported answers, no-match questions, outdated information and unreadable files.

A rebuild makes more sense when the system can't show what it read, can't separate current from obsolete information or answers when its input is empty. Consider rebuilding if changes to the model or documents keep breaking the same safeguards, or if you can't get a useful trace of a wrong answer. A new interface over the same unreliable information path doesn't fix the underlying problem.

Before paying for a rebuild, ask for a small working test with representative documents and failure cases. Have the builder demonstrate the source passage, no-match response, unreadable-file behavior and how an updated document replaces an old one. A polished demo with only answerable questions won't show you whether the controls work.

WebDaddy lists a document assistant with source links and an answer that says when information is absent, starting at $800 for a web chat on up to 200 documents delivered in 7 days; its services page also lists a $1,500, 14-day option for up to 2,000 documents with automatic pickup of new files, user roles and a chat on the client's site. Those listed packages give you a concrete scope to compare with your system. A system with unusual data flows or requirements is scoped separately through custom AI systems.

An API bill is separate from the question of whether a chatbot is safe to use. OpenAI's pricing page, fetched November 13, 2026, lists GPT-4.1 mini standard text at $0.40 per million input tokens and $1.60 per million output tokens (OpenAI API pricing). At those rates, an illustrative 10,000 chats with 2,000 input tokens and 300 output tokens each would use 20 million input tokens ($8) and 3 million output tokens ($4.80), or $12.80 in model-token charges before other costs. That's a token-cost calculation, not the cost of a complete chatbot.

The same OpenAI pricing page lists Responses API file-search storage at $0.10 per GB per day, with the first 1 GB free, and file-search tool calls at $2.50 per 1,000 calls. Those file-search charges are separate from model-token charges. Ask which services your system uses and what each charge covers, rather than treating one token estimate as the total running cost.

Check the model's lifecycle before deciding to keep an existing build. OpenAI's model page marked GPT-4.1 mini deprecated when fetched November 13, 2026 (GPT-4.1 mini model documentation). Ask for the current model, its lifecycle status and the migration path, so your repair plan accounts for a model that may change.

Choose a repair path with a short buyer's checklist

A buyer's checklist turns "make it more accurate" into work a builder can demonstrate. Use these questions with your current vendor, a freelancer or an internal technical lead:

  1. What did the chatbot read for this answer? Ask to see the extracted text, not only the original file name.
  2. Which passages did search return? Check whether those passages directly support the answer.
  3. What happens when search finds no good match? The expected result should be a clear refusal or escalation, not a forced guess.
  4. How does the system handle old and current policies? Ask how obsolete documents leave active search and how updates are verified.
  5. What does it do with an unreadable upload? It should name the failed file and stop rather than drafting as though the text were available.
  6. Which questions will you use to test the fix? Include supported answers, no-answer cases, changed policies, irrelevant matches and unreadable inputs.
  7. Who owns the documents and tests after launch? Name the person responsible for updates and for rerunning tests after changes.
  8. What is outside the quoted scope? Separate model usage, storage, search, integrations, support and future changes.

Be wary of a proposal that promises accuracy without showing how the system handles missing evidence. Ask to see a wrong-answer case and a no-answer case, not just a polished answer. A citation to a real file still fails if the passage doesn't support the claim.

For regulated or professional work, discuss confidentiality, human review and responsibility for checking outputs. The ABA's Formal Opinion 512, dated July 29, 2024, discusses duties for lawyers using generative AI, including competence, protecting client information, communication and supervision. Ask your own lawyer or compliance officer which duties apply to your business and jurisdiction.

The fix is complete when the chatbot can show what supports an answer and stop when that support is missing. If it still answers from unreadable input, fix the stop behavior before tuning the wording.

Want this done for your business?

An AI agent from $500, a document assistant from $800, fixed price and deadline. Or describe your task and get a plan with a price for each step

Questions people ask

Why does my business chatbot make up answers?

A language model generates likely text rather than automatically checking every statement against current business records. Missing or irrelevant retrieved material, stale documents, vague instructions and unreadable input can all leave it with room to guess.

Will adding sources stop my chatbot from hallucinating?

Sources help only when the system can retrieve the right passage, show which passage supports the answer, and stop when no relevant passage exists. A nearest-match search result can still be irrelevant.

How should a chatbot respond when its documents do not contain the answer?

It should say that it could not find support in the available documents and route the question to a person when the answer matters. It should not fill the gap with a plausible-sounding guess.

What should an AI system do when an uploaded file is unreadable?

It should stop, explain that it could not read the file and identify the affected file. It should not draft an answer as though it had processed the contents.

How do I test whether a chatbot is using outdated information?

Ask about a policy or fact that changed, then check the answer against the current approved document and the source the chatbot shows. Include the old and current versions in a repeatable test set.

Should I patch my chatbot or rebuild it with retrieval?

Patch it when the current system can reliably read current documents, find supporting passages and refuse unsupported answers. Rebuild when those basic capabilities are missing, the data flow is opaque, or a model or document change repeatedly breaks the same controls.

How much does it cost to run a chatbot model API after fixing it?

Model charges depend on the model and the amount of text processed. OpenAI's pricing page lists token and file-search charges separately, so those figures do not include development or every other operating cost.

Sources

  1. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1)
  2. Formal Opinion 512: Generative Artificial Intelligence Tools
  3. OpenAI API Pricing
  4. GPT-4.1 mini Model Documentation
  5. Your RAG chatbot confidently answers questions about docs that don't exist in production. How to fix.