Model answers for 4 GenAI questions
Typical round: fundamentals, applied design, a past project deep dive
Q: When would you use RAG instead of fine-tuning? A: Use RAG when the model needs fresh or private knowledge that changes often, and you want citations. Use fine-tuning to change behaviour, style or format consistently, or to teach a narrow task. Many production systems combine both.
Q: What causes hallucinations and how do you reduce them? A: The model predicts likely text, not verified facts, so it can produce confident errors. Reduce them by grounding answers in retrieved sources, asking it to cite and abstain when unsure, constraining output formats, and evaluating with a labelled test set.
Q: What is a token and why does it matter? A: A token is a chunk of text, often part of a word, that the model processes. Context limits, latency and cost are all measured in tokens, so prompt length and retrieved context have to be budgeted.
Q: How do you evaluate an LLM feature? A: Build a test set of real inputs with expected outputs, score with automatic checks plus an LLM or human grader for quality, track regressions on every prompt or model change, and monitor production feedback.