PracHub
QuestionsLearningGuidesInterview Prep
|Home/ML System Design/Vanta

Review and Debug an AI Chatbot

Last updated: Jul 14, 2026

Quick Overview

Review and debug an AI chatbot across policy, prompts, retrieval, model calls, tools, post-processing, and user presentation. Build a traceable error taxonomy and privacy-aware evaluation plan for incorrect, unsafe, slow, or inconsistent responses before choosing a controlled fix.

  • medium
  • Vanta
  • ML System Design
  • Software Engineer

Review and Debug an AI Chatbot

Company: Vanta

Role: Software Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Onsite

# Review and Debug an AI Chatbot Review the design of an AI chatbot and propose improvements. Then explain how you would investigate reports of incorrect, unsafe, slow, or inconsistent responses without assuming every failure comes from the model itself. ### Constraints & Assumptions - The chatbot uses a language model plus application prompts, retrieval, optional tools, safety controls, and a user-facing service. - Conversation data may contain sensitive information. - Model calls are probabilistic, expensive, and dependent on external services. - Product quality includes task success, safety, latency, reliability, and user trust. ### Clarifying Questions to Ask - Who are the users, what tasks should the chatbot complete, and which failures are unacceptable? - Does it retrieve documents or call tools, and what authorization boundaries apply? - Which models, prompts, indexes, and policies are currently deployed? - What traces and user feedback are retained, and under what privacy policy? - How are quality, safety, cost, and latency measured today? ### Hints - Reconstruct one failing request across the entire pipeline. - Build an error taxonomy before changing prompts or models. - Use a representative evaluation set and controlled comparisons. ### What a Strong Answer Covers - Request flow through policy, prompt construction, retrieval, model, tools, post-processing, and presentation. - Traceability with versioned configurations, privacy-aware logs, correlation IDs, and replayable fixtures. - Error categories such as retrieval miss, stale data, prompt conflict, tool failure, authorization error, model behavior, and UI misrepresentation. - Offline and online evaluations, human review, adversarial tests, cohort analysis, and regression gates. - Improvements to grounding, tool contracts, uncertainty, escalation, latency, caching, and safety. - Staged experiments, rollback, cost controls, incident response, and explicit residual risk. ### Follow-up Questions 1. How would you determine whether a wrong answer came from retrieval or generation? 2. What data would you log without retaining sensitive conversation content? 3. How would you evaluate a prompt change whose average score improves but one safety cohort worsens? 4. When should the chatbot refuse, ask a clarifying question, or escalate to a human?

Quick Answer: Review and debug an AI chatbot across policy, prompts, retrieval, model calls, tools, post-processing, and user presentation. Build a traceable error taxonomy and privacy-aware evaluation plan for incorrect, unsafe, slow, or inconsistent responses before choosing a controlled fix.

|Home/ML System Design/Vanta

Review and Debug an AI Chatbot

Vanta logo
Vanta
Jul 13, 2026, 12:00 AM
mediumSoftware EngineerOnsiteML System Design
4
0

Review and Debug an AI Chatbot

Review the design of an AI chatbot and propose improvements. Then explain how you would investigate reports of incorrect, unsafe, slow, or inconsistent responses without assuming every failure comes from the model itself.

Constraints & Assumptions

  • The chatbot uses a language model plus application prompts, retrieval, optional tools, safety controls, and a user-facing service.
  • Conversation data may contain sensitive information.
  • Model calls are probabilistic, expensive, and dependent on external services.
  • Product quality includes task success, safety, latency, reliability, and user trust.

Clarifying Questions to Ask Guidance

  • Who are the users, what tasks should the chatbot complete, and which failures are unacceptable?
  • Does it retrieve documents or call tools, and what authorization boundaries apply?
  • Which models, prompts, indexes, and policies are currently deployed?
  • What traces and user feedback are retained, and under what privacy policy?
  • How are quality, safety, cost, and latency measured today?

Hints

  • Reconstruct one failing request across the entire pipeline.
  • Build an error taxonomy before changing prompts or models.
  • Use a representative evaluation set and controlled comparisons.

What a Strong Answer Covers Guidance

  • Request flow through policy, prompt construction, retrieval, model, tools, post-processing, and presentation.
  • Traceability with versioned configurations, privacy-aware logs, correlation IDs, and replayable fixtures.
  • Error categories such as retrieval miss, stale data, prompt conflict, tool failure, authorization error, model behavior, and UI misrepresentation.
  • Offline and online evaluations, human review, adversarial tests, cohort analysis, and regression gates.
  • Improvements to grounding, tool contracts, uncertainty, escalation, latency, caching, and safety.
  • Staged experiments, rollback, cost controls, incident response, and explicit residual risk.

Follow-up Questions Guidance

  1. How would you determine whether a wrong answer came from retrieval or generation?
  2. What data would you log without retaining sensitive conversation content?
  3. How would you evaluate a prompt change whose average score improves but one safety cohort worsens?
  4. When should the chatbot refuse, ask a clarifying question, or escalate to a human?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More ML System Design•More Vanta•More Software Engineer•Vanta Software Engineer•Vanta ML System Design•Software Engineer ML System Design

Your design canvas — auto-saved

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.