Inconsistent answers caused by instruction conflict and messy knowledge context
A client support chatbot produced different answers to semantically similar questions and sometimes ignored the intended human-escalation condition.
Starting problem
The team knew the chatbot was inconsistent but lacked a reproducible test suite. The prompt had accumulated duplicate rules and the knowledge set contained material that did not always agree.
Constraints
- The diagnosis needed to separate prompt, knowledge and model variability.
- Critical policy answers needed reusable tests.
- The existing platform should remain in place where practical.
- Residual model variability had to be documented rather than hidden.
A→Z troubleshooting
- Capture failing examplesCollected exact user inputs, expected behavior, actual answers, relevant source material and escalation expectations.
- Build reproducible test setCreated paraphrased versions of failing questions plus adjacent edge cases to identify systematic failure patterns.
- Audit instructions and knowledgeIdentified duplicate or conflicting prompt rules, outdated material and unclear source priority.
- Apply isolated fixesRemoved or merged conflicts, clarified source priority and rewrote escalation conditions without changing unrelated settings at the same time.
- Regression testReran original failures and a broader scenario set across repeated attempts, tracking pass/fail and residual variability.
- Baseline and hand overSaved the corrected baseline and delivered the regression suite plus future-edit guidance.
Artifacts delivered
Acceptance criteria
- Previously failing scenarios produced the intended answer or escalation under agreed test conditions.
- Outdated or conflicting source material no longer drove the tested policy answers.
- Core test cases could be rerun after future changes.
- Residual uncertainty and model variability were documented.