Skip to content

< 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.

Start: The code in a replySign in to run steps and keep your progress.
  1. Part 01 · 3 steps

    The benchmark

    Read a code out of a reply, route one ticket, measure a whole prompt.

    1. 01The code in a replynext
    2. 02Route one ticket
    3. 03Measure a prompt
  2. Part 02 · 4 steps

    What goes in

    The codes alone, then the legend, then the rules. Each one measured.

    1. 04The codes alone
    2. 05The legend
    3. 06Put the legend in
    4. 07Put the rules in
  3. Part 03 · 5 steps

    Only what applies

    Jev picks the rules and the examples that fit this ticket.

    1. 08Ask which rules apply
    2. 09Only the rules that apply
    3. 10Put only those in
    4. 11The examples that fit
    5. 12Put the examples in
  4. Part 04 · 3 steps

    Where it goes

    The part that never changes goes first, so a cache can reuse it.

    1. 13Stable first, variable last
    2. 14How much a cache can reuse
    3. 15Lay it out for the cache
  5. Part 05 · 1 step

    Room to think

    A line of reasoning before the code, measured like everything else.

    1. 16Room to think
  6. Part 06 · 4 steps

    The ladder

    Every stage in one table, and the verdict on which earned their tokens.

    1. 17The stages
    2. 18Climb it
    3. 19Which stages earned their tokens
    4. 20Report