Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Cut LLM Cost Without Quality Loss

MediumGenerative AI & LLMs00:00
Practice interviewer
In session
5 left
00:00

Your question is Cut LLM Cost Without Quality Loss. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Context

BrightDesk runs an AI assistant that drafts replies for customer-support agents using help-center articles, policy docs, and recent ticket history. Leadership wants to reduce LLM spend materially because usage has grown faster than expected, but support quality cannot regress.

Constraints

  • Current volume: 1.2M draft generations/month
  • Current average cost: $0.018 per request
  • Target: reduce total LLM cost by at least 50%
  • p95 latency must stay under 1,800ms
  • Hallucination rate must remain below 2.5% on a labeled support set
  • Prompt-injection success rate must be below 1% on adversarial tests
  • Escalation-to-human rate cannot worsen by more than 1 percentage point after launch

Available Resources

  • 80K historical support tickets with agent-written final responses
  • 6K help-center and policy documents, already permission-scoped
  • Existing baseline: a single large model call with a long prompt containing ticket text, account metadata, and top-10 retrieved docs
  • Access to one large model, one mid-tier model, and one small model from an approved provider
  • Existing evaluation assets: 800 labeled prompts with rubric scores for correctness, groundedness, tone, and policy compliance

Task

  1. Propose a cost-reduction plan for the drafting system. Be specific about what changed: prompt compression, retrieval changes, model routing, caching, structured outputs, or a smaller model for some requests.
  2. Define an evaluation-first rollout plan. Specify offline and online metrics, acceptance thresholds, and how you would prove quality was not harmed.
  3. Design the prompt and serving architecture, including how you keep hallucination and prompt injection risk low while shrinking token usage.
  4. Estimate cost and latency before vs. after your changes, including assumptions about token counts, routing percentages, and monthly volume.
  5. Identify the main failure modes of your optimization plan and how you would detect and mitigate them in production.