🎓 A1Learner
🔍
0 of 50 lessons completed

Prompt Engineering: Capstone, Part 2

Measurement is scoring the desk against a checklist. Twenty customer messages run through the desk, and each reply is scored by hand.

The checklist

Three checks score every reply, and each check is a yes or a no. One point per yes, three points in all.

Score this ShopStack support reply against three checks. Check one, correct answer: does the reply use only the ShopStack facts and answer the question. Check two, correct tone: is the reply polite and plain. Check three, no invention: does the reply invent no product, price, policy, or promise. Reply with one line per check, yes or no, and one line giving the score out of three. Reply to score: [MODEL REPLY]

The twenty messages

The twenty messages are the course messages. 1. Where is my order 1042? 2. I ordered the Hearthstone Desk Lamp yesterday and it still says processing. When will it ship? 3. My mug arrived chipped. What do I do? 4. Can I return the cushion? I bought the wrong colour. 5. Do you ship to Canada? 6. What is the discount code for first orders? 7. How long does a refund take? 8. Is the tote bag big enough for a 13-inch laptop? 9. Can I change the delivery address on order 1043? 10. I want a refund for order 1044 but I already used the tote. 11. Write a product description for the Ember Pour-Over Set. 12. Summarise these three reviews of the Aurora Mug in two sentences. 13. Extract the order number and product from this message: Hi, I got the wrong lamp, my order was 1043. 14. Translate this reply into French. 15. The lamp flickers when I touch the dimmer. Is it broken? 16. Can I use two discount codes on one order? 17. How do I track my delivery? 18. What is the difference between the Aurora Mug and the Ember Set? 19. I never got a shipping email for order 1042. 20. Please cancel order 1043. Each message is scored the same way, and no score is written before its run.

You are a support agent for ShopStack. Answer this customer message using only the ShopStack facts. Customer message: Where is my order 1042?

Example

Score this ShopStack support reply against three checks. Check one, correct answer. Check two, correct tone. Check three, no invention. Reply with one line per check, yes or no, and one line giving the score out of three. Reply to score: [MODEL REPLY TO MESSAGE 3, MY MUG ARRIVED CHIPPED]

Key points

  • Measurement: scoring each reply against a checklist, by hand, message by message.
  • The checklist has three checks, a correct answer, a correct tone, and no invention.
  • A correct answer uses the ShopStack facts, and a correct tone is polite and plain.
  • No invention means no made-up product, price, policy, or promise.
  • The twenty messages are the course messages, from order tracking to cancellation.

This example scores the desk reply to the damaged mug message. The merger fills in the real reply and the real score from the run, and no score is invented here.

Note

Scores are measured, not guessed. A score the desk has not earned is not written down.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

What are the three checks on the scoring checklist?