AI Engineer DojoAll lessons  Courses
Free lesson · The AI Evaluation Engineer · Lesson 10

Is Something Wrong in Production?

You look after a public chatbot that anyone can use for free. It's been live for six months, and every month you send a short dashboard to the team. This month the numbers moved a lot, and the product lead wants to know by tomorrow whether it's good news, bad news or nothing.

How this lesson works

You'll read a real monthly dashboard and guess what moved it, take the numbers apart by hand, then run a year of traffic through the script to see which alert rules would have fired and why. At the end you'll plan the monitoring for a new product with no hints. Plan on about an hour. The script needs Python with pandas.

The data

WildChat is a free chatbot the Allen Institute for AI ran from April 2023 to April 2024, in exchange for publishing the conversations for research. The 838,000 conversations in the release come with the time, the model version that answered, the language, the country, the number of turns, and a scrambled version of the sender's internet address, so you can count conversations per sender without knowing who they are. You met this data in Lesson 2. This time you'll watch it over a year, the way you would watch your own product.

Source: Zhao, W. et al. (2024), "WildChat: 1M ChatGPT Interaction Logs in the Wild." allenai/WildChat-1M on Hugging Face, ODC-BY license. The script reads only the small columns listed above and skips the conversation text.

Step 1

Read the dashboard

September 2023October 2023
Conversations48,64261,831 (+27%)
Share in Chinese10.8%22.8%
Average turns per conversation1.971.87

Traffic is up by a quarter, Chinese has doubled, and conversations got a little shorter.

Predict first
What most likely doubled the Chinese share?
September had 15,884 different senders. October had about senders

October had 15,754 senders, slightly fewer than September. Traffic grew by 13,000 conversations while the number of people stayed flat, so a few senders must have sent a lot more. Five senders sent 1,000 or more conversations each that month. Two of them, both sending only Chinese, sent 2,738 and 2,719. The biggest, in France, sent 6,528, and 6,468 of those arrived on a single day.

This is the first thing to check whenever a traffic number moves: is it many people doing a bit more, or a few doing a lot more? An average over conversations lets one busy sender speak for thousands of real users.

Data: WildChat-1M, Allen Institute for AI, ODC-BY license. Zhao, W., Ren, X., Hessel, J., Cardie, C., Choi, Y., Deng, Y. (2024). WildChat: 1M ChatGPT Interaction Logs in the Wild. ICLR 2024.