Retrieval or fine-tuning for the policy wiki

L1ScreenConcept6 minScreenML breadth

RolesLLM Product EngineeringCustomer AI DeploymentDeveloper Experience and Education

The question

A product team wants an assistant that answers questions about the internal policy wiki. One engineer proposes to tune the model on the wiki pages. Another proposes to search the pages at question time and paste the matches into the prompt. Which do you pick, and in which case would you still tune the model?

Answer it first, aloud or on paper. Then open the answer.

The answer

Show short answer

Pick retrieval for knowledge. The model never changes, the document store updates in minutes, and you can show the passages behind each answer. Tuning fits when you need a style, a tone or a reasoning pattern that a prompt cannot reach, not when you need facts.

Show full answer

Why retrieval wins on facts

The lesson lines the two up on five concerns:

ConcernTuned modelRetrieval
Costa training run costs from $1,000 to more than $100,000a query costs $0.01 to $0.10 for the embedding and the model call
Freshnessstale until the next training runre-index the changed page and the next query sees it
Auditno way to trace a fact to a pagethe retrieved passages are visible and can be returned
Groundingthe model still invents facts freelythe prompt tells the model to answer only from the passages
Privacythe pages are baked into the weightsthe pages stay in your own store

Tuning changes the weights for good. Retrieval changes the context for one request. For facts, a temporary context is what you want.

The one case for tuning

When the goal is how the model writes or reasons, and prompting does not get there, tuning is the right tool. A fixed voice, a house format or a reasoning habit lives in the weights better than in a long instruction.

The shape of the system

Retrieval runs in two phases. The index phase chunks each page, embeds each chunk and stores the vectors with the text. The query phase embeds the question, finds the top k chunks, builds a prompt from them and calls the model. The lesson budgets k at 5 to 10 chunks and 2,500 to 5,000 tokens of retrieved text per query.

Follow-ups

  1. L1ScreenA policy page changes. What happens in each approach?

    Show expected answer

    with retrieval you re-index that page and the next answer uses the new text; with a tuned model the old fact stays until you train again.

  2. L2WorkingA legal reviewer asks which page an answer came from. Which approach can show it?

    Show expected answer

    retrieval, because the passages that went into the prompt are known and can be returned with the answer.

  3. L2WorkingWhy is the privacy story different?

    Show expected answer

    with retrieval the pages stay in your store and only the matched chunks go to the model for one call; with tuning the content is inside the weights of the model you deploy.

  4. L3SeniorThe answer is wrong even though the right passage is in the store. Which stage do you check first?

    Show expected answer

    retrieval, with recall at k, because the model cannot use a passage that the search did not return.

Wrong answers

Show the wrong answers that interviewers hear
  • “Tune the model, because then it knows the documents.”

    The weights hold a copy that goes stale, and nothing in the output says which page a fact came from.

  • “Retrieval is always better.”

    A fixed style, a tone or a reasoning pattern is learned better by tuning than by a prompt.

  • “Skip the search and put the whole wiki in the prompt.”

    The lesson budgets 2,500 to 5,000 tokens of retrieved text per query; a whole wiki does not fit, and unrelated text dilutes the prompt.

Taught in

The lesson RAG compares the two approaches and builds the index and query phases.