Step 1: Sort 40 labelled rows
Brightline Books' September customer survey came back with 500 free-text comments. The customer
experience manager wants every comment in one of eight categories by Friday, with an honest figure for
how many are wrong. Nobody has time to read 500 rows, so a model will sort them and you will measure it.
There is no code to write: you edit prompt.md and settings.yaml.
Open categories.md for the eight categories. dev.csv holds 40 comments from August with the right
category already filled in, so you can measure the prompt before you trust it.
The harness sends your prompt, then the comments numbered 1, 2, 3 ..., and reads your reply one line at a
time looking for number: category. A reply the harness cannot read counts as a mistake. A spreadsheet
needs a label in every row, so the reply format matters as much as the categories.
Do this in prompt.md:
- Replace the one-line prompt. List the eight categories with what each one covers, using the exact
words from
categories.md. - Say exactly how to reply: one line per comment, in order, the number, a colon and the category, nothing else. Show two example lines.
- Click Run. It classifies the 40 dev rows and prints each mistake.
The check needs at least 32 of the 40 rows right.
prompt.md, the file you edit6 lines
<!-- prompt.md: the instructions the model gets. The harness adds the comments after it, numbered
1, 2, 3 ..., and reads your reply one line at a time, looking for number: category.
Notes between these marks are removed before sending. -->
<!-- TODO (Step 1): list the eight categories from categories.md, with what each one covers, and say
exactly how to reply: one line per comment, the number, a colon, the category. -->
Sort these customer comments into categories.categories.mdclassify.pydev.csvrun.pysettings.yamlsurvey.csv