Section 22 of 24 · 12 lessons

Prompting, Evaluation and Iteration

Botie answers the first maintenance question correctly, then gets the next one wrong. Before rewriting the prompt, we need to understand what happened. Choose useful examples, follow the tool calls through their traces, and build tests that expose the failure. We will use Langfuse and other evaluation tools, compare candidate revisions, and carry a repair through a fresh shift without losing the behaviours that already worked.

0 of 12 finished

Teaching the Task Through Examples

An example can accidentally teach Botie to recommend an inspection every time. Choose demonstrations that show why the right response changes with the evidence.

Seeing What Happened

Botie returned the wrong answer, but which step went wrong? Record the work as it happens so we can distinguish a missing manual from a failed tool or an unsupported answer.

Building Evaluation Cases

Keep the request and its expected outcome together. The next prompt revision needs cases that can reveal a mistake, including cases we did not use to design it.

Testing the Program Around the Model

A model can vary its wording while our code keeps passing the wrong asset to a tool. Separate reproducible application checks from evaluations of model behaviour.

Reviewing Answer Quality

Some requirements have exact checks. Others need judgement. Define what the reviewer should look for and test whether those judgements are dependable.

Finding a Change Worth Making

The answer is wrong. Was the right evidence available? Trace the failure to a specific question, then change one part and inspect what improves or regresses.

Deciding Whether to Release

The candidate looks promising on our examples. Check the remaining requirements before allowing it to handle real requests.

Testing and Operating the Boundaries

A guardrail that blocks every request would also stop useful work. Test ordinary jobs alongside attempts to misuse the system, then practise responding when a released version crosses a boundary.

A Repair From Failure to Fresh Evidence

A stale manual trips up the assistant. Carry that failure through a tool repair, preserve useful behaviour and test the candidate on a new shift.