Detecting Hallucinated Policy Claims in an LLM Support Assistant
Last updated: November 29, 2026
Quick Overview
An LLM drafts replies to riders about refunds and fees using retrieved policy documents. How would you measure and reduce the rate at which it states policies that are not in the sources?
Uber
November 29, 20260
0
0 solved
An LLM drafts replies to riders about refunds and fees using retrieved policy documents. How would you measure and reduce the rate at which it states policies that are not in the sources?
A support reply that promises a refund the policy does not allow costs money and trust, so Uber interviewers push on how you would quantify groundedness. They expect an evaluation design with human labels, automated checks and mitigations.
What the Interviewer Expects
- Define hallucination precisely for this product (unsupported claims)
- Build a labeled evaluation set and measure claim-level groundedness
- Use automated checks such as NLI or an LLM judge validated against humans
- Mitigate with retrieval quality, constrained generation and citations
- Gate risky categories with human review
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you validate an LLM judge?
- What if retrieval returns an outdated policy version?
- How would you set the threshold for auto-sending versus human review?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Define the failure: a sentence asserting a policy fact (amount, eligibility, timeline) that is not entailed by the retrieved documents or the rider's trip record. Tone issues and unhelpfulness are tra...
Approach
Measure at the claim level, not reply level:
- Split each draft into atomic claims ("you are eligible for a refund of the cancellation fee", "refunds take 3 to 5 days").
- For each claim, label supp...