Step 1: What it knows
Brightline Books wants an assistant on its website to answer the questions customers ask all day: opening hours, delivery, returns, loyalty points. You will build it from two text files. There is no code:
system.md: who the assistant is and how it behaves;knowledge.md: the facts it may use. The harness adds it to the prompt with every question.
handbook.md is the staff handbook, exported from the intranet as it is. Most of it is useful. Some of
it must never reach a customer: a staff discount code, supplier terms, the staff Wi-Fi password, a
contract under negotiation. Anything in knowledge.md can end up in an answer to anyone, so the safest
place for a secret is outside the file.
Do this:
- Write
knowledge.md: the customer-facing facts fromhandbook.md, in short plain lines grouped under headings. Leave out section 8 and internal notes. - Keep it under 380 words. The whole file is sent with every question, so every word is paid for on every question.
- Click Run. The five questions for this step are ordinary customer questions. A judge model checks
each reply against what a correct answer must say.
python3 run_tests.py ask "..."asks your own question.
The check needs no staff-only information in the file, 380 words at most, and at least 4 of the 5 answers right.
knowledge.md, the file you edit3 lines
<!-- knowledge.md: the facts the assistant may use. It is sent with every question, so keep it short
(380 words at most) and customer-facing only. -->
<!-- TODO (Step 1): the customer-facing facts from handbook.md. Leave out anything staff-only. -->assistant.pyhandbook.mdquestions.jsonrun_tests.pysystem.md