Prompting

Prompt Engineering Techniques With Real Examples

Give the model context, add two or three examples, ask it to think step by step, set a role in the system prompt, and ask it to rewrite your prompt.

19 min · 2026-01-31 · Watch on YouTube

The main idea

A prompt like "write me a poem" leaves the model guessing. In the video I use Anthropic's prompt engineering guide and show how to improve it. Treat the model like a brilliant but very new employee who needs explicit instructions.

First, add context: what the result is for, who the audience is and what success looks like. My poem became a short, modern intro for a comedy club. Second, add examples. Giving none is zero-shot. Giving three to five good ones is multi-shot, and the model copies their format and style. Third, for complex tasks, say "think step by step" to get chain of thought. XML tags can mark where an example starts and ends.

With an API, the system prompt can give the model a role, such as a seasoned data scientist. Meta-prompting means asking the model to rewrite your prompt, then pasting the better prompt into a new session. Last, tell the model not to hallucinate and to use only the facts you provide.

Key points

Chapters

  1. 2:33Give context and be specific
  2. 6:11Examples: few-shot prompting
  3. 9:44Chain of thought and XML tags
  4. 12:38System prompts and roles
  5. 14:44Meta-prompting
  6. 16:46Guarding against hallucination
Free · by emailGet the next AI tip by emailOne short tip like this one when a new one is ready. Free. Unsubscribe any time.

More CloudYeti videos