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

Choose Fine-Tuning vs RAG

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

Your question is Choose Fine-Tuning vs RAG. 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

Scenario

You are improving a finance-domain assistant that helps operations teams draft responses, summarize account notes, and answer questions about policies and workflows. The current version uses retrieval over internal SOPs, underwriting guidelines, and historical support resolutions, but users still report inconsistent tone, weak handling of repetitive classification-style tasks, and occasional unsupported answers. Traffic is expected to reach 20K requests per day, with a mix of knowledge-grounded questions and high-volume templated tasks. You need to decide whether to keep investing in retrieval, fine-tune a model, or use a hybrid approach.

Constraints

  • p95 latency must stay under 1,500ms
  • Inference cost must stay under $12K/month at target volume
  • Unsupported factual claims must remain below 2% on a golden set
  • The system must resist prompt injection from retrieved content and user input
  • Responses involving customer or financial data must avoid leaking sensitive information

Available Resources

  • Internal policy documents, SOPs, and resolved case histories
  • 8,000 labeled examples from prior analyst workflows and customer communications
  • Access to an approved GPT-4-class model, a cheaper small model, and embeddings API
  • A vector store with hybrid retrieval support
  • Budget for one week of expert labeling to build evaluation sets

Question

How would you decide when fine-tuning is the right choice instead of retrieval-augmented generation for this assistant, and what system would you ship first given these constraints?