WEBVTT

00:00:08.110 --> 00:00:09.800
Delali on Technology.

00:00:10.290 --> 00:00:14.320
Season one: Can you trust your agent's memory in production?

00:00:14.690 --> 00:00:18.930
Written by Delali, and read by Metatron, his AI voice.

00:00:19.460 --> 00:00:24.260
Every fact that your agent saves about a customer is yours to answer for.

00:00:24.340 --> 00:00:29.060
From then on, it can go out of date, appear in another customer's conversation,

00:00:29.120 --> 00:00:33.195
or remain in a backup after the customer asks you to delete it.

00:00:34.000 --> 00:00:38.140
Each time a customer sends your agent a message, your code loads the facts

00:00:38.240 --> 00:00:42.300
that your agent saves about that customer, then sends them to the AI model

00:00:42.380 --> 00:00:44.220
that generates the reply.

00:00:44.320 --> 00:00:47.820
When one of those facts is out of date, the reply can therefore be

00:00:47.900 --> 00:00:49.260
out of date too.

00:00:49.330 --> 00:00:53.900
Even a stronger model can produce the same out-of-date reply, because it receives the

00:00:54.020 --> 00:00:54.810
same fact.

00:00:55.560 --> 00:00:59.970
A court or tribunal can hold your company responsible for the information that your

00:01:00.020 --> 00:01:01.490
agent provides.

00:01:01.570 --> 00:01:07.250
In February 2024, for example, a tribunal in British Columbia ordered Air Canada to

00:01:07.350 --> 00:01:13.170
pay a customer 812 Canadian dollars and 2 cents, because the airline's website chatbot

00:01:13.460 --> 00:01:17.650
had provided that customer with a rule for bereavement fares that differed from the

00:01:17.730 --> 00:01:18.770
airline's policy.

00:01:19.500 --> 00:01:24.350
One customer can also see another customer's data through a single bug.

00:01:24.400 --> 00:01:30.190
That happened on 20 March 2023, when some ChatGPT users saw the titles of

00:01:30.310 --> 00:01:35.070
other users' chats because of a bug in redis-py, which is an open-source library

00:01:35.150 --> 00:01:37.470
that ChatGPT's servers use.

00:01:37.510 --> 00:01:41.630
Whichever model you use, you will therefore have to be sure that every fact

00:01:41.710 --> 00:01:45.385
that your code loads belongs to the customer in the chat.

00:01:46.150 --> 00:01:49.495
When a customer asks you to delete their data, you will also need to

00:01:49.575 --> 00:01:53.055
remove it from every copy, including your backups.

00:01:53.095 --> 00:01:58.855
In May 2023, for example, the US Federal Trade Commission charged that, after parents

00:01:58.935 --> 00:02:03.415
asked Amazon to delete what their children had said to Alexa, Amazon failed to

00:02:03.575 --> 00:02:06.575
delete the transcripts from all of its databases.

00:02:06.615 --> 00:02:12.135
On 19 July 2023, a federal court approved an order that required Amazon to

00:02:12.255 --> 00:02:16.535
pay a $25 million civil penalty to settle those charges.

00:02:17.300 --> 00:02:20.793
Every episode in this season is about one failure.

00:02:20.847 --> 00:02:24.220
It opens with a check that you can carry out on your agent.

00:02:24.260 --> 00:02:27.620
After I show you why the failure happens, I will give you the fix

00:02:27.690 --> 00:02:28.953
as a brief.

00:02:29.007 --> 00:02:32.367
A brief is a short set of instructions that you can paste into a

00:02:32.473 --> 00:02:35.553
coding agent, such as Claude Code or Codex.

00:02:35.620 --> 00:02:38.660
The coding agent can then apply the fix to your project.

00:02:38.780 --> 00:02:42.820
Where a fix works only with a database or a search engine that stores

00:02:42.900 --> 00:02:46.852
each customer's data separately, I will say so in that episode.
