Judging Whether the Whole Thing Worked
Last timeText From Outside Is Not an Instruction
A tool using system has to be judged on finished tasks, not on individual replies, and every failure has to be attributed to the model, a tool or the loop you wrote.
The unit is a finished task
A system that answers questions is evaluated on answers. A system that does things has to be evaluated on whether the things got done, which is a different kind of test.
A test case for a tool using system has three parts. A starting situation, usually a small database in a known state. A request, in the words somebody would actually use. And a checkable final state: this order is refunded for this amount, this record exists with these fields, this message was sent to this address and no other.
The final state is what makes it a test. A transcript cannot be graded reliably, because a reply that says the refund has been issued is produced just as readily when it has not.
| can be checked mechanically | catches a wrong amount | catches a double action | catches a confident false report | |
|---|---|---|---|---|
| grade the final reply | 0 | 0 | 0 | 0 |
| grade the final state of the data | 1 | 1 | 1 | 1 |
| grade both | 1 | 1 | 1 | 1 |
How per step quality compounds
The arithmetic here is simple and the consequence is not intuitive.
If each step of a task succeeds independently with some chance, the task succeeds only if every step does, so the task success rate is the step rate raised to the number of steps. Ninety seven per cent per step sounds like a system working well. Over twelve steps it is sixty nine per cent of tasks finishing, which is one task in three failing.
Attributing each failure
Three causes, three completely different repairs.
A model failure is a wrong decision given correct information: the wrong tool chosen, a sensible result ignored, a conclusion that does not follow from what came back, an answer given when more work was needed. The repair is a clearer tool description, a changed instruction, or a different model.
A tool failure is a tool returning something wrong or nothing at all when it should have worked. The repair is in the tool, and sometimes in somebody else service.
A loop failure is everything in between: a step limit cutting a task off, a budget exhausted by a task that was going fine, an error returned in a form the model could not act on, a validation rule rejecting something legitimate, two calls run at once that should not have been, a result truncated without saying so.
The lesson stops here
2 more paragraphs to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents