Applied GenAI Curriculum for AI PMs · Core Sequence
Just enough of each pattern to tell them apart — and combined with Unit 04, a working decision tree for "why this approach and not the alternatives?"
Unit 04 split the world into workflows vs. agents by control flow. This unit cuts a different way — by how you give the model what it's missing. Together they form the decision tree you'll apply to almost every AI feature. The goal here isn't to implement any of these four; it's to differentiate them well enough that when an engineer proposes one, you can ask the single question that exposes whether it's the right call.
All four are ways to close the gap between a general model and your specific task. They differ in what they change and how much they cost.
Adapt via instructions and context — no weight changes. Where you always start.
Retrieve relevant external info per query and feed it in. Gives the model facts it lacks.
Further-train the model on your data. Changes the model's behavior and form.
Let the model plan and use tools in a loop to accomplish multi-step tasks.
Retrieval-augmented generation enhances a model's output by retrieving relevant information from an external memory source — an internal database, a user's past chats, or the internet — and feeding it into the prompt. The shape is two components:
| Retriever | Pulls the information most relevant to the query from external memory. Its two jobs: indexing (processing data so it's fast to fetch later) and querying (fetching what's relevant now). The whole system's quality rides on the retriever. |
| Generator | The model that writes the response using the retrieved information. |
The mental model: RAG constructs context specific to each query instead of stuffing the same context into every call — the foundation-model equivalent of feature engineering. Because it supplies relevant facts, it produces more detailed answers and reduces hallucinations. It also naturally handles per-user data (include a user's data only in that user's queries).
An agent is anything that can perceive its environment and act upon it — defined by its environment and its set of actions. The actions are extended by the tools it can call. On this definition, familiar systems are already agents: a chatbot that can search the web and run code is one; a RAG system is one, with its retrievers and SQL executors as tools. The model is the brain: it processes the task and environmental feedback, plans a sequence of actions, and judges when the task is done — looping reason → act → observe until complete.
Finetuning continues training the model on your data, updating its weights. It's the heaviest lever, and the discipline around it is mostly about restraint.
| Reasons to finetune | Reasons not to |
|---|---|
| Improve quality on a specific task the base model wasn't trained well for (e.g. an uncommon SQL dialect). Reliably produce a structured format. Mitigate bias with curated data. A small finetuned model can beat a much larger general one on its task, and be cheaper/faster to serve. | High up-front and ongoing cost: data, ML talent, serving, and a monitoring/update policy. It can degrade performance on other tasks. Base models improve so fast they may outrun your finetuned model. Most "prompting doesn't work" cases are really unsystematic prompting. |
Once prompting is maxed out, the choice between RAG and finetuning comes down to what kind of failure you're seeing:
Information-based failure → RAG
"RAG is for facts."Outputs are factually wrong or outdated — the model lacks the info (private data) or has stale info. Give it the sources. For up-to-date questions, RAG reliably beats finetuning.
Behavior-based failure → Finetuning
"Finetuning is for form."Outputs are correct but wrong in kind — irrelevant to the task, or in the wrong format (won't compile, wrong structure). Finetune on well-formed examples to fix the behavior.
These aren't mutually exclusive — real systems often combine prompting, RAG, and finetuning. But the facts-vs-form split is the fastest way to sort which lever a problem calls for.
Walk top to bottom; stop at the first "yes." Simpler is better.
1. Can a single well-crafted prompt (with examples) do it?
Yes → Prompting. Don't add complexity you can't justify.
2. Does it fail because it lacks facts (private / current info)?
Yes → RAG. Information-based failure.
3. Does it fail on behavior/format that prompting + examples can't fix?
Yes → Finetuning — but only after systematic prompting. Behavior-based failure.
4. Does the task need multi-step planning and tool use you can't predefine?
Yes → Agent (clear Unit 04's five-point checklist first). No / steps predictable → a workflow.
Each pattern's real depth — retrieval quality, agent failure-mode budgeting, finetuning mechanics — waits in Units 17, 18, and 19, to be pulled in when a live decision demands it.