The way you talk to an LLM dramatically affects what you get back.
Skilled use of LLMs has come to be called prompt engineering or prompting.
You don't need to be a "prompt engineer" to use AI well, but a few principles go a long way.
Principle 1: Be Specific
LLMs do better with specific requests than vague ones.
❌ "Write something about marketing."
✅ "Write a 200-word LinkedIn post for a small bakery announcing a new sourdough class, with a friendly tone and a call to action to sign up."
Principle 2: Provide Context
Tell the model who you are, who the audience is, what the goal is.
Models work much better when they know the situation.
"I'm a high school biology teacher writing for my 10th-grade class. Explain mitochondria in a way that connects to something they encounter daily, in about 150 words."
Principle 3: Specify the Format
If you want a numbered list, ask for one.
If you want a table, say so.
If you want a particular tone, name it.
Principle 4: Show Examples (Few-Shot Prompting)
If you want a specific style, showing 1–3 examples works wonders.
This is called few-shot prompting.
"Rewrite each sentence in the voice of a pirate.
Example:
Original: 'I'm going to the store.'
Pirate: 'Arrr, I be sailin' for the market, matey!'Now do this one:
Original: 'The meeting starts at 3pm.'
Pirate: ..."
Principle 5: Ask the Model to Think Step-by-Step
For complex problems, prompting a model to reason out loud has often improved results — sometimes dramatically.
The phrase "Let's think step by step" became famous in the field for this reason.
It still helps with models that do not reason on their own, such as some older or open models.
Current reasoning models do this internally by default.
OpenAI's guidance for them says that telling a reasoning model to "think step by step" may not help, and can sometimes make results worse.
With those models, spend your words on the goal, the context and the constraints instead.
We cover reasoning models in lesson 4.1.
Principle 6: Iterate
A first response is rarely perfect.
Give feedback, ask for revisions, point out what's off.
Treat it like a collaboration with a capable but sometimes off-target assistant.
Principle 7: Use "System Prompts" for Persistent Instructions
If you want the model to consistently behave a certain way across a conversation, set a system prompt up front: "You are a careful editor who flags grammar issues and offers concise suggestions.
Keep responses under 150 words." Many AI products let you set this.
What Prompting Cannot Do
Prompting can't fix fundamental limits of the model.
If a fact isn't in the model's training data and isn't in your prompt, the model can't know it.
If a model is genuinely bad at math, prompting won't make it suddenly good at math (though giving it access to a calculator tool will — see Module 3).
💡 Module 1 Recap
- AI is an umbrella; ML is a subset that learns from data; deep learning uses neural networks; generative AI generates new content; LLMs are generative AI specialized for text.
- LLMs work by repeatedly predicting the next token, based on patterns learned from huge amounts of text.
- Tokens are pieces of words; embeddings are number-vectors that capture meaning; both are key mechanisms inside an LLM.
- Training has three stages: pre-training (learn language), fine-tuning (learn to be helpful), and RLHF (learn to align with human preferences).
- Transformers are the architecture behind modern LLMs; attention is their key innovation.
- Context windows limit how much text an LLM can handle at once.
- LLMs hallucinate — they generate plausible text, not guaranteed-true text.
- Prompting well means being specific, providing context, and iterating.