AI Foundations and the Limits of Its Role · Lesson 3

What Output Do We Need?

7 min read

Lesson objectives

  • Identify a class, quantity, ranking, or generated reply and choose a check for each.
Reading tools

Start with the person who will use it

We previously asked where the system's result comes from. Here we start with the result itself. One reader's message might yield a topic category, an estimate of how long they will wait, a ranked list of titles, or a newly written reply. The input is the same message. The service owner's purpose determines the task and the way to test it. Saying that a system “works with text” gives the practitioner too little information to choose an approach.

Describe what someone will do with the output. Ask an employee what changes when they get a number or a category. A time estimate may affect staffing. A category may determine which desk handles the question. A ranked list may give the reader options to choose from. A mistake has a different effect in each case. A misrouted message causes delay. A time estimate presented as a promise can raise readers' expectations above what the desk can deliver.

Categories and numbers

A classifier assigns categories from a defined set. When one message asks about a device and a room, tell staff whether two labels are valid or whether a person resolves the case.

A classifier may return a number representing the strength of its prediction for a category. It still performs classification when the required output is a category. The score and the action are different. The service owner might require a score above a set threshold before a message can be routed automatically. Estimating the score is the model's function. Setting the threshold is a decision about the cost of mistakes and the time staff can spend on review.

Regression refers to estimating a numerical quantity such as the number of minutes before a request will be resolved. The error has a unit. If a model estimates ten minutes and the actual response takes thirteen, the difference is three minutes. The service owner may care about typical errors and also about cases where the estimate is far off. Scope matters too. A model trained with data from ordinary working weeks may need testing again before an office uses it during a seasonal surge.

Look at what the reader or manager needs even when both tasks involve numbers. A room manager may only need to classify waits as Short or Long because the categories trigger different staffing procedures. If the manager needs to know when to schedule another employee, an estimate in minutes may be more informative. Crossing the boundary is enough for the first action. The second decision could depend on the difference between a ten-minute wait and an hour-long one.

Ranking items and creating content

Recommendation means suggesting items, often in an order based on how useful the system expects them to be for a person or occasion. A library assistant might rank books in the catalogue by how well they address a reader's question at their level. The person responsible for the catalogue sets relevant limits, such as excluding titles unavailable to borrow at that branch today. An excellent match on the topic does little good when the reader cannot get the book.

Generation produces new content. A draft may invent a book even when the recommended titles are correct. Check the ranking for useful titles and verify each factual claim in the generated text.

Test each output independently. Check the destination for classification, actual minutes for estimates, useful titles for ranking, and applicable policy for generated statements. Use the failing result to identify the part of the workflow to investigate.

Worked example

Guided practice

Independent practice

Summary

Check your understanding

Lesson summary

Classification assigns a category, while regression estimates a quantity such as the length of a wait. Recommendation suggests existing items, often in a ranked list. Generation creates new content. Start with the action the employee or reader will take and choose a test for its output. Check a category against a reference judgment, an estimate against the observed quantity, a ranked list for availability and usefulness, and a generated statement against its source. When a workflow combines tasks, check them separately to locate a fault. The same message can be the input to all four tasks, so its form alone cannot tell you which test to use. Defining each output prepares you to follow the system from training to everyday use.