Reading the Answer
Part of the AI Decisions section of Coddy's AI Prompts journey. Lesson 5 of 22.
Every choice comes back as the picked option and a probability for each option. The picked one is simply the biggest. Its probability is the confidence: how much of the 100% the AI gave to its answer.
For I was charged for a parcel that never came.:
billing █████░░░░░░░░░░░░░░░ 27%
shipping ███████████████░░░░░ 73%
tech ░░░░░░░░░░░░░░░░░░░░ 0%The message touches billing and shipping, and the bars show it: the AI is torn. Often one bar takes almost everything instead, and a high bar means the AI committed, not that it is right.
Your code reads the picked option, and can also read the confidence: for example, send a message to a person when no option gets more than 80%.
Try it yourself
This lesson doesn't include a code challenge.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.