Choose Between Fine-Tuning and RAG for Client Chatbot
Company: Amazon
Role: Data Scientist
Category: Machine Learning
Difficulty: hard
Interview Round: Technical Screen
##### Scenario
Case study: choosing between fine-tuning and RAG for a client chatbot and improving retrieval quality.
##### Question
When building an LLM application for a client, how would you decide between fine-tuning and Retrieval-Augmented Generation? List and compare fine-tuning methods such as full tuning, instruction tuning, LoRA and embedding fine-tune. Explain LoRA’s mechanism and its inference-time advantages. If retrieved documents show low relevance, how would you improve retrieval quality? The embedding model is the bottleneck; how would you fine-tune it? What data and training procedure are required? How would you architect a chatbot capable of answering questions across multiple knowledge domains?
##### Hints
Compare approaches on cost, data needs, latency; propose iterative retrieval+model tuning and evaluation.
Quick Answer: This interview question evaluates core ML concepts, assumptions, math intuition, training/evaluation trade-offs, and practical failure modes in a realistic interview setting. A strong answer for Choose Between Fine-Tuning and RAG for Client Chatbot states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.