Loading topic
classify and route functions from the earlier chapters: classify returns a (label, confidence) pair, and route turns that pair into a queue name.6 min readother fallback, a prompt that asks for JSON, and a classify function that validates the reply and returns a (label, confidence) pair. You should also be comfortable with Python diction6 min readclassify and route functions from the previous chapters, and be comfortable with accura6 min readbuild_prompt and classify functions from the earlier chapters. You can run Python and read a confusion matrix. You know accuracy, precision, and recall as terms. This chapter shows how to turn a classifier you think works into one you have measured.6 min readclassify and evaluate functions from the earlier chapters. It also assumes you can read a confusion matrix and that you know precision and recall. The goal is to turn a list of wrong predictions into specific changes to the labels, definitions, and examples.5 min readclassify function, the LABELS dictionary, and the evaluate function from them. You should be comfortable with Python and with the idea of tokens. A token is a chunk of text, roughly three-quarters of a word in English, and it7 min readLABELS, build_prompt, classify, route, and evaluate. It also assumes you can 7 min readclassify, route, and evaluate, with a label set that includes an other fallback. You should also be comfortable with Python's logging module and JSON. The goal here is to keep that router accurate after it ships.6 min read