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
Machine Learning
Machine Learning Engineer
Uber
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

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
RAG
groundedness
NLI
LLM-as-judge
human evaluation
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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:

  1. Split each draft into atomic claims ("you are eligible for a refund of the cancellation fee", "refunds take 3 to 5 days").
  2. For each claim, label supp...

Submit Your Answer
Markdown supported