AiTeky Original Interactive Learning & Practice Intermediate
Prompt engineering: asking a language model so that you can trust the answer
Treat prompts as code you can test. Build prompt templates, get answers in a shape your program can read, choose and order examples, ask for reasoning and vote on it, then compare two prompt versions with numbers and count what each costs.
A prompt is the text you give a language model. Anyone can write one, and a prompt that works on three examples in a chat window feels finished. In a product it is not finished: it runs on thousands of tickets, it must give an answer your program can read, and the next person who edits one sentence can quietly make it worse. Prompt engineering is the work of making a prompt behave, and of proving that it behaves.
This course follows one small model, Qwen2.5-1.5B-Instruct, and one realistic job: sorting support tickets for a food-delivery company. Every number you see in the lessons comes from real runs of that model, recorded on 100 tickets and stored in the datasets, so you can analyse them in the browser without waiting for a model. The Colab boxes contain the code that produced them, if you want to run it yourself; your numbers will differ a little, and that is part of the lesson.
You begin with the prompt as a template: parts, variables and a count of tokens. Then you make the answer readable by a program (JSON, checks, retries). You compare ways of choosing and ordering examples, and ask for step-by-step reasoning and take a vote across several tries. The industry lessons compare two versions of a prompt with a proper test, with a gate that decides whether a change may ship, and then put a price on each version: tokens, time and cost per correct answer.
You need the Python course; the Generative AI course is the best companion, because it explains how a model writes and what few-shot prompting is.
- Learn lessons explain one idea at a time and let you analyse real recorded model outputs.
- Industry ready lessons build a prompt test and a cost decision. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 40 min Free sample π AiTeky Pass The prompt is a template Split a prompt into its parts, build it from a template with variables, protect it from text that looks like instructions, and count tokens, so that a prompt becomes something you can read, change and test like code.
- 02 45 min π AiTeky Pass Answers a program can read Ask a real model for JSON six different ways, count how many answers a program can parse and how many are valid, see why code fences, invented team names and a field that is always "high" break a pipeline, and build a reader that checks, repairs a little, and refuses the rest.
- 03 45 min π AiTeky Pass Choosing and ordering examples Compare six prompts on the same 100 recorded tickets, measure how much a score can wobble by luck, test pairs of prompts properly, and find out that the "most similar examples" idea does worse than random examples, and worse than not using the model at all.
- 04 45 min π AiTeky Pass Asking for reasoning, and voting Test "just give the number" against "write your steps" on 24 word problems with known answers, see why a token limit and a long style cut the reasoning off, check every line of arithmetic the model wrote with code, vote across five tries, and learn when agreement tells you to trust an answer.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 45 min π AiTeky Pass On the job: testing a prompt change before it ships Fingerprint each prompt version, keep a golden set apart from the examples, write a release gate with a paired test, a per-team check, an unclear-answer limit and a time limit, run it on real recorded candidates, and see which tempting changes it blocks.
- 06 45 min π AiTeky Pass On the job: what a prompt really costs Build a cost sheet for the six recorded prompts with assumed prices, find that the cost of mistakes is hundreds of times the cost of the model, see why fixed examples can be cached and retrieved examples cannot, size the machines for a peak hour, and compare with a prompt-free classifier.

