Prompt it, give it facts, or retrain it
Pick prompting, retrieval or fine-tuning for an AI feature, say why in two sentences, and explain the cost, speed and freshness trade-offs.
New6 min readFree lessonWritten for this track.
Read what Ava says
There are a few main ways to make a smart feature work: write a better prompt, let the model look facts up, or retrain it. This lesson shows you how to pick one for a feature and explain your choice in a short, clear way.
Say you want a model to do one job inside your product. You have three main ways to make it good at that job. You can tell it what to do. You can hand it the facts it needs. Or you can train it more, so the skill sits inside the model.
Interviewers care about this choice. Candidates report follow-up questions on prompting and on where the model gets its facts. A clear pick with a clear reason shows you know how these products are built.
This lesson gives you a way to choose in under a minute. How large language models work, for PMs explains each idea in more depth. Here you learn to pick one and defend it.
The three options in plain words
A large language model (LLM) is a program that reads text and writes text. We will use one example all the way through. Pantry Pal is a made-up grocery app. It wants a helper that answers shopper questions.
1. Prompting. A prompt is the instruction you send with each request. "You help grocery shoppers. Answer in two short sentences. Be friendly." Change the words, and the model acts differently today. There is no training and no new data.
2. Retrieval (RAG). RAG stands for retrieval-augmented generation. In plain words: look it up, then answer. Before the model answers, your system searches your own content. It finds the few passages that fit the question and adds them to the prompt. The model answers from those passages. Pantry Pal could look up today's prices and what is in stock.
3. Fine-tuning. Fine-tuning means training a model more on many examples of the work you want. Say you collect thousands of good answers in Pantry Pal's own style. You train on them. Now the style is built in, so you don't need to explain it in every request.
The short version: prompting tells the model what to do. Retrieval gives it facts. Fine-tuning changes its habits.
Key idea Retrieval fixes missing facts. Fine-tuning fixes habits. Prompting is where you start, because it is the fastest to try and to change.
Three questions that pick the tool
Ask these in order. Stop at the first strong "yes".
- Can clear instructions and a few examples do it? Then prompting is enough. Try it first, every time.
- Does the answer need facts the model doesn't have? Your prices, your rules, a user's own files, or news from this week. Then add retrieval. The model learned from older public text. It has never seen your stock list.
- Do you need the same behavior, at huge volume, that prompts can't reach? A strict format, a narrow task, or a small, cheap model doing one job well. Then look at fine-tuning.
Notice what is missing from question 3: facts. Fine-tuning is a poor way to teach facts that change. Each change means training again. Retrieval picks up a change as soon as you update the documents.
The decision table
| What you see | Pick | Why |
|---|---|---|
| The model can do the job, but answers are too long or the wrong tone | Prompting | Change the words and test again the same day |
| Answers must use your own facts or fresh facts | Retrieval | Update the documents, and the answers change |
| Users must be able to check the source | Retrieval | You know which passage each answer came from |
| A narrow task runs all day, and prompts still miss the format | Fine-tuning | The habit lives in the model, so prompts get shorter |
| A small, fast model must match a big one on one task | Fine-tuning | Training on good examples can teach a small model one job |
| You need a house style and fresh facts | Fine-tuning plus retrieval | One fixes the habit, the other brings the facts |
The tools are not rivals. You can stack them: a fine-tuned model, fed by retrieval, steered by a prompt.
Cost, speed and freshness
Each tool pulls on three things. Candidates report follow-up questions on cost and wait time.
- Cost. You pay for every token the model reads and writes. Tokens are bits of text, often parts of words. More text means a bigger bill.
- Speed. The wait between a question and its answer. The tech word for this wait is latency.
- Freshness. How fast the product picks up new facts.
| Prompting | Retrieval | Fine-tuning | |
|---|---|---|---|
| Cost to set up | Very low | Medium: you build search over your content | High: you gather good examples and pay for training |
| Cost per answer | Grows with long instructions | Higher: found passages add tokens to every request | Can drop: shorter prompts, sometimes a smaller model |
| Speed per answer | Fast | A little slower: the search step runs first | Fast, and faster with a smaller model |
| Time to make a change | Minutes | Update the documents | Gather new examples and train again |
| How fresh | Only what you write in | As fresh as your documents | Stuck at training time until you train again |
Two traps hide in this table. First, retrieval is only as good as its search. If search finds the wrong passage, the model writes a smooth answer from the wrong facts. Second, fine-tuning has an upkeep cost. A fine-tuned model is built on one starting model. Move to a newer model, and you train again.
To work out what each choice costs per answer, read the lesson on cost and latency.
Say it in two sentences
Interviewers want a pick, a reason and a sign that would change your mind. Use this shape:
"I'd use [tool], because [the main need]. I'd add [next tool] if [a sign you can measure]."
Here are three Pantry Pal features, answered this way:
- Recipe ideas from what's in your cart. "I'd start with prompting, because the model already knows cooking, and the job is mostly tone and format. I'd add retrieval if shoppers get recipes with items we don't sell."
- "Is this in stock at my store?" "I'd use retrieval over our live stock data, because the answer changes every hour and the model can't know it. A prompt alone would invent answers."
- Tagging every new product review by topic, all day long. "I'd start with prompting on a sample and check the tags by hand. If the volume makes the big model too slow or too costly, I'd fine-tune a small model on those checked tags."
Each answer names the need, picks a tool and says what would change the plan.
Here is a sample follow-up:
Interviewer Why not just fine-tune the model on your help pages?
You Our help pages change every week. A fine-tuned model would keep last month's answers until we trained it again. With retrieval, we fix a page and the next answer uses it. Retrieval also lets us show the source, so a shopper can check it.
Weak and strong answers
| Weak | Strong |
|---|---|
| Says "we'll fine-tune on our data" as step one | Starts with prompting and says what would justify more |
| Fine-tunes to teach this week's prices | Uses retrieval for facts that change |
| Says "we'll use RAG" and stops there | Adds that the answer is only as good as what search finds |
| Leaves out cost and wait time | Says where each tool adds cost or delay for this user |
| Picks one tool forever | Names the sign that would make them switch |
Try it Pick an AI feature in an app you use. Decide which of the three tools it most likely uses. Then write your two-sentence answer: the tool, the reason, and the sign that would make you add the next one.
Sources
Recap
- Prompting tells the model what to do. Retrieval gives it facts. Fine-tuning changes its habits.
- Start with prompting. Add retrieval when answers need your own facts or fresh facts.
- Look at fine-tuning for a narrow task at huge volume, a strict format, or a smaller, cheaper model.
- Weigh cost, speed and freshness for each tool, and say which matters most for this user.
- Answer in two sentences: the tool, the reason, and the sign that would make you change.