< all projects20 steps · medium · Rebuild
Make the prompt earn its tokens
You will have built the prompt for one task the way prompts should be built: one piece at a time, each piece measured. The task is routing support tickets to a store's internal queue codes, with a benchmark of forty labelled tickets. 3 functions make the yardstick (read a code out of a reply, route a ticket, score a whole prompt on accuracy and tokens); 4 put the codes, the legend and the rules in and measure each; 5 have Jev pick only the rules and examples that apply to this ticket; 3 lay the prompt out so a cache can reuse it, and measure how much; 1 add room to think; and 4 climb the whole ladder and say which stages earned their tokens. The model is real, so the numbers are real: the codes alone score about chance, the legend brings most of the accuracy for a hundred tokens, the rules bring the rest for three hundred more, Jev's three rules keep it for a third less, and on this task the examples and the reasoning cost tokens and buy nothing. The last step writes that verdict as code. When every step has passed, the files assemble and you can run the whole ladder on a sample of tickets, live, and route any ticket you type under every stage.
Part 01 · 3 steps
The benchmark
Read a code out of a reply, route one ticket, measure a whole prompt.
Part 02 · 4 steps
What goes in
The codes alone, then the legend, then the rules. Each one measured.
Part 03 · 5 steps
Only what applies
Jev picks the rules and the examples that fit this ticket.
Part 04 · 3 steps
Where it goes
The part that never changes goes first, so a cache can reuse it.
Part 05 · 1 step
Room to think
A line of reasoning before the code, measured like everything else.
Part 06 · 4 steps
The ladder
Every stage in one table, and the verdict on which earned their tokens.