Loading topic
LABELS dictionary and build_prompt function from that chapter.2 min readclassify function that returns a (label, confidence) pair, as built in earlier chapters. Here you turn that prediction into an action: sending each message to the right h3 min readclassify and route functions from the earlier chapters. Here you will decide when a rule should handle an item, when the LLM should, and how to chain the two.3 min readclassify function from the validation chapter. You will score the classifier against examples whose correct labels you already know.3 min readclassify and evaluate functions from the earlier chapters. Accuracy tells you how often the classifier is wrong. It does not tell you why. Error analysis answers the why, a2 min readclassify function from the earlier chapters and know that LLM APIs bill per token. It shows where the cost and delay of a classifier come from and how to reduce both without losing accuracy.2 min readbuild_prompt, classify, and route functions from those chapters. Here you will see how a support message can attack the classifier, and which defenses limit the3 min readclassify, route, and evaluate functions from earlier chapters, and that you know accuracy and a confusion matrix. A router that scored well on your labeled set can still get worse after launch. Monitoring is how you find out.2 min read