Build a model client and prompt-testing harness. Run ten fixed extraction cases through a local model and compare two prompt versions; test transport failures with fixtures.
Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.
// Independent work
W05-LAB
Week 5: A model client and prompt-testing harness
Run ten fixed extraction cases through a local model and compare two prompt versions; test transport failures with fixtures.
Extend the guided artifact rather than start a second project. Record actual model outputs separately from deterministic transport checks; validate structure and source correctness.
What to produce
A model client and prompt-testing harness
Setup commands, data or generation procedure, versions, and recorded outputs
Acceptance results and a precise limitation
Check your work
Record actual model outputs separately from deterministic transport checks; validate structure and source correctness.
Each claimed execution is supported by actual saved output.
Fixture results and real model results are identified separately.
Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.
// Retrieve before you reread
Week 5 knowledge check
Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.