رونوشت 🔗
WEBVTT
00:00:00.000 --> 00:00:04.597
So we know how well our models are doing by just looking at precision and recall.
00:00:04.974 --> 00:00:06.336
Did we say it was fraud?
00:00:06.570 --> 00:00:07.413
It was actually fraud.
00:00:07.496 --> 00:00:08.268
That's precision.
00:00:08.523 --> 00:00:09.753
Did we catch all the fraud?
00:00:09.984 --> 00:00:10.864
That's recall.
00:00:10.980 --> 00:00:15.108
Those are what I would call like business outcome-based metrics.
00:00:15.279 --> 00:00:19.295
That's one set of criteria that you should always be judging your models based off of.
00:00:19.346 --> 00:00:24.222
A calculus you might have, which we often do, is like don't cost optimize.
00:00:24.268 --> 00:00:34.381
There's whole- organizations whose job is to cost optimize instead focus on building things with frontier intelligence and know that the cost is just gonna come down in the future, which is what we have seen.
00:00:34.381 --> 00:00:37.594
I think too many people are like,"I wanna build an agent," and then you ask why?
00:00:37.866 --> 00:00:39.780
Like what's the customer pain you're trying to solve?
00:00:39.787 --> 00:00:41.045
What's the task you're trying to solve?
00:00:41.304 --> 00:00:44.369
Oftentime you can be like maybe let's just do something deterministic first.
00:00:44.805 --> 00:00:46.536
Let's do something that we have full control over.
00:00:46.670 --> 00:00:48.706
Like the car works, it's functional.
00:00:48.893 --> 00:00:51.560
Turns out it, you built a great car that no one wants.
00:01:03.207 --> 00:01:07.837
Hello everybody, and welcome back to Data Analytics Chat.
00:01:08.349 --> 00:01:12.772
Today, we're looking at how do you actually know your AI is still working.
00:01:13.368 --> 00:01:24.706
So it's one thing to build and launch an AI system, it's another to continuously evaluate whether it's accurate, safe, useful, and still delivering the outcomes the business expected.
00:01:25.256 --> 00:01:30.076
So in this episode, we're going to look at what good AI evaluation actually looks like.
00:01:30.620 --> 00:01:34.602
And today joining me is Ryan Stevens from RAMP.
00:01:34.784 --> 00:01:35.441
Welcome, Ryan.
00:01:36.222 --> 00:01:36.632
Thanks, Ben.
00:01:36.644 --> 00:01:37.408
Happy to be here
00:01:38.007 --> 00:01:39.453
It's gonna be an interesting conversation.
00:01:39.534 --> 00:01:45.552
And like I said, just mentioned before, a couple of candidates we've had into have, yeah, been obviously lacking in the evaluation side.
00:01:45.552 --> 00:01:48.287
So I think it's gonna be an interesting topic for our listeners.
00:01:48.888 --> 00:01:54.750
So I guess before we dive in, do you wanna just give the listeners a quick introduction to who you are and the work you've been leading at Ramp?
00:01:55.387 --> 00:01:56.378
Yeah, that sounds great.
00:01:56.596 --> 00:01:58.483
Let me just do a little brief intro of Ramp.
00:01:58.500 --> 00:02:01.581
So Ramp is a financial technology company.
00:02:01.859 --> 00:02:03.492
We have a suite of products.
00:02:03.493 --> 00:02:05.825
Our goal is to save businesses time and money.
00:02:06.031 --> 00:02:10.954
We offer card, AP, AR, a lot of back office technologies.
00:02:10.954 --> 00:02:12.978
We have a banking-like product.
00:02:13.324 --> 00:02:16.574
We also do expense management, which is one of our core offerings, travel.
00:02:16.742 --> 00:02:22.283
Sort of anything you can think you need to do to spend money at a company, we probably offer that as a service.
00:02:22.311 --> 00:02:23.806
I am a senior director here.
00:02:23.806 --> 00:02:25.332
I lead applied sciences.
00:02:25.637 --> 00:02:31.194
That is a team of, historically MLEs was our big focus area, as well as product data scientists.
00:02:31.507 --> 00:02:42.471
Obviously, with AI and agentic engineering in the last two years a lot of my folks are thinking about how to build better agents and like we're gonna talk about how to evaluate those agents better.
00:02:42.770 --> 00:02:47.265
Prior to Ramp, I was at Meta working with ads ranking, and I also have a PhD in economics.
00:02:47.266 --> 00:02:52.544
So if we wanna talk anything economics related, I'm also happy to go that direction as well.
00:02:53.145 --> 00:02:53.426
Brilliant.
00:02:53.479 --> 00:02:53.689
Cool.
00:02:53.747 --> 00:02:57.665
And yeah, like you said, the last, the last two years it's just gone crazy, isn't it?
00:02:58.265 --> 00:02:58.762
Absolutely
00:02:59.361 --> 00:03:00.600
So I guess I'll, let's dive in then.
00:03:00.603 --> 00:03:07.301
So I guess once a AI system is live, how do you actually know whether it's still working properly?
00:03:08.299 --> 00:03:09.694
Yeah, that's a great question.
00:03:09.699 --> 00:03:16.700
So once it-- We will talk about it being live, but I think we should also definitely talk about like what to do before it goes live.
00:03:16.751 --> 00:03:22.097
So an AI system, it's just a probability machine making a decision.
00:03:22.378 --> 00:03:26.409
Now, it depends on what kind of decision your AI system is doing.
00:03:26.623 --> 00:03:33.430
I think there's like really two ways we can categorize these structured outputs versus unstructured outputs.
00:03:33.432 --> 00:03:37.105
So let's do a very exa- simple example of what a structured output is.
00:03:37.370 --> 00:03:48.229
So every day at Ramp people will upload invoices onto Ramp, and our job is to OCR those, to get the amount on that invoice right get all those little line items that you might see correct.
00:03:48.427 --> 00:03:49.825
That's a structured output.
00:03:50.076 --> 00:03:51.486
There is a correct answer.
00:03:51.711 --> 00:03:55.822
Someone will go review that, and we can see we said$100, they said$100.
00:03:55.907 --> 00:03:56.287
Great.
00:03:56.562 --> 00:04:04.961
You should be making sure if there's a human in the loop and it is structured output, success means that the output that you have is actually the output that the
Load full transcript
human expects.
00:04:05.221 --> 00:04:07.671
Now things get a lot more difficult with unstructured output.
00:04:07.679 --> 00:04:09.590
These are, typically your chat agents.
00:04:09.735 --> 00:04:12.225
People will go in, your Claude, your Codexes.
00:04:12.449 --> 00:04:15.373
At Ramp, we have an AI accounting agent called Stack.
00:04:15.522 --> 00:04:19.053
People can go in, try to do their accounting in a chat-like interface.
00:04:19.610 --> 00:04:26.363
In those examples, things get a lot more difficult, but we can definitely dive into what good evaluation is there.
00:04:26.365 --> 00:04:28.528
But what does good evaluation look like?
00:04:28.540 --> 00:04:36.692
It says you take the interactions of the agent with the user, whether it be unstructured, you run some grade on that.
00:04:36.704 --> 00:04:44.245
Now, grade can be a very generic term, and you do that continuously for every chat, for every interaction that comes through.
00:04:44.459 --> 00:04:46.334
So high level, that's what it is.
00:04:46.466 --> 00:04:54.305
I'm very happy then to go into the details of what it means to grade and monitor these systems if we think it's a good next place to go.
00:04:55.218 --> 00:04:55.841
Yeah, it's five.
00:04:55.860 --> 00:04:56.600
Let's go deeper
00:04:56.721 --> 00:04:57.035
Okay.
00:04:57.035 --> 00:04:57.773
Yeah, let's go deep.
00:04:58.017 --> 00:05:02.290
Okay, so let's split up the two sort of things you want to monitor.
00:05:02.514 --> 00:05:05.153
There is-- I'm an MLE by training.
00:05:05.387 --> 00:05:08.829
Historically, I would do things like assess fraud on cards.
00:05:08.860 --> 00:05:13.458
So we know how well our models are doing by just looking at precision and recall.
00:05:13.834 --> 00:05:15.196
Did we say it was fraud?
00:05:15.430 --> 00:05:16.274
It was actually fraud.
00:05:16.357 --> 00:05:17.127
That's precision.
00:05:17.384 --> 00:05:18.612
Did we catch all the fraud?
00:05:18.845 --> 00:05:19.723
That's recall.
00:05:19.841 --> 00:05:23.968
Those are what I would call like business outcome-based metrics.
00:05:24.139 --> 00:05:28.156
That's one set of criteria that you should always be judging your models based off of.
00:05:28.156 --> 00:05:31.326
So let's go to the example of unstructured output.
00:05:31.660 --> 00:05:32.742
That's a tough one.
00:05:32.951 --> 00:05:36.384
What you usually have to do is know the domain that you're working in.
00:05:36.384 --> 00:05:39.555
So I'm gonna talk about AI accounting, our stack product.
00:05:39.559 --> 00:05:40.889
So what are the people doing?
00:05:40.927 --> 00:05:43.392
They're trying to solve accounting tasks in there.
00:05:43.685 --> 00:05:57.692
And so we have criteria around, first, what type of tasks do we think they're trying to solve, and then what is the verifiable output, i.e., what can we see from the conversation that told us it did the right thing?
00:05:57.894 --> 00:06:02.269
There are some specific actions we can observe within our AI accounting products.
00:06:02.271 --> 00:06:04.500
They could do things like sync to their ERP.
00:06:04.750 --> 00:06:05.742
That's a success.
00:06:05.752 --> 00:06:09.841
So we have a criteria that if they sync to their ERP, that is a success.
00:06:10.047 --> 00:06:12.778
But sometimes we have more fuzzy things that they're doing.
00:06:12.778 --> 00:06:15.774
They might be doing something like manipulating an Excel document.
00:06:15.776 --> 00:06:19.425
So we're not really sure if there was a successful outcome for that type.
00:06:19.425 --> 00:06:22.370
So instead, we have to look at like behavioral signals there.
00:06:22.504 --> 00:06:24.627
Did the user show frustration?
00:06:25.012 --> 00:06:31.062
Did the agent take too long beyond some like guardrails that we think is good sort of response time?
00:06:31.180 --> 00:06:35.781
Was there errors that appeared to the end user that we don't think is a good experience?
00:06:35.790 --> 00:06:41.709
So it actually becomes almost a product experience measurement that you have to think about for these chat agents.
00:06:41.709 --> 00:06:43.163
You have to come up with a good rubric.
00:06:43.391 --> 00:06:47.730
You have to do your best to say what is verifiable, when can humans give me feedback.
00:06:47.742 --> 00:06:49.925
If they can, always ask for that feedback.
00:06:49.927 --> 00:06:53.048
If you can put a thumbs up, thumbs down in there, please do.
00:06:53.557 --> 00:06:59.541
Oftentimes, you're not gonna have that, so then you have to think about, okay, what are-- what can we infer from the data that we see?
00:06:59.541 --> 00:07:05.966
So frustration, agent doing obviously bad things, it's too slow, it looks like it's too costly, that sort of stuff.
00:07:06.166 --> 00:07:14.663
So when you're doing online evaluation for these unstructured outputs, it's really like step one, get your humans to tell you as much good or bad as possible.
00:07:14.759 --> 00:07:15.713
Often not possible.
00:07:15.713 --> 00:07:19.182
Step two, come up with the right criteria for the task at hand.
00:07:19.439 --> 00:07:21.122
So that's what I call business outcome metrics.
00:07:21.295 --> 00:07:27.829
Now, I should say for any agent, you should be doing what is normally called application performance monitoring, APM monitoring.
00:07:28.048 --> 00:07:29.514
How long do turns take?
00:07:29.894 --> 00:07:31.449
How much does it cost?
00:07:31.927 --> 00:07:33.807
What is the tool error rate?
00:07:33.898 --> 00:07:35.771
How often are tools erroring?
00:07:36.072 --> 00:07:42.572
Actually, that basic core monitoring we noticed early on is not natural and intuitive to most engineers.
00:07:42.913 --> 00:07:45.637
And honestly, models are getting really smart.
00:07:45.944 --> 00:07:55.401
If you can make sure the harness that those models are executing in are executing it fast at low cost with low error rate, then usually outcomes do follow.
00:07:55.552 --> 00:08:08.521
So definitely, make sure
you get the plain vanilla things right that you focus you eat your vegetables, as you would say, and you do that basic application performance monitoring in conjunction with what I call business outcome monitoring.
00:08:08.521 --> 00:08:11.057
So is it solving the task it's supposed to?
00:08:11.230 --> 00:08:13.519
And, is it operating efficiently?
00:08:13.521 --> 00:08:19.343
That APM monitoring, it's a very intuitive idea to people that have been building backend systems for a long time.
00:08:19.610 --> 00:08:23.824
The types of things you monitor for agents are slightly different, but it's ultimately the same type of problem.
00:08:23.826 --> 00:08:27.262
And it's a thing we notice there's a lot of standardization you can do.
00:08:27.406 --> 00:08:28.942
There's a lot of value you can extract from that.
00:08:29.541 --> 00:08:29.855
Brilliant.
00:08:29.879 --> 00:08:33.153
Listen, yeah, of course I like to go deeper because then they it's share insights.
00:08:33.178 --> 00:08:34.001
It's help people.
00:08:34.360 --> 00:08:38.291
So I guess what should organizations be eva-eva-evaluating?
00:08:38.298 --> 00:08:42.738
Should it be accuracy, quality, safety, business outcomes, or all of it?
00:08:43.250 --> 00:08:44.581
Yeah, that's a great question.
00:08:44.659 --> 00:08:49.513
Obviously all of those things are important but you can't maximize everything at all time.
00:08:49.748 --> 00:08:55.153
I will say for-- it depends on where you are as an organization, I should say the first thing.
00:08:55.195 --> 00:09:00.923
So Ramp operates an environment where like customer data, protecting it is very paramount.
00:09:01.177 --> 00:09:04.565
We run our agents on a harness that we call Laminar.
00:09:04.817 --> 00:09:10.491
We have a security team that has worked to lock that stuff down to make sure that we protect our customers' data.
00:09:10.546 --> 00:09:19.899
We, when we build our agents, don't have to worry as much about like data safety and customer safety because our engineering teams, our production engineering teams have already done that for us.
00:09:19.899 --> 00:09:22.226
They've maximized safety for the organization.
00:09:22.432 --> 00:09:24.729
That may not be true at all organizations.
00:09:24.734 --> 00:09:32.481
So when you're building your agent, you always should be asking those sorts of questions like, we're going to be running this data through a given provider.
00:09:32.505 --> 00:09:33.528
Do we have ZDR?
00:09:33.794 --> 00:09:34.993
Is it a provider we trust?
00:09:35.003 --> 00:09:35.793
All of that sort of thing.
00:09:35.893 --> 00:09:44.480
Definitely like a first and paramount concern, and I don't want to ignore it, but I do want to say that like at Ramp, we have teams that have thought deeply about that.
00:09:44.480 --> 00:09:49.803
So when we are building agents, what we're thinking about are, does it meet the task at hand, i.e.
00:09:49.813 --> 00:09:50.897
is it accurate enough?
00:09:51.157 --> 00:09:55.899
Conditional on that accuracy it depends on what kind of product surface area it is.
00:09:56.077 --> 00:09:57.331
Does it need to be fast?
00:09:57.505 --> 00:10:03.309
So if it's something that's happening in the background, if it's something that the user does not have to wait on, it doesn't have to be that fast.
00:10:03.589 --> 00:10:04.225
And that's great.
00:10:04.408 --> 00:10:09.437
You can run things over the weekend, at night, or on what are called flex tiers that are cheaper.
00:10:09.708 --> 00:10:11.350
And it depends on the product experience.
00:10:11.365 --> 00:10:15.783
Now, if it is a synchronous chat experience, it needs to be fast.
00:10:16.033 --> 00:10:21.403
And then the question comes up is like, how much does cost matter to you today versus tomorrow?
00:10:21.644 --> 00:10:29.254
For some products, if you're passing through cost to customers then cost is the, price sensitivity of that customer, so cost is very paramount.
00:10:29.880 --> 00:10:36.606
In other cases, what we, do is we know it's a technology whose cost is like really going down in the future.
00:10:36.735 --> 00:10:46.364
So we're not gonna try to optimize cost today because we have, multi-trillion dollar frontier labs whose job it is to bring the cost down for for the products that they ship, i.e.
00:10:46.368 --> 00:10:47.293
these frontier models.
00:10:47.347 --> 00:10:52.224
A calculus you might have, which we often do, is like don't cost optimize.
00:10:52.269 --> 00:11:02.383
There's whole- organizations whose job is to cost optimize instead focus on building things with frontier intelligence and know that the cost is just gonna come down in the future, which is what we have seen.
00:11:02.383 --> 00:11:14.956
So that's like a counterintuitive way of saying like oftentimes best not to obsess about cost for a nascent new technology where cost is coming down rapidly unless there's some constraints that are happening, i.e.
00:11:14.972 --> 00:11:20.222
like you're passing costs on to customers can be quite price sensitive, and then maybe you think a lot about cost itself.
00:11:20.235 --> 00:11:25.903
But I gave you a little bit of like an everything answer, but that actually is the answer depending on the situation.
00:11:26.572 --> 00:11:26.748
Yep.
00:11:26.780 --> 00:11:27.306
No, that's good.
00:11:27.326 --> 00:11:28.495
It's a good all-round answer.
00:11:28.533 --> 00:11:32.429
And so then also you mentioned like, obviously, the models are getting smarter.
00:11:32.727 --> 00:11:38.985
So why is continuously evaluating AI so difficult in practice?
00:11:39.586 --> 00:11:41.678
Yeah, that is a, that's a great question.
00:11:41.971 --> 00:11:44.486
So there's like a few fundamental reasons.
00:11:44.513 --> 00:11:51.283
I think like the biggest reason is you often don't have good labels for the things you're actually evaluating.
00:11:51.296 --> 00:11:52.224
Let me start like there.
00:11:52.230 --> 00:11:55.264
That's the most
basic problem that most organizations are trying to confront.
00:11:55.269 --> 00:11:57.388
So let's talk about those chat experiences.
00:11:57.402 --> 00:12:03.524
I've already described that oftentimes we don't have direct human feedback that this was a good or a bad chat session.
00:12:03.533 --> 00:12:05.116
In fact, humans might just leave that.
00:12:05.323 --> 00:12:12.802
So like what most organizations will underst- will learn very quickly when they stand up things is actually like labels is the core of your problem.
00:12:12.813 --> 00:12:16.663
This is not news, by the way, to any like machine learning engineer.
00:12:17.114 --> 00:12:26.875
A large portion of a machine learning engineer's time, especially when they're going zero to one on new models in an organization, is actually thinking about how do you actually label the data.
00:12:27.211 --> 00:12:32.917
That is something that like agentic applications are learning after they've deployed.
00:12:32.919 --> 00:12:39.158
But for MLEs, because they were training models using labels, they actually had to answer that question first.
00:12:39.442 --> 00:12:43.681
But now since you can just deploy an agent quickly, people are answering that question second.
00:12:43.686 --> 00:12:48.231
So like the first reason it's hard to continuously evaluate is you have nothing to evaluate against.
00:12:48.437 --> 00:12:52.397
And so organizations need to really think deeply about how they're gonna do this well.
00:12:52.398 --> 00:12:54.386
Now, people do things like LLM as a judge.
00:12:54.658 --> 00:12:58.365
That is a strategy, but you need to calibrate that judge.
00:12:58.394 --> 00:13:03.844
And the interesting thing you'll see if you've worked with it enough, is it turns out, new models will come out.
00:13:03.846 --> 00:13:11.418
So let's say, there's like GPT Sol six or whatever, and you had maybe GT- GPT Sol five or something on there, five Sol.
00:13:11.615 --> 00:13:16.081
Oftentimes like the newest version as a judge is slightly different.
00:13:16.313 --> 00:13:17.470
Maybe it's more correct.
00:13:17.481 --> 00:13:19.731
Usually it's like on average more correct.
00:13:19.910 --> 00:13:21.634
But it does give different answers.
00:13:21.804 --> 00:13:27.192
And so like you need to continuously calibrate these judges with like very high-quality data.
00:13:27.375 --> 00:13:31.466
That's something that organizations don't do enough of, and they need to do a, a lot of going forward.
00:13:31.467 --> 00:13:39.832
I think the second thing is, and this is more of an organizational thing as opposed to a technology thing, evaluation is hard It's a very hard skill.
00:13:40.173 --> 00:13:41.741
Measurement is a hard problem.
00:13:42.010 --> 00:13:46.510
Not everyone in your organization is going to know how you rigorously measure something.
00:13:46.783 --> 00:13:48.196
That intuitively makes sense, right?
00:13:48.245 --> 00:13:49.575
People don't know everything.
00:13:49.724 --> 00:13:54.125
You have entire data departments whose job was and is measurement.
00:13:54.368 --> 00:14:01.485
I think one of the big challenges for data organizations going forward is that the thing you need to measure now are these agentic systems.
00:14:01.513 --> 00:14:10.505
And, we've had a whole playbook, a whole industry for how do you measure, y- events going to marketing platforms or how you measure funnels on a given webpage.
00:14:10.616 --> 00:14:19.330
It turns out a lot of the data professionals do have the necessary skills to think rigorously about measurement but it's now gonna be a new domain, which is agentic measurement.
00:14:19.331 --> 00:14:28.900
So I actually think evaluation and continuous evaluation is a, it's always a measurement problem, and how are you measuring that effectively is something where the skill set matters a lot here.
00:14:29.179 --> 00:14:29.520
Yeah.
00:14:30.120 --> 00:14:35.407
So have you felt that it's got harder because of generative AI?
00:14:36.006 --> 00:14:36.764
Absolutely.
00:14:36.928 --> 00:14:47.048
Yeah, I think the, the problem of measurement has gotten a lot more difficult because before you can think when you had an ML model, I'm always gonna go back to an ML model, its job, its function was one thing.
00:14:47.730 --> 00:14:50.100
So we have a card transaction fraud model.
00:14:50.332 --> 00:14:51.589
Its job is very clear.
00:14:51.591 --> 00:14:52.256
It's in the name.
00:14:52.551 --> 00:14:57.442
Its job is to predict whether or not this card transaction is fraudulent.
00:14:57.753 --> 00:15:00.596
I've talked about Stack, our AI accounting agent.
00:15:00.722 --> 00:15:02.706
Its job is to do bookkeeping.
00:15:02.811 --> 00:15:07.347
Bookkeeping is a ton of different discrete tasks that can be solved.
00:15:07.549 --> 00:15:14.039
Reconciliation, schedules and accruals, variance analysis, fluctuation or flux analysis.
00:15:14.464 --> 00:15:17.884
Those are all individually different tasks.
00:15:18.192 --> 00:15:28.150
And so thinking about how you can rigorously evaluate something across multiple tasks is very difficult, especially when the agent can decide what task it's trying to solve.
00:15:28.450 --> 00:15:38.221
So the, the way I've talked about this internally is actually it's best to, when building an agent, focus on one task.
00:15:38.595 --> 00:15:40.799
What is the one task you want that agent to do?
00:15:41.602 --> 00:15:42.856
Measure the heck out of that.
00:15:43.243 --> 00:15:44.615
Make the agent do that thing.
00:15:44.639 --> 00:15:46.828
In fact, I recommend just do a prompt.
00:15:47.187 --> 00:15:50.451
You can get get far with just a good prompt with the right data in it.
00:15:50.466 --> 00:15:53.998
No, no agents, just LLMs LLM calls.
00:15:54.111 --> 00:15:55.677
Okay, and then do a second task.
00:15:56.102 --> 00:15:58.955
Okay, and then do a third task, and then do a fourth task.
00:15:59.274 --> 00:16:04.424
And as long as you follow this
task-based paradigm, then you can have good measurement along the way.
00:16:04.710 --> 00:16:12.586
And then once you have enough tasks, you're like,"Okay, now it's time to have an agent because it can do many things, and I don't wanna do these individual sort of LLM calls that I'm doing.
00:16:12.586 --> 00:16:26.030
I'm building an agent from first principles." But the, the problem that a lot of people will run into with measurement here is they're like,"I want an agent that does a function, that does a whole set of things." And then they wake up six months later and they're like,"What does good look like?
00:16:26.032 --> 00:16:36.157
It turns out it's trying to do 12 things, so I need to measure 12 different things." Whereas opposed to if you iteratively start from a task paradigm you're able to get measurement for free as you go.
00:16:36.285 --> 00:16:37.547
But yeah, TLDR, it's hard.
00:16:37.826 --> 00:16:38.669
It's gotten harder.
00:16:38.802 --> 00:16:41.942
The tech is great but it's opened up a lot more measurement challenges.
00:16:42.292 --> 00:16:44.741
Okay, let's move on to the next question then.
00:16:45.048 --> 00:16:50.413
So I guess what does good evaluation look like before an AI system goes into production?
00:16:51.014 --> 00:16:52.342
Yeah, that's a great question.
00:16:52.405 --> 00:16:53.788
I'll talk about the experience with Stack.
00:16:53.839 --> 00:16:57.826
Before it goes into production the problem you really run into is does-- you have no data.
00:16:58.216 --> 00:17:07.255
And so you need to figure out,"How do I evaluate something without any data?" So I'll give the experience of Stack, and then I'll give some thoughts about what you can do in sort of different situations.
00:17:07.260 --> 00:17:10.233
So like I've talked about with Stack, Stack is a AI accounting agent.
00:17:10.233 --> 00:17:11.656
It's supposed to do a set of tasks.
00:17:11.959 --> 00:17:20.749
And what we realized early on is Ramp didn't have a product that did that, so there wasn't any proxy data that we could, look at internally and try to create some synthetic data from.
00:17:20.983 --> 00:17:23.911
And it's also a very expert-driven field.
00:17:23.936 --> 00:17:27.767
Accountants are well-trained, they have years of experience, they do a complex task.
00:17:27.980 --> 00:17:34.424
And so what we did is we worked with a company to create a synthetic data set or a set of synthetic businesses.
00:17:34.426 --> 00:17:36.743
And these synthetic businesses were like real businesses.
00:17:37.053 --> 00:17:43.779
They had everything in their books, so they had their GL accounts, they would have bills, they would have invoices.
00:17:43.784 --> 00:17:46.798
They'd have a whole set of documentation that looked like a business.
00:17:47.068 --> 00:17:52.858
And then we'd have a set of tasks that a real-life accountant would have to try to solve for each of these businesses.
00:17:52.877 --> 00:17:55.584
And those, those tasks would get graded by accountants.
00:17:55.594 --> 00:18:01.607
So we had a rich offline data set that we could build and evaluate an agent against.
00:18:01.608 --> 00:18:12.305
And this was a very useful exercise because it allowed us to tune our harness, tune our skills, tune our prompts and also figure out which models were best at this.
00:18:12.491 --> 00:18:17.699
A lot of people underestimate the time one should spend before they launch a model online.
00:18:18.012 --> 00:18:22.775
And this is one of those examples, is synthetic data set generation is a pretty good exercise.
00:18:23.092 --> 00:18:26.413
There are other scenarios where I think that's actually probably overkill.
00:18:26.842 --> 00:18:30.883
And those are examples where you think that the model out of the gate...
00:18:31.185 --> 00:18:31.866
there's a few reasons.
00:18:31.866 --> 00:18:35.719
One is if the cost of error is low enough, test in prod is an idea.
00:18:35.727 --> 00:18:38.482
Roll it out to some, see how it goes, and then go from there.
00:18:38.490 --> 00:18:43.411
So if it's, a low cost of error, if you're just maybe showing ads to people you can show some wrong ads.
00:18:43.411 --> 00:18:47.173
As long as they're, like, high enough quality and they meet certain bars, that's okay.
00:18:47.407 --> 00:18:54.299
But let's say the cost of error is high enough that you don't just wanna test in prod but the, the task is not that complex.
00:18:54.534 --> 00:18:57.198
You probably don't need this full offline data set approach.
00:18:57.372 --> 00:19:00.192
You don't need to generate synthetic data before you go in.
00:19:00.195 --> 00:19:10.361
So if there's a lot of precedence for what you've done and the task is not that complex, then definitely go ahead and launch stuff online, at least into a shadow mode, which is what we do a lot of.
00:19:10.362 --> 00:19:13.117
It's not It's using live production data, but it's not making decisions.
00:19:13.428 --> 00:19:17.598
That's the intermediate that I recommend a lot of people inevitably do.
00:19:17.653 --> 00:19:23.193
And if I go back to the example I gave to the prior question You also don't have to build an agent out of the gate.
00:19:23.487 --> 00:19:26.700
I think too many people are like,"I wanna build an agent," and then you ask why?
00:19:26.972 --> 00:19:28.885
Like what's the customer pain you're trying to solve?
00:19:28.894 --> 00:19:30.151
What's the task you're trying to solve?
00:19:30.411 --> 00:19:33.476
Oftentime you can be like maybe let's just do something deterministic first.
00:19:33.912 --> 00:19:35.643
Let's do something that we have full control over.
00:19:35.776 --> 00:19:38.044
Let's see if that actually provides like a monochrome of value.
00:19:38.354 --> 00:19:46.569
Let's prove it can work," and then great, now we have a baseline that we use to generate some data, and then we can compare an agent against.
00:19:46.702 --> 00:19:52.867
So my recommendation almost always when someone comes
to me and is"I wanna build an agent for something," is like,"You don't need an agent for that today.
00:19:53.063 --> 00:20:01.545
You need to show that you can do something simpler here." That simple thing will generate the data that you need, and then you can use an agent and you can horse race an agent against that problem
00:20:02.144 --> 00:20:02.528
So would you...
00:20:02.537 --> 00:20:03.923
Obviously, you worked both, didn't you?
00:20:03.926 --> 00:20:06.566
Like enterprise and I guess startup, scale-ups.
00:20:06.916 --> 00:20:12.586
What is there a difference between the two, would you say, when doing evaluations?
00:20:13.186 --> 00:20:13.482
Yeah.
00:20:13.483 --> 00:20:15.615
So for su- for sure there's different considerations.
00:20:15.625 --> 00:20:21.198
I think one of the big things obviously when you're smaller is just the blast radius of your changes is smaller.
00:20:21.402 --> 00:20:31.928
So you're a company that has, millions of customers and you launch a system it could affect 1%, and 1% of a million 10,000.
00:20:32.183 --> 00:20:34.050
That's still a lot of people.
00:20:34.163 --> 00:20:40.255
Whereas let's say you have 1,000 customers and 1% is 10 people, those are people you can literally individually go talk to, right?
00:20:40.556 --> 00:20:53.646
I think the interesting thing at a startup scale, which Ramp is no longer a startup scale, we have 80,000 plus, but when I joined we were much, much smaller is that you can actually have personal relationships with clients and you can use those as design partners when you're launching things.
00:20:53.650 --> 00:20:56.325
Now, obviously enterprise grade still does a design partner.
00:20:56.325 --> 00:20:57.696
They still do a slower rollout.
00:20:57.940 --> 00:21:08.513
But you can roll out things quite wider, and as long as the error rate is low enough the actual number of people that you're going to affect is low and you can personally talk to them, figure out what the difference was, and then tweak the system from there.
00:21:08.748 --> 00:21:20.951
That's like like one of the big things that you think about is does the error rate the total number of customers actually just overwhelm your company is like a, a really big problem to think about.
00:21:21.201 --> 00:21:26.848
I obviously think the, the thing that we've all learned about AI over time is that context is king.
00:21:27.064 --> 00:21:32.877
And so being able to connect disparate pieces of data and let the agent reason through that is hyper important.
00:21:33.040 --> 00:21:41.951
What enterprises are learning today is that they've built data silos for a myriad of reasons, some good, some less than ideal.
00:21:41.951 --> 00:21:47.690
Good reasons being security is obviously a good reason you want to silo and make sure that there's the right like permission control.
00:21:47.884 --> 00:21:48.897
Some less than ideal.
00:21:48.898 --> 00:21:51.104
It's just two people had the same idea.
00:21:51.497 --> 00:21:57.588
For whatever reason, they were able to build the same thing, and now you have two of the same thing in different parts of the org and they don't talk to each other.
00:21:57.864 --> 00:22:06.406
And those silos, those disparate pieces of information that no one in the org can get access to, is a hindrance at enterprise companies, right?
00:22:06.550 --> 00:22:11.386
You can't actually get the right data to the agent to help it reason through the right decision.
00:22:11.623 --> 00:22:24.037
And like, when people talk about AI native companies, what they're actually, I think, referencing or where the, the potential comparative advantage comes from is that they're built in the idea of agents being able to integrate into data early on.
00:22:24.271 --> 00:22:26.642
And silos don't exist as much.
00:22:26.840 --> 00:22:31.047
And so because of that because you have access to more data, you can also evaluate these things a lot easier.
00:22:31.304 --> 00:22:36.382
You're able to actually be like, okay, like we're building an agent that's supposed to do multiple different things.
00:22:36.383 --> 00:22:37.711
I can see all the different data points.
00:22:37.714 --> 00:22:38.892
The company is small enough.
00:22:39.179 --> 00:22:45.688
I can actually go understand how it works across these places, where as opposed into siloed organizations that's a lot more difficult to do.
00:22:46.458 --> 00:22:46.637
Brilliant.
00:22:46.683 --> 00:22:47.213
No, thanks for that.
00:22:47.215 --> 00:22:48.140
I thought we'd just get...
00:22:48.419 --> 00:22:56.089
So I remembered you, you obviously covered both, so it'd be good to get a perspective from both the enterprise and I guess you're not, you're no longer like a s-startup.
00:22:56.089 --> 00:23:00.238
I know it's more start scale, but you've been in both, so it'd be good to get a perspective of people.
00:23:00.837 --> 00:23:02.515
So moving our focus off to production.
00:23:02.526 --> 00:23:08.337
So once the system's live, what changes and how should evaluation continue over time?
00:23:08.938 --> 00:23:09.160
Yeah.
00:23:09.160 --> 00:23:14.215
So once it's live then it becomes like any other application that you're trying to monitor.
00:23:14.541 --> 00:23:19.229
You wanna be proactive versus reactive is, I think, like the name of the game there.
00:23:19.518 --> 00:23:22.599
Similar to any application, there's like Maslow's hierarchy of needs.
00:23:22.996 --> 00:23:26.053
You wanna know if things are failing, is the first thing.
00:23:26.413 --> 00:23:32.468
What people have learned, by the way, is that, your Frontier Labs APIs, they do go down.
00:23:32.835 --> 00:23:36.346
They are resilient, but they're not, as resilient as some other type of technology.
00:23:36.395 --> 00:23:37.915
When it goes live, you need to know errors.
00:23:38.279 --> 00:23:39.500
Errors is an important thing.
00:23:39.503 --> 00:23:41.711
You need to have good fallback mechanisms, by the way.
00:23:41.715
--> 00:23:49.182
That's why routers, which Ramp has a router we have a great router product, but that's why a lot of customers demand routers is because you need to have good fallback models.
00:23:49.190 --> 00:23:51.455
Like your first concern is errors.
00:23:51.803 --> 00:23:53.705
Are endpoints going down?
00:23:53.993 --> 00:23:56.731
Are tools you're calling not working?
00:23:56.732 --> 00:24:03.667
Tools are basically just an interface to access internal databases, but they're the main thing that fails with agentic calls.
00:24:03.730 --> 00:24:05.857
The first thing you need to do is am I tracking error rates?
00:24:05.858 --> 00:24:07.068
Do I have good alerting for that?
00:24:07.068 --> 00:24:14.178
Do I have good organizational hygiene around treating these, like, serious issues with escalations, incidents, all that sort of stuff?
00:24:14.454 --> 00:24:21.020
That's like the easy stuff, but the stuff that if you don't do correctly you're going to learn it from a customer later than you otherwise should have.
00:24:21.320 --> 00:24:23.038
Next is like the business outcome monitoring.
00:24:23.088 --> 00:24:26.746
Every trace that comes through our system gets evaluated.
00:24:26.973 --> 00:24:39.811
It gets evaluated by LLM as a judge that will then create a metric, like the percentage of user sessions where frustration is expressed, and then we have monitors on top of those, did those spike recently?
00:24:40.009 --> 00:24:43.682
Usually, those will spike for the errors reasons I told you about.
00:24:44.423 --> 00:24:47.798
Could be that a tool started failing all of a sudden or an API provider.
00:24:47.798 --> 00:24:51.501
But it's a second line of defense that you wanna have here.
00:24:51.553 --> 00:24:53.115
Every trace gets an LLM as a judge.
00:24:53.300 --> 00:24:54.230
That turns into a metric.
00:24:54.230 --> 00:24:56.557
That metric then we can put an alert on top of.
00:24:56.589 --> 00:24:57.886
That thing we can then review.
00:24:58.231 --> 00:24:59.794
That's like the next layer of defense.
00:24:59.801 --> 00:25:06.207
The final thing is usage, adoption, your standard sort of product tool set, you obviously wanna be evaluating here.
00:25:06.210 --> 00:25:09.817
People will use an agent if they find value from that agent.
00:25:10.141 --> 00:25:14.405
I've talked a lot about this as like an engineering system, as one, that needs to work.
00:25:14.426 --> 00:25:20.266
The wheels need to not be flat, the tires need to not be flat, the engine needs to be like in good working order, like a car.
00:25:20.267 --> 00:25:22.659
But did people go to the lot and buy that car?
00:25:22.901 --> 00:25:28.539
So you still need to treat it like a product, and you still need to have all of your usage and adoption metrics, and that's the last hierarchy of need.
00:25:28.539 --> 00:25:30.576
Like the car works, it's functional.
00:25:30.762 --> 00:25:33.430
Turns out it, you built a great car that no one wants.
00:25:33.634 --> 00:25:35.291
That's the last thing you always need to answer.
00:25:35.291 --> 00:25:39.194
Those are like kind of the three like layers of things that matter once it's in production.
00:25:39.557 --> 00:25:40.039
Nice.
00:25:40.065 --> 00:25:42.973
And then, how frequently should teams be checking performance?
00:25:43.574 --> 00:25:44.318
It's a good question.
00:25:44.355 --> 00:25:47.440
The errors should be like on a normal on-call rotation.
00:25:47.440 --> 00:25:49.010
No one should have to systematically check it.
00:25:49.011 --> 00:25:50.910
Those things should proactively be coming after you.
00:25:51.307 --> 00:25:54.200
It really depends on two, two factors.
00:25:54.200 --> 00:25:55.224
What scale are you at?
00:25:55.313 --> 00:25:57.550
How many customers do you have on this?
00:25:57.563 --> 00:26:03.153
If the N is small, then, the error of any performance metric you have is going to be very high.
00:26:03.324 --> 00:26:09.030
And then the second is the delay between it committing an action and you getting some label.
00:26:09.039 --> 00:26:11.222
So let me give you an example of something where there's some delay.
00:26:11.459 --> 00:26:14.880
When we do OCRing for invoices we have a review process.
00:26:14.880 --> 00:26:19.521
Someone goes and looks at that invoice, reviews it but they may not review it for 30, 60, 90 days.
00:26:19.596 --> 00:26:24.650
Some-- So there's some lag between when the agent takes the action and when we actually get a good label.
00:26:24.681 --> 00:26:27.457
Definitely don't review things before you don't have good labels.
00:26:27.752 --> 00:26:31.159
And then make sure you have a big enough N so you have tight standard errors.
00:26:31.421 --> 00:26:35.942
Once it's at scale, once it's in production you should review it like you would any other product.
00:26:35.953 --> 00:26:36.990
Like weekly.
00:26:37.282 --> 00:26:39.298
You have weekly posts, updates, stand-ups.
00:26:39.298 --> 00:26:43.803
If it's an important product area, people should be obsessing over metrics on a weekly cadence.
00:26:43.844 --> 00:26:47.053
Now, of course, life cycle of the product obviously matters.
00:26:47.250 --> 00:26:54.472
If you just launched this thing, you should be obsessing about it hourly, daily, at a lower, like at a much higher frequency.
00:26:54.758 --> 00:27:00.182
But, I think that the mistake that a lot of people make about agents and the agentic system is it's no different than any other product.
00:27:00.185 --> 00:27:05.023
So whatever your rituals and cultures are around product evaluation, it should be the same for agents.
00:27:05.624 --> 00:27:05.901
Good.
00:27:05.933 --> 00:27:12.260
So is there like warning signs that an AI system is beginning to fail even if say your users have not started to complain?
00:27:12.861 --> 00:27:13.202
Yeah.
00:27:13.253 --> 00:27:16.934
Internally the, the big thing we look at is latency and error rates.
00:27:17.040 --> 00:27:20.403
So if something's
taking too long people will start to complain.
00:27:20.813 --> 00:27:23.064
And if there are high error rates, people will start to complain.
00:27:23.064 --> 00:27:25.104
So tool errors is the one we talk a lot about.
00:27:25.359 --> 00:27:26.614
That's like a very common one.
00:27:26.628 --> 00:27:28.006
A tool could error for many reasons.
00:27:28.006 --> 00:27:30.413
It could have issues with accessing the database.
00:27:30.662 --> 00:27:33.491
It could be that the tool is too complex for the agent to actually use.
00:27:33.804 --> 00:27:38.230
The latency is a more difficult one, but one that we track quite obsessively.
00:27:38.440 --> 00:27:40.796
So things could be getting slower for a lot of reasons.
00:27:40.805 --> 00:27:48.404
Like you could swap a model, and it turns out that model is really bad at using all the tools that you have in your harness and therefore taking a lot longer per task.
00:27:48.434 --> 00:27:55.096
We do see that happen, like from time to time, that like a new model gets launched for the same model family we're on.
00:27:55.304 --> 00:27:56.314
Ooh, we switch to it.
00:27:56.314 --> 00:28:01.553
It turns out it's actually like way worse on the task at hand, and so it's like taking a lot longer to answer user questions.
00:28:01.734 --> 00:28:04.892
So like error rates, usually tool error rates is what we like to see.
00:28:05.138 --> 00:28:10.723
And then latency are like two leading indicators that are pretty important to like customer experience.
00:28:11.563 --> 00:28:15.721
Okay Then I guess let's talk about the human side of things then.
00:28:15.728 --> 00:28:21.496
So how much of the AI evaluation still needs human judgment, and how much can realistically be automated?
00:28:22.096 --> 00:28:22.454
Yeah.
00:28:22.730 --> 00:28:27.270
That's a great question, and one that I think if you ask 10 different people, you might get 10 different slightly answers.
00:28:27.544 --> 00:28:31.407
My opinion could be stale in six months given the the pace of the technology.
00:28:31.653 --> 00:28:40.428
But we'll-- w- what I will say is this: when you initially launch something, you for sure should have a good golden data set that you've calibrated with humans.
00:28:40.788 --> 00:28:43.615
You could use model assistance to help you as well.
00:28:43.730 --> 00:28:45.536
I'm like, everyone does it.
00:28:45.547 --> 00:28:48.798
Everyone uses like a quorum of models to help them label things.
00:28:48.799 --> 00:28:56.218
But you should very rigorously go label some data for anything and everything that is gonna be important for your business.
00:28:56.340 --> 00:29:00.787
And then you should build an LLM as a judge, and you should calibrate that LLM as a judge against your human labels.
00:29:00.788 --> 00:29:03.625
It should match the human labels down to a T.
00:29:04.000 --> 00:29:15.797
Once something is in production my strong opinion is you should have human evaluation on at least some subset of traffic at all times so that you then can calibrate any LLM as a judge.
00:29:15.922 --> 00:29:27.065
So what we historically see with agents is like once an agent is live the distribution of things that it does, of tasks it's trying to solve, is gonna be slightly different than what you initially evaluated on.
00:29:27.086 --> 00:29:33.442
If you don't have some human evaluation going on over time then you'll not actually have calibrated those LLM as a judge.
00:29:33.442 --> 00:29:43.391
And all I mean by that is like the LLM as a judge might be saying, things are great." But it turns out you calibrate against at a, a different distribution of tasks and that LLM as a judge doesn't, know what's going on.
00:29:43.648 --> 00:29:47.701
So my strong prior is like there needs to be some human validation somewhere here.
00:29:47.808 --> 00:29:49.292
Sometimes you get it for free as a product.
00:29:49.295 --> 00:29:51.029
I talked about the invoicing example.
00:29:51.137 --> 00:29:56.500
You get that for free because people review the OCR because they need to go pay the bill, and they need to write all that information for you.
00:29:56.501 --> 00:29:58.859
So if you get it for free in your product, you have a human there.
00:29:58.861 --> 00:30:00.683
They're already annotating and evaluating for you.
00:30:00.866 --> 00:30:11.686
And if you don't, then my strong opinion is that you should have some continuous evaluation by humans so that at least those LLMs as a judge or your AI systems have something that you can judge and grade against.
00:30:12.239 --> 00:30:12.457
Yeah.
00:30:12.462 --> 00:30:18.653
So then can AI agents themselves be used to continuously test, challenge, and monitor other AI systems?
00:30:19.252 --> 00:30:21.493
In some respects, yes, in some respects, no.
00:30:21.729 --> 00:30:26.176
AI systems are good, I would say at things like testing for edge cases.
00:30:26.178 --> 00:30:33.602
So like coming up with slight variants of prompts and seeing what the output is or like, things that you could call like taste, they can be pretty good at.
00:30:33.603 --> 00:30:36.069
You're like,"We prefer, shorter versus longer answers.
00:30:36.070 --> 00:30:45.378
We prefer answers that are bullet points versus not bullet points." You could certainly put all that into like a function that parses the text to try to understand that sort of things.
00:30:45.573 --> 00:30:49.186
But a lot of those taste things, it's pretty good to give to an agent to be able to do.
00:30:49.684 --> 00:31:03.161
But in my experience you ask Fable, you ask Astra correctness, business outcomes and you can get wildly different answers between the models, and it takes a human to come in to ascertain whether or not which one is correct.
00:31:03.162 --> 00:31:06.847
So there's still definitely a jagged frontier, as they like to say, i.e.
00:31:06.863 --> 00:31:15.167
some models-- it's unclear where models are best at, and especially for labeling data or for ascertaining
whether or not it was correct.
00:31:15.413 --> 00:31:16.834
There's still a lot of limitations there.
00:31:17.050 --> 00:31:19.275
Another way of thinking about this is actually quite simple.
00:31:19.689 --> 00:31:32.035
If an agent is good at determining whether or not another agent successfully executed a task, why did the first a-- Why do you even need the judge in the first place?
00:31:32.063 --> 00:31:35.656
'Cause shouldn't the first agent have been able to successfully execute the task?
00:31:36.018 --> 00:31:58.759
Now there's some like holes in this logic, but I think generally that's where a lot of my head goes, which is if it is true that agents could judge other agents like with 100% accuracy, then you actually wouldn't even need judges in the first place'cause the first agent should be able to self-referentially judge itself and figure out like what's right, what's wrong and then always do the correct thing.
00:31:58.773 --> 00:32:00.237
And you don't see that in experience.
00:32:00.246 --> 00:32:02.656
So there's, there, there's definitely something missing here.
00:32:02.915 --> 00:32:10.877
And a lot of that is there is like ambiguity that models aren't fully able to reason through, and you sometimes do need humans to at least evaluate and figure out where those gaps are.
00:32:11.691 --> 00:32:12.893
Oh, that's some good information there.
00:32:13.176 --> 00:32:17.979
And then I guess obviously, look, AI and business value, it's, there's always a lot of talk there.
00:32:18.036 --> 00:32:26.047
How should leaders connect AI evaluation back to business value rather than, just treating it as like a pure tech exercise?
00:32:26.646 --> 00:32:27.653
Yeah, that's a good question.
00:32:27.661 --> 00:32:32.704
It's a I think it's more difficult for people that have not thought about ML systems, I would say.
00:32:32.951 --> 00:32:36.045
Let's return to my task-based approach.
00:32:36.259 --> 00:32:45.833
If you are successfully articulating what tasks you're trying to use agents for early on, the value automatically derives from the value of that task.
00:32:45.833 --> 00:32:48.915
Now, the value of that task could be, time saved for our customers.
00:32:48.917 --> 00:32:52.795
So we're able to save, an hour for our customers and express that as interest.
00:32:52.795 --> 00:32:56.644
It could be an hour for an internal person, so you're able to say wage and cost time.
00:32:56.904 --> 00:33:08.430
It could be an experience that is new for the customer, and so you're actually, like, expanding the realm of the things that your application is able to do, so you're actually able to fulfill a need that you otherwise weren't able to.
00:33:08.431 --> 00:33:15.582
So I think a lot of people struggle at this exercise when they don't think about the the just the pure tasks it's trying to solve.
00:33:15.853 --> 00:33:19.851
'Cause if you have the task it's trying to solve, then value automatically flows from the value of that task.
00:33:19.851 --> 00:33:26.419
And if, it turns out that task is extremely low value, you should not be, maybe throwing fable-priced intelligence at it.
00:33:26.419 --> 00:33:29.259
There are much cheaper models you can do to try to solve the task at hand.
00:33:29.599 --> 00:33:34.905
So yeah, i- if you don't know what it's supposed to do then value becomes different.
00:33:34.926 --> 00:33:40.875
And we should also obviously talk about the cost of solving that thing,'cause really I think about net profit or, net value.
00:33:40.877 --> 00:33:47.017
It's really value to the customer or value to the firm minus the cost to the firm or the cost to the customer.
00:33:47.246 --> 00:33:52.190
And so you should really be, like, thinking about, okay that's a high-value task.
00:33:52.477 --> 00:33:54.221
We can, pay money to solve it.
00:33:54.228 --> 00:33:54.807
It could be...
00:33:55.092 --> 00:34:03.112
Or it's a task that requires someone that we pay a lot to solve, so we can probably use a fairly expensive model to try to solve that problem.
00:34:03.377 --> 00:34:09.802
I think it's also pretty good to just, think about, like, where in the quadrant of value and cost are you, and then you select the right model for the right problem.
00:34:09.862 --> 00:34:14.536
Or sometimes, and, you determine actually that's a pretty low-value task.
00:34:14.744 --> 00:34:21.440
It doesn't cost us very much to do it, a- and we're gonna either throw a very cheap model at it or, an agent isn't the right choice.
00:34:21.724 --> 00:34:38.365
I think the thing is the, the purpose of good leaders is to look at opportunities break out the value of that opportunity, look at the different cost options to solve that given opportunity, and come up with something that like maximizes the, the net value of things.
00:34:38.621 --> 00:34:38.860
Yeah.
00:34:39.731 --> 00:34:39.887
Okay.
00:34:40.179 --> 00:34:46.454
And so I guess building this process is a challenge, and it's-- and complex.
00:34:46.514 --> 00:34:51.880
So I guess what would a sort of strong evaluation and monitoring process look like inside an organization?
00:34:52.481 --> 00:34:52.708
Yeah.
00:34:52.708 --> 00:34:57.722
So I think w- one is it's like a cultural sort of thing you have to ascertain.
00:34:57.733 --> 00:35:00.173
It's like, do they have good on-calls?
00:35:00.702 --> 00:35:04.739
Are those on-calls being alerted about agentic incidents?
00:35:04.759 --> 00:35:09.836
I think that's I love to go back to my hierarchy of three things, but that's like the most important thing.
00:35:09.836 --> 00:35:15.134
It's like, if they have a strong culture of on-call rotations, if those on-calls are like very data-driven, i.e.
00:35:15.144 --> 00:35:23.764
they have good alerting for it then I'm gonna say that organization is most likely going to be like ahead of the curve when it comes to other sort of companies.
00:35:23.932 --> 00:35:31.958
I think the other thing that's important and we've started
to really lean into that here is I have this, this fundamental belief is that no one wants to label data.
00:35:32.297 --> 00:35:34.900
No one wants to bring good labels for your model.
00:35:34.911 --> 00:35:40.797
So some organizations will say,"Oh, okay, we build an agent and maybe some of our employees will go label this data." No one wants to do that.
00:35:41.092 --> 00:35:49.719
And so good evaluation at a company also is about how do I bring the cost of label creation down as much as humanly possible.
00:35:49.724 --> 00:35:54.179
So at Ramp, one thing we're investing a lot of time in is like a internal evaluation platform.
00:35:54.461 --> 00:35:57.702
So what that means is every agent already runs on a common harness at Ramp.
00:35:57.710 --> 00:36:02.081
That's like important standards, and platforms are very important, especially in the agentic era.
00:36:02.445 --> 00:36:16.994
All of those can run and build evaluations on a common centralized platform, and we're making it super easy for, bad interactions that aren't effective, to get bubbled up to engineers to then turn into good evaluations on that agent.
00:36:16.998 --> 00:36:28.273
So how do you as an organization think about building platforms that allow you to create labels at low cost for the most like important interactions that you have?
00:36:28.489 --> 00:36:35.539
And so I think like good organizations will think deeply about like evaluation as a service and what sort of platform to- tools you do.
00:36:35.900 --> 00:36:42.293
And then a lot of it is like how much are you educating the organization on the importance of evaluation, what a good evaluation looks like?
00:36:42.324 --> 00:36:45.262
Like I said, everyone is doing this for the first time.
00:36:45.590 --> 00:36:47.909
Evaluation, agentic evaluation is new.
00:36:48.222 --> 00:36:51.806
And so it is a learning exercise for everyone in the organization.
00:36:52.126 --> 00:36:57.800
And like distributing learning, upskilling everyone at companies, it's guerrilla warfare.
00:36:57.802 --> 00:37:00.539
And what I mean by that is it's a lot of one-on-one conversations.
00:37:00.757 --> 00:37:01.887
It's a lot of seminars.
00:37:01.889 --> 00:37:02.768
It's a lot of posts.
00:37:02.780 --> 00:37:04.043
It's a lot of like documents.
00:37:04.043 --> 00:37:07.659
It's a lot of things to just try to like, get in the mind meld of the organization.
00:37:07.659 --> 00:37:11.708
But good organizations don't just treat this as a tech problem, but they think of it as a people problem.
00:37:11.980 --> 00:37:20.304
And so how are you trying to upskill and uplevel your people is like one of the most important things that I think a lot of companies and a lot of leaders underestimate here.
00:37:20.945 --> 00:37:21.135
Okay.
00:37:21.422 --> 00:37:33.367
So then I guess to finish on, what-- say if a team's already got an AI system in production but d- but does not have a strong evaluation process, what would be the f- first thing you'd tell them to put in place?
00:37:33.967 --> 00:37:36.213
Oh I would have to take a deep breath.
00:37:36.603 --> 00:37:44.655
That's a-- it de- I think, first and foremost if they're not evaluating it w- let's split up evaluation in- into the two camps.
00:37:44.704 --> 00:37:49.461
Let's do the basic thing first, like I said, like error rates, latencies, costs.
00:37:50.061 --> 00:37:53.213
If they don't have that monitored, do that first.
00:37:53.373 --> 00:37:58.586
That is almost deterministic, it's easy to do, it's low cost to do, and it'll save them a lot of time in the future.
00:37:58.778 --> 00:37:59.574
So let's say they have that.
00:37:59.574 --> 00:38:03.753
Let's say they're a good or- engineering organization, so at least they know how to monitor applications.
00:38:04.726 --> 00:38:10.141
The second thing I would then-- the very first thing I would tell them to do is go figure out what good looks like here.
00:38:10.452 --> 00:38:11.304
What are your labels?
00:38:11.721 --> 00:38:28.378
That's always the first question I ask any internal team when I come across an agent or they bring an agent to me or my team, and they're like,"We wanna try to figure out like, is it doing, what it's supposed to be doing?"'Cause then the question I naturally ask them is,"What is it supposed to be doing?" There's an AI agent in production.
00:38:28.619 --> 00:38:38.268
The first thing I would ask them to do is,"You need to write out the five top tasks it's supposed to solve, and you need to tell me what does success look like for each of those tasks.
00:38:38.510 --> 00:38:52.907
And then you need to determine, do we have something in the interaction with the human at the other end that tells us they did or did not do those things?" And from those like, from that criteria, then you're like,"How do I collect my labels?" So it's all about labels.
00:38:52.907 --> 00:38:57.266
If you don't have labels, you don't know what success looks like, so that would be the exercise I give them.
00:38:58.161 --> 00:38:58.724
Perfect.
00:38:59.092 --> 00:39:02.876
And I said you've, you've-- Yeah, I love your passion, and you've had a...
00:39:02.960 --> 00:39:04.717
Yeah, it's been a pleasure having you on the podcast.
00:39:04.768 --> 00:39:05.226
Thanks, Ron
00:39:05.826 --> 00:39:06.208
Thanks, Ben.
00:39:06.208 --> 00:39:07.612
It's been great chatting today