Session 2 · Prompting + Evaluation · TCE · 50 min · same pairs · Same rhythm as Lab 1 (checkpoints → show instructor; stuck >5 min → neighbour → instructor)
Runs entirely in your browser (Google Colab). Any laptop or lab PC works — nothing to install, no GPU, no payment. See
ZERO-SETUP.
You need: your 10-question file from Lab 1 Part E. Lost it? Rewrite it now — 5 minutes, go.
Notebook Cell 2 starts with write about tce. Improve it five times — one upgrade per run, in this order: task → role+audience → context facts → format+negatives → “only stated facts” constraint. After each run, fill one row of the table: what changed, why the output got better.
✓ Checkpoint 1: five documented rows. (The documentation is the deliverable — “I changed stuff and it got better” doesn’t count. Three iterations documented well beats five documented badly.)
my_tests. Keep expected short — the key fact, not a sentence (“rahman”, not “A. R. Rahman composed it”).✓ Checkpoint 2: score shown + one-line diagnosis per failure.
Design PROMPT_B to beat PROMPT_A on your test set. Ideas: role, “answer with the specific fact”, “say ‘I am not sure’ instead of guessing”, format constraints. Cell 5 fights on the first 5 questions (DEV = my_tests[:5]) — iterate there. When B is final, run Cell 5b once to confirm the winner on all 10 (20 calls; you have another lab today).
✓ Checkpoint 3: A vs B percentages with the number of questions + your most interesting failure, explained to me in one sentence.
judge_pair() compares A vs B, then B vs A. Every disagreement is a verdict decided by order, not content — count them.Keep the notebook open — the eval harness returns in Session 6 to grade your capstone. A domain eval set for a subject you know + a documented prompt comparison is already a defensible final-year-project scope. Before you close: File → Save a copy in Drive again (your test set only exists in this notebook), and paste my_tests into a text file too. Have 1–2 photos on your phone for Session 3 (anything: a receipt, your notes page, the canteen menu board).