Evaluating an AI Q&A bot requires more than checking whether individual answers sound convincing. This guide provides a repeatable workflow for building representative test sets, measuring correctness and retrieval quality, reviewing citations and refusals, tracking latency, and combining automated checks with human judgment. Use it before releases, after knowledge-base changes, and during monthly or quarterly quality reviews.
Overview
An AI Q&A bot is useful only when it gives the right answer, uses the right information, communicates its limits, and responds quickly enough for the intended channel. A bot can appear accurate during casual testing while still failing on common questions, outdated documents, ambiguous wording, or requests that should be refused.
A practical evaluation therefore combines several dimensions rather than relying on one accuracy percentage. At minimum, assess:
- Answer correctness: Does the response agree with the approved answer or source material?
- Groundedness: Is the answer supported by the retrieved knowledge-base content?
- Relevance: Does it address the user’s actual question without unnecessary material?
- Completeness: Does it include the important conditions, steps, exceptions, or limits?
- Citation quality: When citations or links are shown, do they support the claims and point to the right source?
- Refusal behavior: Does the bot avoid guessing when information is missing, restricted, or outside scope?
- Operational quality: Are latency, failures, escalation rates, and costs within acceptable limits?
Define the evaluation target before choosing metrics. A customer-support bot may prioritize correct troubleshooting and safe escalation, while an internal knowledge-base chatbot may place more weight on source attribution and permission-aware retrieval. Your scorecard should reflect the bot’s job, audience, and risk level.
For a repeatable process, maintain a versioned evaluation dataset alongside the bot’s prompts, retrieval settings, and knowledge base. The AI Chatbot Evaluation Dataset Guide can help structure questions, expected answers, labels, and regression cases.
What to track
1. Build a representative test set
A useful test set should resemble real usage, not the questions that are easiest to write. Include frequent questions, high-impact questions, recently reported failures, ambiguous requests, misspellings, follow-up questions, and questions that require the bot to say it does not know.
Organize cases by intent and risk. For example, a support bot might include account access, billing, product setup, troubleshooting, cancellation, and escalation intents. Add edge cases for each category. A test record can contain:
- The user question and any relevant conversation history
- The expected intent or answer category
- Required facts or steps
- Disallowed claims or unsafe actions
- Expected citations or source identifiers
- Whether a refusal or human handoff is appropriate
- A risk level, such as low, medium, or high
Keep a fixed regression set for stable comparisons, and maintain a rotating set for newer issues. A fixed set makes prompt, model, and retrieval changes easier to compare. A rotating set prevents the team from optimizing only for familiar examples.
2. Measure answer quality separately from retrieval quality
In a RAG chatbot, a poor answer can result from retrieval failure, generation failure, or both. Check the retrieved passages before judging the final response. If the correct source was not retrieved, changing the prompt may not solve the underlying problem. Review chunk boundaries, metadata, document freshness, query rewriting, and access filters. The RAG Document Chunking and Metadata Guide provides a useful maintenance reference.
For the final answer, label each case using a simple rubric:
- 2 — Pass: Correct, sufficiently complete, relevant, and properly supported.
- 1 — Needs review: Mostly useful but missing a detail, using weak wording, or requiring a minor correction.
- 0 — Fail: Incorrect, unsupported, materially incomplete, misleading, or inappropriate.
Use separate fields for correctness, completeness, relevance, groundedness, and citation quality when the bot supports consequential workflows. A single overall score is convenient, but it can hide a serious weakness.
3. Track refusal and escalation behavior
Test questions where the correct behavior is to ask a clarifying question, state that information is unavailable, or route the user to a person. Measure both false answers and unnecessary refusals. A bot that answers everything may hallucinate; a bot that refuses too often may frustrate users and create avoidable handoffs.
Review whether the bot distinguishes between “I do not have enough information,” “this request is outside scope,” and “this action requires an authorized person.” These are operationally different outcomes and should not be combined blindly.
4. Track operational measures
Record response latency by channel, error and timeout rates, successful handoffs, user re-prompts, and unresolved conversations. If you monitor token use or model cost, connect those figures to quality results rather than treating lower usage as automatically better. The AI Chatbot Token Cost Optimization workflow offers a framework for examining cost alongside response behavior.
| Evaluation method | Best used for | Limit |
|---|---|---|
| Rule-based checks | Required phrases, citation presence, format, refusal triggers | Cannot judge nuanced meaning well |
| Reference-answer comparison | Stable FAQs and well-defined procedures | May penalize valid alternative wording |
| Source-grounding review | RAG retrieval and citation support | Requires reliable source labels or passage review |
| Model-assisted grading | Large test sets and semantic comparison | Needs calibration and human spot checks |
| Human review | Ambiguous, high-risk, or newly observed cases | Slower and less consistent without a rubric |
| Production analytics | Real-world latency, retries, handoffs, and unresolved intent | Usage data may lack a verified correct answer |
Cadence and checkpoints
Run evaluations at several intervals instead of waiting for a major incident.
- Before launch: Test the full regression set, high-risk workflows, permissions, citations, refusal cases, and expected handoffs.
- After prompt or model changes: Compare the new version with the previous version on the same fixed set. Do not approve a change based only on improvements in one category.
- After knowledge-base edits: Retest questions affected by changed, deleted, or newly added documents. Confirm that old answers do not persist when policies or procedures have changed.
- Weekly during active iteration: Review new failures, unresolved conversations, repeated re-prompts, and escalations. Add representative failures to the dataset after labeling them.
- Monthly or quarterly in steady state: Recalculate quality and operational measures, sample live conversations, inspect drift by intent and language, and retire obsolete test cases.
- After an incident: Freeze the failure example, identify the cause, add a regression case, and verify the fix across related intents before deployment.
Use a change log for the model, system prompt, retrieval configuration, document collection, chunking strategy, and safety rules. Versioning the prompt and deployment configuration makes score changes easier to explain; see the LLM Prompt Versioning Guide for a production-oriented approach.
How to interpret changes
Do not treat a higher aggregate score as proof that the bot improved. First, compare results by intent, risk level, language, channel, and question type. An overall gain can conceal a decline in billing questions or high-risk escalation behavior if those cases are a small part of the dataset.
When correctness falls but retrieval measures remain stable, inspect the prompt, model, answer format, and conversation history. When retrieval quality falls, investigate document freshness, metadata, chunking, query formulation, and permission filters. When citation quality falls while answers remain plausible, check whether the bot is citing a related passage rather than the passage that actually supports the claim.
Separate quality changes from traffic changes. A rise in handoffs may indicate worse answer quality, but it may also reflect a new campaign, a different user population, or a newly enabled escalation rule. Pair dashboard trends with a sample of conversations and label the likely cause.
Use a scorecard that preserves both numbers and notes:
| Dimension | Score or measure | Review note | Owner and next action |
|---|---|---|---|
| Correctness | Pass rate and failed cases | Which intents declined? | Fix source, prompt, or workflow |
| Groundedness | Supported-claim rate | Was the right passage retrieved? | Inspect RAG configuration |
| Refusal quality | Correct refusals and false refusals | Did the bot guess or over-escalate? | Adjust scope and routing |
| Latency | Typical and slow responses | Which channel or step is slow? | Profile retrieval and generation |
| Human review | Reviewer agreement and themes | Are labels consistent? | Clarify the rubric |
Set acceptance thresholds before reviewing results where possible. For high-risk cases, a small number of failures may justify blocking a release even if the overall score is strong. Quality gates should reflect impact, not only volume.
When to revisit
Revisit this evaluation workflow on a monthly or quarterly cadence, depending on traffic, risk, and how often the bot changes. Return sooner when you change the underlying model, system prompt, retrieval settings, document structure, language support, integration, or handoff workflow. Also revisit after a sudden increase in unresolved conversations, repeated user corrections, citation complaints, latency, or incident reports.
Make the next review action-oriented:
- Export recent conversations and remove sensitive information according to your internal process.
- Select new examples from repeated questions, failures, escalations, and unanswered intents.
- Label expected answers, required sources, refusal behavior, and risk level.
- Run the fixed regression set and the newly added cases.
- Compare results with the last approved version by dimension and intent.
- Have a reviewer inspect every high-risk failure and a sample of passing cases.
- Record the cause, owner, remediation, and follow-up date.
- Deploy only after verifying the fix and updating the regression set.
For broader release readiness, combine this scorecard with the Production Deployment Checklist for an AI Q&A Bot. If a defect reaches users, document the diagnosis and response using an AI chatbot incident response runbook. A consistent review habit turns chatbot evaluation from a one-time launch exercise into an operating process that keeps the AI Q&A bot accurate, grounded, and useful as its content and traffic change.