KatInterview

Choose between fine-tuning and RAG for a knowledge update

Machine LearningModel answer
EasyModel answerMachine Learningmachine learningLLMfine-tuning

Last updated

Decide whether to fine-tune an LLM or add a RAG pipeline when a product's underlying knowledge base changes frequently.

Scenario

You work at a company that built an internal assistant powered by a large language model. The assistant answers employee questions about company policies, benefits, and procedures. The HR team updates these documents roughly every two weeks, and employees expect answers to always reflect the latest version.

Your manager asks: "Should we fine-tune the LLM on our policy documents, or should we build a retrieval-augmented generation (RAG) pipeline?"

What is expected

Explain:

  1. How each approach works at a high level.
  2. The key trade-offs between them for this specific use case.
  3. Which approach you recommend and why.
  4. Any caveats or situations where your recommendation might change.

You do not need to write code. Focus on clear reasoning with concrete justifications.

Hints

Hint 1

Think about what fine-tuning actually teaches the model versus what RAG does at inference time — are they solving the same problem?

Hint 2

Consider the cost and effort of re-running fine-tuning every two weeks versus updating a document index.

Hint 3

Ask yourself: if an employee asks about a policy that was changed yesterday, which approach would give the correct answer?