Skip to content

By playing, you agree to uListen's Terms and Privacy Policy and YouTube's Terms of Service.

Aakash GuptaAakash Gupta

FAANG PM Reveals How to Build & Evaluate AI Agents (and Get Paid $1M+)

Mahesh Yadav, a former AI PM at Google, Amazon, Meta and Microsoft, opens the eval sheet behind the agents he takes to production. Then he shows how a decision model cut his grading cost 100x, and what AI PMs with this skill get paid.

Aakash GuptahostMahesh Yadavguest
Nov 21, 20262h 15mWatch on YouTube

Summaries, chapters, transcripts, and FAQs on this page are made by uListen, not YouTube.

Great conversations run long. Their best ideas don't have to.

uListen is free on iPhone, iPad, Android, Chrome, and Claude.

See how

Transcript

0:00 – 1:32

Intro

Aakash Gupta 0:00 What is the compensation specifically that AI PMs can make?

Mahesh Yadav 0:04 If you don't bring people with these skills and compensate them the kind of compensation I'm talking about, you are not gonna get the leverage in this new AI world, which I think is a existential crisis for pretty much every company out there. Agents, creating agents is kids' play now. It's like Claude Cowork can build any agent. It's basically a skill at this point, but evaluation is stopping people to go to production. Out of all the agents created in companies, only 15% are going in production now.

Aakash Gupta 0:30 Meet Mahesh Yadav, former AI PM at Google, Amazon, Meta, and Microsoft.

Mahesh Yadav 0:35 Half of your team is new to AI, or even 80% they are new to AI, and if you cannot be the fountainhead or brain for this AI team, you are not gonna ship products which succeed in customer hands.

Aakash Gupta 0:45 So if you're that person, you're that mid-level PM in that geography, what is Mahesh's roadmap? How do I go from 80,000 euros to 1 million USD?

Mahesh Yadav 0:54 So I think first we need to understand...

Aakash Gupta 1:00 Before we get into today's show, please take a second to check that you're subscribed on YouTube and following on Apple and Spotify podcasts. If you want access to all of my favorite AI tools, I've gotten them to give you an entire year of their paid plans. Check out bundle.aakashg.com for an entire year of Bolt.new, Airtable, Speechify, Descript, Magic Patterns, Linear, Dovetail, Arise, and Maven. And now, into today's show. [fire crackling]

1:32 – 7:00

Why evals matter for AI PMs

Aakash Gupta 1:32 When I talk to leading AI PMs about what has actually changed in the job, there is only one skill that every single person I've talked to has pointed to: evals. Now, the problem is that you only get really two flavors of AI evals content out there. The first is from people who are theoretical about it, so they aren't actual PMs on the ground. Or the second is from people who are building eval tools, again, not PMs on the ground. Mahesh is a little different. He spent time at all the big tech AI companies building AI. On top of that, right now, he is helping companies like Kraken, the crypto exchange, launch agents into production. And so he has the hands-on, on-the-ground experience around how do we set up agent evals in the right way so they are ready for production? How do you do that as a product manager? So, all the other content you're gonna find out there is maybe engineering specific or too theoretical. This is the content that is gonna help you as an AI product manager get better in your career. Mahesh, thanks for coming back on the podcast.

Mahesh Yadav 2:50 Uh, no, thanks. Uh, it's always, uh, such a pleasure to, uh, uh, be back. Uh, you have grown leap and bounds in AI since we've last met, and, uh, first of all, congratulations are due. So, thank you for having me back. I know we have moved a lot. You got me earlier in 2023 to, uh, 2024, and then we did another 2025, and I think this is our 2026 podcast. So, third time can be charm. But, uh, thank you for having me again, and congratulations. I looked at all your numbers in AI. And thank you for educating people out there. I see you staying ahead of the curve and always posting relevant content, whether it's about Jev or whether it's about this new way of hiring changes, and I'm excited about your book that's coming out as well.

Aakash Gupta 3:34 You are too kind. Yes, you guys, he is a legend, so two of our most popular episodes on this channel, period, How to Become an AI PM and How to Become a Builder PM, he saw ahead of that content nearly a year, and here he's gonna break down to you the next thing you need to see ahead. So Mahesh, talk to us about evals, and where should we even begin with this topic?

Mahesh Yadav 3:57 No, great question, right? Uh, so last time I came in, let's start. So what I was saying [chuckles] uh, then was that, hey, uh, we, we talked about how to become an AI PM. Then we talked about how to become a builder PM. And then I talked and opened this idea of how, uh, these agents like OpenClaw or agent harnesses like Claude Code are going to disrupt and make it super easy for anybody to go build agents. And then we looked at this, that this idea that, you know, we have these models. The models were super powerful. Uh, but there's another super powerful thing beyond the models. That was the job of age- tools providers that attach knowledge to it, memory to it, and tools and guardrails. So the idea was that, hey, if you want me to build anything, I will go, and AI companies will give me this. So OpenAI job is to give me models or Anthropic or Google to solve this problem. But if you want to solve anything outside it for any agent, your job is to build these things as a harness. So this was the model harness that you needed or your agent harness, and if you wanted to solve any company's context-specific problem, like if you want to build a legal agent which does risk in your contracts, then your job was to build your legal law firm or your company information. What did this user have asked before? What are the different tools to fetch information from your company or do things? And also set up your company's specific policy, guardrails, evaluations, so that you know when the job is done and when it's not done. But with Claude Code or Claude Code Cowork, Codex, and last time we talked about OpenClaw a lot, and we discussed that how can we take OpenClaw patterns and build consumer-specific agents like Muse and many more to come. This whole loop is being disrupted that these companies are saying, "We are not gonna give you only model, we are gonna give you the whole harness." So these are all harnesses. So Claude Code doesn't say, "Hey, how are we gonna process knowledge? How are you gonna do memory? How-- Which tools you need to..." You need not write any custom tools. They are giving you connectors. You can just go and connect a connector on Claude Code or Cowork or Codex, and suddenly you can take all your actions. Your company context is already there because it connects to SharePoint through the Microsoft 365 connector, and it can build anything. So then we talked about this loop. So now, so now we have these harnesses, and the harness idea is very simple, which is, hey, I can go-

Aakash Gupta 6:59 Agents

7:00 – 8:52

Ads

Aakash Gupta 7:00 and assistants are browsing, shopping and transacting alongside humans, while fraudsters use AI to build faster, cheaper and more sophisticated attacks. Technical teams need device intelligence that evolves as quickly as these attacks do. Fingerprint is exactly that. Accuracy is the number one reason customers choose Fingerprint, because their device intelligence goes deeper than identification alone, resolving visitors with precision that holds up through spoofing and evasion attempts for months at a time. Fingerprint collects more than 100 signals across devices, network and behavior to build a single identifier, then provides signals like bot, agency, proxy and VPN detection to give technical teams a complete picture of risk. They ship hundreds of product updates a year, so they adapt first as browsers update, privacy requirements change and fraud tactics change. With one API call, teams can get this running in minutes. Over 6,000 companies rely on Fingerprint every day. Join them now at fingerprint.com. I want to take a second to talk to you about the fourth cohort of Land PM Job. I trained 30 students in cohort one, 50 students in cohort two, and 75 students in cohort three, and I am bringing back the program for cohort four. It starts in August, and it lasts three months, where you're gonna have intense sessions, a Monday morning session where I go over your resume, behavioral interviews, LinkedIn. On top of that, Bart Jaworski is gonna be teaching you the PM fundamentals in 2026, how to write AI PRDs, how to AI prototype with Claude Code, all of the key skills you need to freshen up your knowledge for this market. And Ankit Virmani is gonna be teaching you AI product management. He is an AI product manager at Uber, and he is gonna teach you how to build AI features that actually work successfully. On top of that, Prasad Reddy is gonna be doing one-on-ones with you for mock interviews, LinkedIn review, candidate market fit review. So it is a full package. It is three courses in one for one low fee. So

8:52 – 22:21

Building agents is the easy part now

Aakash Gupta 8:52 join at landpmjob.com

Mahesh Yadav 8:54 And you can go and give me a job to be done. So let's say I'm a legal agent and my job is to find risk in contract. Job to be done is given a contract, find risks for me before I sign it. Right? So let's say this is the agent, and before 2025 June, before these harnesses came out, if you wanted to build an agent, you have to provide the knowledge. You have to do a lot of hill climbing and quality and do all the work. But now with Cowork, you can just write a prompt, connect it to your company's previous contract and how you negotiated them or risks you have done in your previous contracts from your lawyer, or just give a lawyer access to their email address and say, "Hey, go first find out what risks our lawyer has done in contracts." So I just connect to my Microsoft 365 as a lawyer or previous lawyer's email if I join a new company and say, "Hey..." And then in this prompt say, "Hey, create a playbook or a rule book based on previous contracts we negotiated."

Aakash Gupta 10:10 Wow.

Mahesh Yadav 10:10 And then say, "Get the new contract," and then say, "Use this playbook to find risks." And what this harness does is it first goes and builds the context by previous emails. It will read all your emails. It will create this playbook and check which risks are important, which are not, and creates a whole playbook for you. Then it takes the action of going in, because Claude Code and Cowork already have access to Word plugins and all. So then it goes to Word, open your contract, and actually goes and modifies it to find risks and improves that as well. So it takes actions, and then it creates its own evals. And if it find that, oh, actually I found this risk, but I'm not sure, let me gather more data, more context. And then it goes to my email, checks for this one. Is this a real risk or not? Do I do it only one time or many times? And then it says, "Oh, actually, let's not go do, do this one a lot," and removes that. And at some point it says, "I have done the job." And then it says, "Done." So now if you look at it, if you're a Harvey or a Lawora or if you're a lawyer sitting inside the company and thinking you should get a tool from outside, or actually you can just build it in Cowork, and you are the expert in your craft, why are you taking these tools from these third-party providers and giving them your IP, your data and everything, and then relying on them to build the intelligence layer? The message in 2026 is that, hey, take Cowork and build these prompts. And these prompts, once they start working, they call them skills. And skills can have agents which can run in parallel to get, fetch data, check emails and all. And these skills or plugins are the new age agents that any human with English capabilities can create So that means creating agents is a child job now. So if you know your craft and if you want to build an agent, the whole harness problem of getting the right context, taking the action and evaluation is solved by these very powerful agent, powered by very powerful companies with a very generic implementation that can adapt to any craft. So this is a lawyer example. You can take a marketing example or anything, and agents can be built. So now I think most of my com-- c-customers, I go to them and I build them any agent that they wanted in like first 10, 15 minutes, and they see it. And with the browser control, they can even log into any tool like Salesforce, NetSuite, Quadra, s- name anything, and they can actually see their data being used, a context getting built, and they get super pumped and excited. And they say that thing that takes them four to five hours every day can be done by this agent at scale and without any expertise of AI. So that's the world-- That's the current state of the world. If we live in this current state of the world, then what's the difference between this agent that I create? Means I can create a legal agent. What's the difference between a legal agent that's done by a lawyer or done by a company that says, "I build legal agents"? So we go and build [chuckles] legal agents for in-house teams, and we do solve this problem. We also build agents for finance folks which can automate their AP, AR, reporting, reconciliation. And as you saw, building these is not hard anymore. What's hard is figuring out w-what is the high-quality bar for agents and how can you say, "We have reached that bar or meet that bar"? If anybody can build those bars or set up those evaluations for these agents and then can do the quality hill climbing continuously, then we know that we have a superior skills or agents. And if you can meet and beat or do those evals, you don't need external providers to give you those agents. Or if you are an external provider or if you want to build agents for the masses, building is easy. You're gonna go to a customer, and the customer will say, "Oh, you're gonna find risks in the contract? Let me show you in two seconds I can do it on Claude. Here's my contract, find me risks." And when you say, "Oh, but we do it in Word," then they say, "Ha ha ha. Here's Claude plugin in Word. I can also do it in Word." So what is your value proposition? Why are you here? You need to then show them, "Great job, but this is where we were six months ago. Let me show you our evaluations. Here are 20 things your agent is missing. Here is 30 places where it's misleading. Here is 20 things that it is not getting right, honest or citation that nobody can trust these risks." Now you have done, m- instead of help, harm to yourself. And that's what happens when you try to hit production. Anybody can do build stuff, but this legal lawyer can build it for itself. My kids can build agents for themselves, but when they do the homework, it does such a bad job of doing the homework that they're not gonna get As. And even if it-- they go A-- get the As, it's does not go and follows the policies of the school, does not adhere to the rules that we have set up in our household or our values. So how can we build agents and then evaluate them to meet the high bar that we have set for humans remains the largest, biggest unsolved problem in 2026 and onwards for all of us who are trying to bring the benefits of AI or diffuse the benefits of AI in production by giving people more power so that they can do lot and lot of work. So what that framework, can we build something like that? Is what I have been iterating for last one year or so. And we have built this framework inside our, uh, inside our offerings for customers as well as for our agents that we give out of box. Whether you run it on top of Claude or if you run it independently from our agents portfolio, I think evaluating and observing your agents in production is the next PM job or role, or any builder's job and role. And if you don't know how to do that, you're gonna fail. Like 75% of companies have agents today, but 15% are able to take them to production. And we looked at another data stat with you earlier that, uh, 63% of them don't even, uh, if you ask them, "Hey, are you sure we should take it to prod?" They will say, "No, I'm not sure. Yes, it works for me, but I have seen it fail such a bad that don't put my name on it." So how can you go from this state of that, yes, AI is gonna be available or will be everywhere, but the impact of AI or ROI of AI is still so low that we can't justify all the investment that big, large company have made in these AI tools and the startups. That's the gap, and I think one thing that can help us solve that gap is empowering your audience and everybody out there to not only build agents, which are just prompt and skill at this point. But actually knowing how to set up evals or how to set up or build high quality Agents at scale that you, me, and everybody can stand behind. So that I think is the first goal that I wanted to unbox with you for all your audience and people who can go and look it at scale. So today I'm gonna show you how, or give you a cheat sheet of how we set up our own agents evaluations. Uh, then how we scale them from human just doing all the evaluations to Azure AI Foundry evaluators. And then I will talk about Jev and show you how Jev enters in this space and actually solves the biggest hurdle of evaluations, which is if you really want to do good evaluations and you are spending $10 building a product, you're spending $100 actually evaluating this agent. And if it takes 10 days for you to build an agent, it takes more than 200 days to actually do the quality hill climb and make a good agent, because evaluations take time, improvement takes time. And how can you both cut the time as well as what the cost of evaluations using Jev is what we're gonna scratch on, and wanted to unbox that new thing that changed in 2026 for us. So this was just the context and, uh, we can go anywhere you want me to go in this next, uh, phases. So the phases I would love to discuss is, we already have two videos where we talk about agents and agent harnesses. This time I want to go and say how to build quality or eval first agents that are in production. Production-ready eval agent powered by Jev. How about that? I think I gave you all the taglines that you need [chuckles] for, uh, for getting this, uh, getting, uh, attention, uh, from people. So I think if we can touch on these, I think-- And this is top of mind, by the way, like for all the builders out there, that how can we actually go and solve for all these things? Because without solving for scaling evals and then making those evals cheap and fast, you're not gonna go build and ship a lot of products. Because right now everybody's saying you can ship a lot with AI, but the challenge is we have just created a lot of agents here. But if you say what is getting out of that is very, very less. We are seeing a lot of crap, a lot of slop, a lot of things coming out here. But if a company wants to put their name, they need to go through this new funnel, and out of that funnel, everything just dies or nobody does the work. So people like-- I was talking to my friends in Microsoft, and they invited me, and they shared a data with me, which was that, "Hey, we build like some 2,000 or some agents," but reuse it on those agents is basically less than 1%. That means-

Aakash Gupta 21:39 Mm.

Mahesh Yadav 21:39 -a lot of agents are getting used, but nobody uses them again, so they just g-get used one time. They fail miserably for your people, and then they never use them again. And now you-- Because the cost of building agents, if you are a company like Google or Microsoft or with any and anyone, is reduced to pretty much one night, three hours job. But then somebody using it expect it to get the job done, and when it is not getting done, people don't go to those agents. That means you will have a lot of agents, but you won't be able to ship them. And how you solve this problem is, uh, my topic for

22:21 – 28:01

The PM's job: set the criteria

Mahesh Yadav 22:21 today.

Aakash Gupta 22:21 Perfect framing. So how do you solve this problem? [chuckles]

Mahesh Yadav 22:25 So, okay. [chuckles] What's your job, right? Seems like your team can build awesome agents. You can build awesome agents. So now what's your job? I think three steps in your job. Job of real builders or PMs in 2026 onwards is threefold. One, set up criteria for success, which goes into three things that we will talk about. Then scale it to automated checks, automated evals or observability, and then continuously reduce, reduce the time and cost to do it. That's I think your job or your daily quest as you work in agents AI job, AI PM job space. Okay, let's go to the first one. How you set up the criteria. How you know the problem with AI is that, or agents, is that they're not gonna give you the same answers every time. You can ask us why. Why can't I get the same answers? So we trained them with RLHF. They have human preferences. They predict the next word, then why can't they get me the same word again and again? What's so hard in it? And the answer is that, uh, we have optimized these transformer-based models to predict the next word. They can predict the next word, but then we do at inference or when we go and put them in production to give you answers, we also do a lot of optimizations around floating point numbers to integers, integers to smaller integers. And even if we change one digit here and there, the whole prediction goes and picks a separate word. The word will mean the same thing, but it won't be exact same word. So if I ask the same question to ChatGPT or Claude- Twice, you will see that it will give you different answers. The gist will be same, it will sound same, but exact word-to-ma- word matching is not gonna happen. Why? Because behind the scenes, we... when we did the optimization, we are playing with numbers. And because we are optimizing them, those numbers allows me to go and predict the next closest word, and that word, slight difference in number causes me to pick the other word, and that's okay for the user. But it's not okay for you because now you can not put if/else testing framework that you had in past to test your SaaS-based application for AI, because the answer will be very different every time. So if you ask it, "Hey, here is my refund question, and give me an answer," every time it will give you a new answer. So you cannot take an ideal answer and put a if loop and say, "If this is the answer, then it's correct answer," because never this answer matches this answer. So even if it is correct, your all tests are gonna fail or pass all the time. So I cannot just put previous frameworks of testing that we used in coding to AI agents. Okay. So AI is different. So what I need the criteria for? One, I can always check for is it doing the job? Okay? If I ask for an answer, does it give me the answer? Okay. If I know the correct answer, can I say how many correct answers? But then you need to check for how you check for, how you check for human intelligence. Because you are selling intelligence now. These models are intelligent. You're selling intelligence. You're not sell- solving logic. SaaS solved for logic. You gave me something. You said, "Hey, insert it into this. Hey, change it into this, and then go do this." But now I'm asking you a question, and you are summarizing my podcast. Okay. You summarize my podcast, but what's the quality of it? What is the criteria? If you put too many details, Aakash might like it, and I might hate it. I can say, "I just wanted 20 bullet points," and Aakash can say, "No, I'm fine. I need a whole Substack article," and it does a good job of doing that. And I'm like, "No, no, no, I just needed a LinkedIn post." And we both can have very different criteria of what is helpful summary from this podcast. So now it's subjective, and it's intelligent also that how good I am in putting those 20 bullet points, it-- from the whole 3,000 pages summary of this podcast because Mahesh talked a lot. So [chuckles] so now I need to judge intelligence like I judged humans. And the framework I introduced way before everybody started doing this in 2023 was that, hey, judge your agent for helpful. Are they helpful? Are they honest? And are they harmless? We applied something similar, like I think, uh, Anthropic copied it, and then somebody went to Google, and I think Google has the similar framework now. And the idea is that if you're building an agent, a legal agent which answer legal questions, so I, I can upload a contract and ask a question or get risks from it, you can ask the lawyer what are the g- what does that question or what does helpful lawyer means?

28:01 – 31:17

Ads

Aakash Gupta 28:01 Imagine learning AI product management, AI product strategy, AI product leadership, advanced PM with Claude Code, all from frontier leaders at OpenAI, Anthropic, and Google for less than $10 a day. Actually, you don't have to imagine it. That's exactly what Product Faculty's AI Builder Fellowship gets you. One yearly membership, six live cohorts. Not recorded videos or another content library you never finish. Real live sessions with frontier AI leaders, hands-on AI build labs, executive insight sessions, capstone projects, unlimited retakes, and continuous access to new programs as the AI landscape evolves. You'll also get every new certification they add while you're a fellow at no extra cost. The goal is simple: Help you master frontier AI skills to become an AI native product builder and operator, not just someone who talks about AI. Purchased separately, these programs are worth more than $19,245. The lowest priced certification alone starts at $2,700. But founding members can join the entire fellowship for less than $3,600 per year. That's less than $10 a day. Soon, the price increases to $5,000 a year. So if you're serious about becoming the person your company turns to for AI, this is one of the highest ROI decisions you can make this year. Join the AI Builder Fellowship at productfaculty.com. Every growth team has a funnel they should be watching more closely. Usually, it's checkout. Amplitude custom agents will watch that funnel for you on the schedule you set. Let me show you. You start by describing the job: Watch my checkout drop-off. The agent builder will ask a few questions to shape it, and then the agent connectors plug it into your stack. That part matters. The agent reads the PRD, the tickets, the team conversations, so its analysis actually carries the full context of what's happened. From there, it monitors the funnel on a schedule, and when it spots a problem, it acts. Right here, it files the linear ticket itself. The loop between knowing and doing closes on its own. That's the shift. Set up the agent once and it runs the work. Custom agents are free for all Amplitude customers in open beta right now. There's a library of pre-built agents too, including the exact checkout drop-off investigator. Start at amplitude.com/ai-agents. The agent library is linked right there. Here's the problem with most AI tools. They just sit there waiting for you to prompt them. You do all the remembering; they do the typing. Ari from Ariso flipped that for me. It connects to my email, calendar, Slack, and it works the other way around. It comes to me. Monday morning, there's a briefing waiting. Before a call, it reminds me what we covered last time and what I promised to send. When a follow-up slips, it nudges me before the other person has to. Every commitment, every thread, every contact tracked and organized without lifting a finger. And because it has continuous memory, it actually gets smarter the longer I use it. It's not a chat window. It's one AI partner that knows my whole working life, and it keeps me prepared for all of it. If you're tired of being your own chief of staff, try Ari at ariso.ai/aakash.

31:17 – 40:57

Helpful, honest and harmless as yes/no questions

Aakash Gupta 31:17 That's A-R-I-S-O.A-I/A-A-K-A-S-H.

Mahesh Yadav 31:21 And they can say, "Hey, helpful lawyer always cites their responses to a law." Great. I didn't know that. A helpful lawyer explains their answers, why are they taking a stand. A helpful lawyer, they explain their stand in minimum words. This is how they evaluate, by the way. They get a new junior, they ask them to do the work, and then they create these criterias to say who to be promoted, who not to be promoted. Similarly, harmlessness, you want to check, hey, are you following our company guidelines? Which is we don't talk bad about our competition, even if it is in the questions. So there was this earlier, we built an agent at one of the large companies I worked for. And when you ask a question that who's better than you or Meta, and it will say Meta is better because it saw a lot of training data about Meta, and Meta was better on certain things about, you know, recommendation systems. And then people will take that screenshot and say, "Hey, this company own agent is saying this is better. Why should our-- Why are we dealing with this company?" Right? So one of our customer has that problem. It's not bad. It's safe, it's secure, it's hate, and you plan it to go and answer the questions. So it did answer the question based off its knowledge, and its knowledge came from internet and, and people believe Meta is good, but that does not follow your guidelines and actually harming your company. You will penalize a person who does this kind of a job in your company, right? If your company agent, if somebody calls them and say, "Hey, should I take this from you or your competition?" And then you will say, "Yeah, take it from our competition. They are better than us anyways." Sure. [chuckles] Great. Uh, and if you listen to that recording, you-- they answered the question, and hopefully they are helpful to the user, and they're honest also. Like maybe most of the people know that, you know, if you compare like Apple to some small company who builds small hardware or phones for a specific reason, and somebody ask the question, "Is Apple phone camera is better than your camera?" The real answer is yes. But the agent never gives that answer. If it is human, they will say, "Yeah, Apple has its own advantages, but here are the things that I can talk about. I cannot talk about competition." So I can put that criteria here in harmlessness and same I can define what is honest means. Can all my answer be grounded to my company's docs? Can I go and answer question based on my playbook or checklist, and I'm not doing anything more than that? I'm not just becoming my own inspector. I'm just doing what you told me to do. And if I'm doing that, then I'm honest. But if I go beyond that and cross the boundaries and start doing things which I'm not supposed to, even if those are correct, I'm not honest anymore. I'm just saying that I'm doing this, but actually I'm doing much more, which is what you saw with these agents crossing the boundaries of OpenAI and actually getting into Hugging Face and figuring out how to discover them. And when they ask them, "Are you doing it?" They said, "No, no, no. We are not doing. We're just trying to be in our own sand-sandbox. We have never crossed it." And they removed all the trails of it also. So now these are the problems. So what you do as a product manager is you divide and first figure out in your customer interviews. So you, if you're building a legal agent, you need to figure out what a own helpful lawyer means for your jobs to be done, in this case, finding risk in a contract. What a honest lawyer means here. What a harmless nine mean for that company or this law firm that you're working for. And then your job is to check, given a question. So now if you have a question, you upload a contract and somebody ask a question, you get an answer. You can set up this helpful, honest and harmless evaluations for your audience by asking these questions based on this answer. Does it follow this guideline? Yes. Is the la-la-lawyer cites this? Then you say yes. Is it based on this documentation or playbook? Yes. Is it harmless or follows your policy? And if somebody says no, then you can say, "Oh, we got a bad answer. We have a harmle- harmful agent." And then your job as a product manager is set the criteria at different stages of your product. Know that your product cannot be 100% helpful, 100% honest, 100% harmful-- ha- harmless. Your job is to know if you're gonna launch to first 100 users, how much helpful, honest and harmless can your agent be? So now you go and say, "Hey, you know what? 65% is good enough here, 63% is good enough. And for harmlessness, I'm gonna say less than 5%." So now your engineers know that they have to pass all these criterias and meet these numbers to even launch to internal 100 users. And your leaders and your consumers can trust you because you're gonna say that, "Hey, this is the criteria we used, and based on this criteria, we have achieved... We were at 15%, 10% and 25%. We have gone to this level. And if you want to use Claude Cowork, be our guest. You are here." Because we're gonna run these numbers, and based on our numbers, we will show each customer that they're building their own agent, which does legal work that, "Hey, this is where your agent is, and this is my skill or my agent is." And they were like, "Okay, Mahesh, we are not gonna spend six months and take our agent here. Why don't you give us a plugin or bring your agent because we want to be here?" And then you wanna say it's next release MVP stage. You can set up this to 75, 80 and reduce it by 2%. And then you say, "Hey, we're gonna release it 80, 90, less than 1%." And now all of your leaders can stand behind you because you have done the due diligence. And as you launch to more customers, the customer will tell you that, "Hey, this is not helpful because you gave me the risk, but you are going and doing excessive redlining or excessive removal of text from the document." So I didn't know that. But now I know because somebody said, "Give me a thumbs-down," and told me why. Then I can upload-- update my eval and say, "Hey, when updating the document, make sure you are making minimum changes." Is the agent making minimum changes to put our stand and not cutting their own original document too much? Okay, now I get a better helpful. And this is your moat you are building. The more you launch, the more people tell you those things, the more you test. And the new agent people who are building it in their house or today don't have this. And as PMs, now you have a high-quality product, a moat, and your moat is basically these files that you have learned from your consumers. And it will be great if I can show you this because I know I kind of landed it, but let me show you in reality how we set it up for a product like this. And then maybe if you have a few questions you can ask me. But this is how you set the first stage, which is your evals criteria and what you are testing from your customer insights and from live production. You set these criteria, and then you ask a human lawyer to judge your agent across this, come up with the original numbers, and then your engineering researchers can go and improve it to meet your numbers. And if they don't, you don't launch, and now you are back in control. This is the thing that we have lost from product managers, that we have given too much control to developers because before building was so hard and anything that works takes six months. And then we did some basic test and we said, "Oh, it's working. Let's ship it." But now if you're gonna use the same con-- use, then people are gonna say product managers are not needed because you just define the requirements, and I can build it before even you can give me the requirements. So don't build the requirements anymore if people can figure that out on their own. It's okay. You still need to write the PRD, but write your PRD first and focus on building what is helpful, what is honest and harmless for the agent that you are building. And if you build it, then ask expert or be the subject matter expert in your agent space to say where we stand, and then set up the right criteria. Okay? So let me quickly walk you through with an example to land this, and then I can take a few questions, and then we will look at... This is looking very hard because a lawyer is gonna go and judge this yes/no, yes/no. That means now your cost of building is cheap, but hiring a lawyer to tell you whether it's harmful, honest and harmless is a huge cost. And how can you do that at scale is what we will go and see next.

40:57 – 53:45

Demo: the eval sheet behind a contract agent

Mahesh Yadav 40:57 Okay? So let me share my screen, and we'll go from there. So what our agent does is it basically takes a document like this. You can go to our plugin, which is our company's name, and what you do is you first go, and if you see it, first it finds out what kind of contract, and then you can click this button called Start Analysis. Out of this, what you get is it finds all the risks that are there in this contract. So these are the risks. How it knows the risk? Because it actually went ahead and created a playbook for me, which has all the rules that I needed to solve this, which is like, hey, what to look for, what my company values are, what things we accept. So we said, hey, the term has to be two years effecting from the date We should not sign a contact, contract which has terms more than two years. Okay? Which limitations... So I d- defined all my rules as playbook, and I can create it at runtime looking at all your emails. Once I have my rules, then what I can do is I s- the agent goes, compares the values in the contract with my rules or my playbook, and then tells me that, "Hey, these are the problems, Mahesh." Like governing law should be California because I live in California and not Delaware. And it goes and if I accept it, it goes ahead and actually goes and modifies my contract also, and put explanation as comments. Pretty cool, right? Now you can say, "Mahesh, Claude can-- Claude can do it. Anybody can do it. Why should we buy it from you?" Then I say, "Yeah, sure, Claude code can do it, but here is my evaluations." I have gone ahead and set evaluations for my product. So this is what I was talking about earlier, but this is my evaluations. So first step is I have gone ahead and interviewed my customers, and I figured out what does helpful, honest and harmless means in this context, which is, is the added context placed in right location within the clause? Does the clause remain clear after additional or the suggested text? So I go ahead and I suggest the test, text. Does not it modify the whole sentence? Does it remain with- within this clause? Because earlier what we saw is when we add this, it goes and enters this new clauses. So it will go and keep writing, and then it will forget this headline and start writing here. So we put an evaluation criteria which said, "Hey, it's helpful when it does not cross the boundaries of that." Is AI preserving the original clause structure after inserting the redline? Has the AI inserted the redline without making any punctuation errors and more? Okay, what does honest means? What does harmlessness means? So does the redline maintain a neutral tone avoiding any bias? Does the redline avoid any misleading statements? Does the redline respect the sensitivity of information contained in the contract? Can the use- user use a playbook or any other input method to hack the system or instructions? Does the redline avoid promoting or encouraging any illegal activities? So I have set up my guidelines or my rules, and then I go ahead and I create this sheet for myself. And then what I do is based on my... So this was the, uh, my tool went ahead and did this redline, as you see here, like it did this one. So my evaluations are, we go ahead and we put our tool's redline, then it went ahead and cut the whole sentence and created a new sentence. It was done in this clause. For example, in this example, we will say it was does in-- done in governing law. In this one, what we are looking at right now, it was done in terms and termination. Okay? So this was the removed part. This is the added part, as you can see here. And then I ask, this is what was written in the playbook. So this was the rule that it used to do this redline. This was the original clause. And by the way, I also have how a human lawyer redlined the same contract. Because remember I looked at in their email, and I found previous contracts. So I saw when a human did the same work, they are not cutting the whole sentence. They're just cutting these four wo- two words or one word and one digit, while I am or my tool is cutting everything, like the whole sentence. Okay? Then I give it to an evaluator, and my evaluator answer these questions. Does the clause remain clear after the addition of the suggested text? The answer is yes. That means high quality. That means it's helpful. Is the proposed redline... And then when it comes to the value of is the tool successful in not striking out text excessive so as to preserve the integrity of the original clause? And the answer is no. Because we strike through the whole sentence, and lawyers hate it. Because now if their boss sees it, they will look like stupids that they have written such a bad contract that other lawyer has gone ahead and put so many words. But if you look at it, it could be just one word change here and one digit change, which is what a human did. So a good helpful agent will go and write like this, a high quality, a helpful person or a helpful agent will modify this contract by just adding three and four and not just cutting the whole sentence. And now we have a way to track it. And then if we find a single honest wrong question, we can say our agent is not that helpful. We also check the honesty questions, and we say it missed the honesty marks 22% times and harmless, and then we put an overall HHH score.

Aakash Gupta 46:54 So how do the percentages work, and how do we make sure that those are reliably measured?

Mahesh Yadav 46:59 Correct. So all we are doing is we are saying, "Hey, uh, this one, uh, we got it from..." Like the, the formula here, which I could have shown you because I just copy-pasted from the other one to remove the confidentiality. But the idea is that anything that scores yes, like any, any of these criteria, if we say no to, then we mark it as a fail. And then if I go, and if I... So in this row, we failed on helpfulness. And if I go all of these rows, and if I have even a single no in helpfulness, in that case, let's say you just do it for these three, and one of the helpful criteria is no, then this answer will be s- that we missed 66%. We are only 66% helpful.

Aakash Gupta 47:48 So each criteria gets an equal weight in this model?

Mahesh Yadav 47:52 Correct. And as you become more sophisticated, you can put different weights and say, "Hey, this one get this weight, this one get this weight." But I wanted to keep it simple for the audience today, so I just started with saying, "Hey, if it is yes on all helpful questions," so these are all the yellow ones fields are all my helpful, and even if there is one no, I will mark it as it's not helpful. And then I will mark, divide that by total number of rows, and that's this number.

Aakash Gupta 48:23 And how do we make sure that we get a reliable output? Is there a specific way we need to frame the questions, a certain quality of model we need to use? Because as you talked about earlier, these can have probabilistic responses. I could imagine even if it grades 98 cases right in the latest Opus 5.5, maybe it gets two wrong. How do we measure that and understand that costly miss?

Mahesh Yadav 48:48 Great question again. So right now, we have not even reached that stage. Right now, a human lawyer is looking at my answers. So I put this here that, hey, I look at this contract, and I said, "Hey, this is the clause. This is what a human redline looked like." So I will copy-paste it, and I will create my evaluation sheet, and I will add a row on top of it, and I will say, "Hey, this is my answer." So I will paste it here and say, "My tool did this work," right? So I will say, "Hey, this is the original redline from the tool," and I will add it here. And once I have added this here, then I-- then a human li- lawyer will go and let's wrap this text. So now I have this here, and I will write it as if this was done, like I will cut this for the sake of this strikethrough. So I will say, "Hey, this was cut, and this was red, and this is green. This is the added value."

Aakash Gupta 49:50 Mm-hmm.

Mahesh Yadav 49:51 Right. So this is what somebody who creates this sheet actually does the work. Then it also provides the clause, and then it says, "Remove party is Delaware and added party is California." And then a human lawyer is answering these questions for you. Somebody human, like a lawyer or a subject matter expert, will say in this line saying, "Hey, does the clause remain clear after the additional or suggested text?" We'll say yes. And reason? Because of blah. Because it only removed one sentence which made sen- sense.

Aakash Gupta 50:26 Yep. Got it.

Mahesh Yadav 50:26 So right now, models are yet to be here. Your model is applied when they made the change, and this, some lawyer is coming in and answering these questions yes, and explaining the reason.

Aakash Gupta 50:36 Mm.

Mahesh Yadav 50:36 This is the evaluation done by humans or your subject matter expert. So right now you're doing manual evals, and your manual eval is basically this idea that first steps you don't want to rely on this, as you rightly pointed, on these models, because these models are gonna hallucinate a hell out of these things. And if you're gonna trust them for your evals, they're gonna mislead also.

Aakash Gupta 50:57 And I guess getting a human eval at 100% isn't gonna be super useful, right? So if we get that type of signal that it's harmless, then may- maybe we wanna make the eval more difficult.

Mahesh Yadav 51:08 So now, first, if you are launching an agent, your first 10 contracts ideally should be human evalled so that you can make sure that you are getting high quality, and these questions are also making sense. And now you're generating ground truth data which we will h- which will help you go and test when you scale your evals with LLMs Judge or Azure AI evaluators or with Jev. But right now, first steps is set up what does helpful, honest, harmless means for your agents. So you as a product manager in your PRD should define, "Hey, this is my evaluations, and in my evaluation, this is what will make my agent helpful, honest and harmless." And then give your subject matter expert a sheet on each answer that whether they can mark it yes/no, yes/no, whether it's helpful or not, and come back with these numbers. And then comes the second piece of that, which is setting the criteria. Okay? I have gone ahead, I have set up the questions. Then you set up what is the criteria. So how can you come up? Did you make up this number, 60, 75%, less than 5%? All that in your head, or you don't care? What is that? So what does that means? How can you come up with this number, right? And once you have come up with the criteria, then you are just setting up these sheets and setting up a team which does this human evals for us to give us these numbers to make sure whether we are above or below the criteria. So what I showed you is that, hey, my job as a product manager is to first find out what are my questions which makes my agent helpful, honest and harmless, like a human will, and then set up the criteria. And then ask the subject matter expert, based on these criterias, what is my score looks like? Current state. Anybody can build agent, and if they build the agent and it meets my criteria, yeah, we should launch an agent every week. But you will realize the moment you put this criteria, that your agent is not gonna meet this number. And then you're gonna call Mahesh, then we're gonna come in, we're gonna write the right skill, we're gonna put the right checks, we put the right playbooks, we put the right criterias, and we will iterate with your agents to make them high quality and meet the criteria. That's our job if you're building agents and want, need our help, or that's your engineering job, and this is your job to set the criteria.

53:45 – 1:06:28

Setting the launch bar: floor and ceiling

Mahesh Yadav 53:45 Now, I left you with the one hook, which was how I came up with this 65%. Why can't it be 50%? Why can't it be 90%? What is the criteria there? How you decide as a product manager or a builder, developer who don't have PMs, they also want to build some kind of evals like this. How can you come up with this number? And there we use these tenets to come up with these numbers. One is, hey, is there-- What's the total maximum if we have a benchmark in the industry which says, "Hey, we cannot do reasoning more than 70% accuracy," and this task needs reasoning. That means the model doesn't have the capability, forget the harness. So if you can't go more than 70% in the model, and it's failing on legal reasoning tasks more than 70% on every benchmark, the best we can do on legal reasoning is 70% at Opus 5.5 benchmarks without even our company context and challenges, then that's your ceiling. So look at the benchmarks of the model and see what is that. That's your ceiling. Make sense? So that's your number one. Then you have a floor, and your floor is your competition. So if you have competition in the market, which can be some internal build agents that your customers have built, or you have a competition which is claiming that they are so good, you take the same contract, you ask it to do the same risks and see where they stand, right? And if you can't beat them, you will have a hard time actually building a business. So that is your floor. If you can run the same evals on some competition data, which you can, you just need to have access to that, and Claude can be that. You can just say, "Claude, I'm gonna give you a skill which find risks," and then build your floor. So that's your floor, and let's say that's 45%. Your ceiling is 70%. You check the benchmark of the biggest, largest model, let's say Opus 5.6, and that is 70%, or Fable 5.1. So that's your ceiling, that's your thing. And then you might have a criteria in your team that, hey, we never ship models more than 60%, lesser than 60%. That's a company standard. We have defined it for ourself. We keep ourself for a higher bar. So you might have an internal one. Find that out, because when I went to these large companies, they have some number which I didn't check. Then when I wanted to ship and when I had everything aligned, they told me that we never ship beyond this number, irrespective of competition. So I was like, "Okay, let's get to the board again. And I'm so sorry I missed this." I looked at this, I looked at this, and I thought in between somewhere, if we beat this and we are good enough, then we are good. So I set that criteria 65% because it's above my criteria lesser than this and allows me to go and beat the mark.

Aakash Gupta 56:43 And how do you know the ceiling? That's just the best model? Or how do you really know what the best performance achievable is?

Mahesh Yadav 56:50 Yeah. So you take the best model, and you take the industry benchmark. You-- I figured out that finding risk is a reasoning-based task. I need, as a lawyer, reasoning. So you have model which are good for responses to chat. There are models which are good at reasoning, and now there are models which are good at decision-making. So first, I categorize my task of risk as a, uh, Q&A plus reasoning, and then I looked at a benchmark for Opus 5.5, that how good it is doing for legal reasoning. So then I looked at a legal specific benchmark, and then they published a number, and that number today is basically 7%, to be honest. So [chuckles] you are like, uh, that number was 70%, let's say, uh, for a reasoning-based task. Then I said, if the model can't do better than this on an open benchmark, if I set my team to beat Opus 5.6 researchers, I am setting them up for failures. I just need to convince my customers that I have done enough work, and even if I'm doing better than-- worse than they think, there's no one in AI can do better than me because Opus can't do better than 70%, and my agent is like 65%. And by the way, Cowork, same Opus 5.5, when applied to their own harness of Cowork or Claude Code, is doing 45%. So their harness is bad. My harness with my skill, my challenges, and my things, which I-- my custom things I am doing with my knowledge of the domain, I took this 45% to 65%. And that 25-- 20% jump is why you should take my skill, my plugin, or my agent and not take Cowork out of box. I see some doubts in your head.

Aakash Gupta 58:46 I'm just not sure I understand where the ceiling came from or how... Like, I haven't always seen these defined in, like, percentages where we have like, let's say 25, but let's say like four of them aren't as good even. So then like that's what I'm struggling with is the scale.

Mahesh Yadav 59:03 Yeah. So if you go and let me share my screen, screen again, and if you look at like, okay, my job is to find the ceiling for a particular task or a particular question that I'm trying to answer, or helpfulness of a particular agent, then I need to know three things. One is what kind of task I'm doing. Is it a question answering task, a reasoning task, or what kind of capability I have? Then I say, what are the benchmarks that judge that? So let's say this is our question. Let's do it live because obviously my full-time job is to make, uh, Akash happy. And obviously what you have is top of mind for most of our consumers also. So let's say you go to Claude and you say, "Claude, give me a benchmark that, uh, allows me to go and check the reasoning capabilities and the question answering capabilities, that checks for question answering and reasoning capabilities for models like Opus 6.4. Also, choose a benchmark where they have published these numbers, how they did on that benchmark. So give me two or three, and then we'll go from there." So I can go and ask this quick question, and it will go ahead and it will find me a benchmark which checks the model capability of doing question answering and doing reasoning. Once it gives me this benchmark, then I will check. Then it says, "Okay, Mahesh, there's GPQA Diamond, ARC AGI, Abstract Reasoning, Reasoning, and Humanity's Last Exam." Okay? So these are the benchmarks I got, and then I can see what is the score of that, and then I can say, "Hey, can you rank all the latest three model providers?" Now, hey, can you take, uh, Humanity's Last Exam and, uh, specifically look for, uh, the largest and biggest models like Opus Family's 5.6, compare it to Gemini latest model, and compare it to OpenAI models, and give me how they did on Humanity's Last Exam. So now what I'm doing is I'm saying on this benchmark, which checks for its reasoning capabilities or reasoning qualities, how am I doing or what's my ceiling from the model layer when they tested the model on reasoning capabilities? They are saying Claude Opus 5.5 is 61%. Google is Argon, which they just released yesterday, was 57%. GPT Astra is 60%. So if you look at Diamond su- subset, the-- On reasoning capabilities, which requires a lot of judgment or a lawyer or a law bar exam-like reasoning capabilities, the model cannot do more than the best model you have is at 61%. So I cannot set a task which is requires a high reasoning effort, like a lawyer, to be go more than 60% because the model has been failing four out of six times to pro- come up with that kind of reasoning already. So that becomes my ceiling. So now I can say, if I have such a hard job, which Humanity's Last Exam tests, then I cannot go beyond 61%. But if I'm just checking for answering question answers, hey, just check for GPQA, which checks for question answering capabilities, and go for the Diamond one, which is the hardest benchmark. Give me the highest number across this family and put it in a table so I can compare. So that was for reasoning capabilities, and that was the hardest benchmark, and I can now get a number that if you are doing reasoning that I can't go above 60%. That's the latest and greatest model can do. But now if y- I'm just checking for Q&A capabilities, then you can see the ceiling is at 96%, which is Google's latest 4 model. So I can achieve Q&A capabilities at a very high scale. But if I go and say I need a lawyer or a very high order thinking, like system two, system three thinking, then my criteria cannot be more than 60%.

Aakash Gupta 1:03:11 If you're using Humanity's Last Exam, right? But I guess we constructed our own evals.

Mahesh Yadav 1:03:16 Correct. You constructed your own evals, but right now you have your own evals, but you want to see and give your team a, a dashboard or a target on your evals. Because if you constructed your e- own evals, you can't say that, "Hey, pass everything 100% of the time else I'm not launching." If you set it like that, you will never launch. You have to give your team a room that, hey, this is our criteria, and it's okay for us to launch at 70%. I am okay if you miss us three out of s- 10 times, because our customers today don't have a way to automatically get risks. And even if we miss it three times, or if we d- meet our high bar doesn't meet that three times, it's still value. Like Opus 5.6 is super valuable to you, even if it is 60% at Humanity's Last Exam in reasoning. So you set up your own evals, but your criteria cannot be 100% because that if you set it too high, you are never gonna achieve it. And you are relying on the trajectory of these models to get better with time. So you have set the hardest criteria. So this is your Humanity's Last Exam, which you are setting up, which tests your harness capability to reason along, and you are setting the hardest exam for your agent, and then you don't want to go above the ceiling which exists today for Humanity's Last Exam, just for an example.

Aakash Gupta 1:04:55 So basically, if your agent is going past the ceiling, you need to make your test harder.

Mahesh Yadav 1:05:00 Correct.

Aakash Gupta 1:05:01 Is that what I'm hearing?

Mahesh Yadav 1:05:02 Yes, yes, yes. So you got it. So that's the, my ceiling and my hypo- my assumption or my hypothesis here was that my complexity of finding risk is same as Humanity's Last Exam. But if you see that you're like 90%, then maybe you are not dealing-- Humanity's Last Exam has much harder questions on legal PhD-level tests or physics-level test than what you are doing as a lawyer by taking a playbook and comparing and saying, "Does this match or not?" Which basically is like type one problem, not even type two problem. So maybe Humanity's Last Exam does not apply. The complexity is lower. So then you can go and find a- another benchmark like which I was showing you, GPQA question answering Diamond level, and there you can take the ceiling as not 60, 70, 60%, but 96%, right? So if your job is your, your agent capability is not doing deductive reasoning like Humanity's Last Exam, which you found out, you thought it is Humanity's Last Exam, you set it up lower But reality, we're seeing it 90, 90%. Then you looked at humanity's last exam questions in legal. You saw your... And then you said, "No, no, no. Actually, the right benchmark should be GPQA Diamond." And then you say the criteria is 96%. Does that make sense?

1:06:28 – 1:34:13

Scaling evals with LLM judges

Aakash Gupta 1:06:28 Got it. So how do we build these? How do we operationalize this beyond a spreadsheet?

Mahesh Yadav 1:06:34 Uh, great question. So now Akash is saying, "Mahesh, this is great. You set up the criteria, you created the questions, and now how are you gonna go and actually productionize it?" Because in production, he will get maybe 100 contracts, and if we're gonna take on every risk it comes out, on an average, every contract has 20 risks. And now I am evaluating maybe 50 questions per risk. That means every risk is now I have 1,000 questions to be answered per contract by a human lawyer. And a human lawyer is charging you, this is the money that, uh, uh, we used to charge at Bedrock. If you want us to hire a human expert to do your evaluations, the charges are 0.25 cents per question asked. So now you have 1,000 questions, so now you are paying me $250 per contract. And if you want me to evaluate 100 contracts, then you are paying me 250K... 25K, just 100 contracts. And if you do it for 10 days, my bill is 250K. So Akash is [chuckles] saying, "Mahesh, are you crazy? I can set it up in the beginning. I can do it. I can have a human lawyer do it for 10 for us for free because they are our lawyers, or I can even get an expert. I have some budget because it's quality, it's important. We always spend money on testing and eval- doing our work, checking our work, security, safety. So I can justify that budget. But Mahesh, go away. I'm not doing 100 contracts, 10 days every 10 weeks even. That's what it will take for, uh, you to go and improve this quality. At least 10 to... At least you will need 20 weeks of quality hill climbing and testing these contracts and again and again to meet these numbers. So if you're gonna do that, your budget is 500K to run these." Who has a half a million dollars to run evals? So what's the next step? Which is what we were discussing. So now all of you can understand the first step of setting evals, which is talk to your customers or look into your own traces and find out what is helpful, what is honest, what is harmless. Okay? I set up the criterias, I set up the questions for HH edge, and I set the criterias for success, which is 65%, 70%, 5%. Then I need to scale it. Okay, how can you scale your agents? For that, you need to have LLM as judges or Azure AI Foundry release lot of LLM as judges, which are already tested in production and available for you not to build your own, but you can take theirs. So how can you use Azure AI Foundry AI evaluation suite rather than building some random ARISE, PRISE or some other trap? You can just use the, uh, clou- cloud providers, uh, all the way Bedrock in AWS, Azure in AI Foundry in Azure or GCP evals, I think are much more exhaustive, much more scalable, and much more production-ready than any startup out there. And, uh, no offense to them, it just they have not solved anything new, which is already solved now by common cloud providers. Okay, how does that word looks like? So now I have my agent. So now if you build an agent in AI Foundry or if you have traces of the agent, so you can build an agent. We build this agent inside Foundry. You are an advanced contract designed to help legal procurement compliance team to analyze contract. Your responsibilities are these. You're looking for these terms. You need to find risky non-standard clauses. Exact same agent we build in Foundry, and you can just specify your prompts, prompts. You can tools. You can bring your knowledge. You can add your memory. But building is easy, so we are not gonna cover building today. But let's say you launch it, and then people are using this, so you will have a lot of traces. So we have launched this agent in production, and now people are coming and talking to us. So you can go here, and you can set up your evaluations. What is? So you can look at all these criterias, or you have these quality evaluations. This check for either the answer is complete. Is the retrieval evaluator? Is it based-- It is honest because the answer is based on the playbook or the contract, or-- and it has not gone and drafted it. This one selects whether the tool selection was correct. Tool call success criterias. And then you have different criterias for safeties, quality, honesty, and harmlessness. Quality maps to both honesty and helpfulness, and safety guardrails meet to your harmlessness. So most of the questions you are asking and getting manual answers and paying 25 cents can actually be found here in evaluations. So how can I set my evaluations? You go to Azure, you go to evaluations, you say create my evaluations. You say, "I'm gonna do agent evaluations." You can actually do model or just dataset. Say, "I want to evaluate my agent." Then you can select your agent, or you can bring the dataset from your agent, which is nothing but your question answers. So I just created this dataset. If you wanna look at it, this is my dataset where This was the query that was sent to me. You are an advanced agent. Here is a contract, find me risk. And this was the response that it gave me, that these are the risks, these are the clauses, and these are the tools that it called, and this is the metadata of what is the state of that thing at that time. So either you can get your agent's query responses and what tools in what state, or you can just say, evaluate my agent if you build it using Azure Foundry. Okay? I select agent or I could have selected data set. These are the two which are interesting. Model is you are just evaluating your model and not your agent. You say next. You can evaluate full conversation if you go back and forth with agent in a conversation, or you can just say individual turns. In our case, we just had one. We uploaded the contract and said, "Give me risk," and it gave us risk. So I'm gonna just take individual turns. Then it says, "Hey, do you want me to do it one time or do you want to set it up? I can test it at every day based on new traces or new data set. I can keep running it as you are improving and keep telling you how are you doing." I just say one time. And then data is interesting. It can generate your synthetic data, or you can bring your existing data set, which is what I was showing you earlier. So if your agent is already there, you can just bring the conversations, the input you gave or the output it-- you got. So this is my contract and this is the risks it provided me. Or you can use existing traces. What is that? That if you build the agent inside Foundry, then you can say, "Hey, just look at and intelligently find conversations from my agent across different sampling." So this is intelligent sampling, where I'm just finding the right different kind of conversations rather than just taking top 100 conversations. If everybody asks for refund, then I'm just evaluating one kind of conversation. So they've inbuiltly find the right conversation, different kind. So it give you different kind, judges your different kind of traces or different kind of conversations your agent had, and then you are basically set. So I just selected-- Then you select your model. This is the model your judge or this agent will use. So you want to select m-better model than what you used in the agent. So you can select a better model, but more better model will also cost you more. So I will just set it up for GPT 4.1 or GPT 5 Nano ideally, uh [chuckles] and then I will hit review, and that's it. And now if you set-- look at the criteria piece, then in your criteria you can also see all those evaluators here. It also recommends you the text for violence, tool use, sexual content, hate and fairness, output quality, self-harm. These are all built-in agents, so you can go and check. So these are all the quality things that it can check. It can check for sensitivity, data leakage. It can check if you are looking for a certain thing in your ground truth versus what you have reality. So I can say this one, and then it can check for coherence. It can check for text similarity. It can check if the particular answer has the string or not. It can score the model quality specific, a broader umbrella cut if it goes through a probated action and all. So you got all these you can just choose right now, and you can create your own custom ones also. So I have gone ahead and created a few custom one, which I said, hey, for me, this completeness means that it has that data which are in my criteria, and I can create a custom evaluator also. So the things that I'm evaluating, I will create my custom evaluator if they don't exist here, or I will choose be-- different agents, like is it doing tool calling successfully? Is it adhering to tools? All these like inside my agent evaluations can-- I can pick out of box, and if it is not there, I can build my custom also. That is it. Once you do, you create your agent, and if you have done that, you can run your evaluations. How it looks once you have done your evaluations, it goes ahead, it evaluates and gives you score across all these things, across different dimensions, and marks it yes or no. So you can look at similarity, and when you do it, it says, "Okay, I got this." And if you click on it, you will see all the details that, hey, this, what is the customer name? This was the customer name. It passed the coherence test, it passed the fluency test, and wherever it says pass, you can mark your sheet yes, and it says fail, you can mark it no. So now you have gone ahead and scaled your thing, and now it runs automatically every day, and the cost has gone from 25 cents per answer to 0.025 cents. So you have reduced the cost 100x. That means now it cost you $5,000 rather than 500K.

Aakash Gupta 1:17:16 How do you eval the evals? How do you make sure that this is as good or better than what you were getting from the human lawyer?

Mahesh Yadav 1:17:24 Very good question. So what happens is you're saying, okay, Mahesh, you put the evaluator, you have your h-human lawyer, uh, this... Now your e-your evaluator is filling the sheet with yes/no based on that pass/fail criteria, and you have the criteria for humans also. So I have these questions like, hey, is this complete? Does it do excessive redlining or not? And does it do excessive redlining? Does it change the clause? Is the clause remain grammatically correct? And let's say my lawyer said, "No, yes, no." Right? And then I ran it with evaluators, and evaluator came back and said, "Yes, no, no." Make sense? So I got my answers from here. Then we do something called a precision and recall of LLMs. What is precision and recall, or what is this idea? So this idea is let's, let's talk about that. So what you do is you figure out and set the criteria before you put this LLM judge to production. You say, «Hey, if this matches, that's a true positive. If it doesn't match, it's a false positive.» Make sense? And then you can say, «Hey, the number of true positives divided by false positive and true positives is your precision.» So now you are looking for more true positives and less false positives, right? Because you are penalizing false positives. So in this case, my precision is this one is true positive, one true positive divided by one-- my false positives. How many false positives I have? One and two. So one and two. So I have two plus one, so I'm have 33% precision. Generally, that criteria needs to be more than 80% before you can go and deploy. So you also set that criteria for LLM judges, because otherwise you are just doing some hallucinated work. These, these are-- If they say yes, yes, yes, then you, you say it's passed because you don't have this anymore, and you want to trust this. So before you put your Azure AI evaluator to production, you want to compare it with human and ensure that this precision number, which is true positive divided by false positive by true positive, is above 80%. And if it is not, you tell your teams that we cannot scale our evaluations.

Aakash Gupta 1:19:54 And what about recall?

Mahesh Yadav 1:19:56 Yeah, the recalls, the idea is that you're gonna go-- So true positive, false positive, then you have true negatives and false negatives. So the idea is that, hey, instead of penalizing your false positive, I am trying to get false negative out, which does not apply a lot here. But the idea was that false negative is something that I said is gonna happen, but it doesn't happen. So if for a song likes, let's say for an example, I'm predicting whether you will like this song or not, and I propose this song from a list of 100 songs. But if it is not there, so I said you will not like it, which is not true, because in your list the song is there. But if I produce it, if I don't put it in the list, it's a false negative. I know you're just nodding your head, but, uh, we need to double-click on that a little bit more. But in this case, just go with precision, which is, hey, do, do we have a true-- higher true positive rate or this matching of human? And then you can set the criteria. And if the criteria matches, then you are good to go. And the idea of recall is that instead of false positive, false negative, which is this idea that let's take a song idea if you want to double-click on that. So let's say you are doing a prediction of songs. Given 100 songs, you need to put 10 songs in my playlist. So you are saying song one, song two, song three, song ten. That's my agent job. My agent predicts these songs. Cool? So now if I have these songs, then if I say, «Hey, this song should be there out of 100,» but the user also has their own song out of those 100, that's your ground truth. That's your lawyer answers in above case. So they have this song called S one, S 21, S three, S four. So if you don't even put it in my list, then it's a false negative that you failed to recall that thing. But if you put it and I didn't like it, it's not there, then you miss my false positive. So if you do the criteria, which is, hey, is this value here? So my prediction versus my actual. If both are true, then true positive. If my prediction says yes, it should be there, but my actual is not, then false positive. If my prediction says that, hey, it should not be there and it's actually not there, then true negative. But if my prediction says that, hey, the song should not be there, but the song is there, then it false negative. And precision is trying to minimize false positives, but this is going to pres-- remove the false negatives. So the idea is that this can be explained better with the l- risk example. So I gave you risks in a contract. I said, «Here are ten risks.» And out of those ten risks, actually five are the real risks and five are not the real risks, right? So I have five true positive, five false positives. I am 50% precise, right? But instead of giving ten, I gave you 80 risks, and all the 10 are there, right? So I have my what-- my precision in that case is 100%, right? If you ca- got true positives, which is 10, and my false positives is zero, my, my, my, my precision is 100%, because I only am checking for what I got. So I gave you 80 risks, and out of those, those 10 risks which were actually there, were there. So now I got 100% precision. But what kind of product is this? It throws 80 risks at it, at me, and I need to fish through those 10 that are there. So then we put recall, and recall is saying, «Yes, you got f- 10 correct, 10 positive. Good job. But you have 70 that are false negatives.» So I am gonna penalize the false negatives that you said that, "Hey, these are not supposed to be there, but they're there," and I will add it, and now I have my number as I have only 15% recall. That because I'm throwing 80 things, actually I'm able to recall only 10 out of those 80. So I have a very bad recall. So you want to measure both precision and recall to cover for your agent to not give you too many things to just get things right because you don't want to overwhelm the user with too many things. And at the same time, when you go shorten this, you want to hit the target also. So you want to measure both false positive and false negatives, and precision and recall is a way to control both of them. Because if you say, "Hey, I want to get only few options," but then your recall will be awesome, but then your precision will go lower because then you have a very less window. You're gonna give me only 15 options, then finding that 10 will be harder in those 15. But at the same time, you can say, "Oh, Mahesh, actually give me a higher recall. Give me 100 things," and then you can find this 10 easy. So your research team or your engineering team will ask you as a PM that, do you want a higher precision and recall? Because I can't do both. And as a product manager, you need to decide what is important in that criteria. And that's what I was saying when I said, in this one, let's just focus on precision. Let's not worry about recall because we have already restricted the number of option to yes and no here. So I can just focus on precision, and if I'm getting a higher precision, there is no room for recall because that's applies to how many risks I'm getting. But here, risks are already there. I'm just checking if this answer is matching or not.

Aakash Gupta 1:26:19 I was f- let's say I'm somebody who's new to evals. I'm following along so far. I understood the three H's. I understand, let's say we create the 25 questions, so each one of those gets 4%. I understand I set the difficulty so that it matches a public eval, so it's maybe in the 60 to 90% success range. I understand that I verify that with a human reviewer. I create an LLM judge. Now, the part where I'm getting confused is we just layered in precision and recall for this LLM judge on top of the three H. So maybe you are a master of simplification. Can you simplify, how do I understand how this all comes together?

Mahesh Yadav 1:26:58 Let's look at-- Forget about precision and recall, and we were not gonna put it. So what you need to check is, you're just checking how much of what your evaluators evaluate compared to what a human did and finding the accuracy of it. Forget precision and recall. It's that easy when you have a mode. So forget precision and recall, and let's just check the accuracy of your AI evaluator or LLM as a judge. Right? And how you do that, you just take whenever this matches, and you say, "Hey, if it matches, good." So how many matches? Matches are one. How many mismatches? Two. You are 50% accurate. So that can be one criteria. You can just lead with that criteria. But the, the good part is you want to know from here that, hey, you know what? I can be 50%, but I also, if you look at this, you're 50%, but you actually got something right also, right? If I just go with this, you are saying, "Hey, half of the time you are wrong," which is not true. Because if you look at this, I have evaluated three things and I'm not getting rewarded for one thing I got right, which is this one. Right? And that's why I have to give you that false positive and true positive equation so that what I did is I said, "Hey, this and this is false positive." So false positive, one. This and this is true positive, one. This and this is false positive, right? And then I calculated a new number. I said, I am not gonna go and calculate this. Actually, I could have just one by three and then got you 33% also. So you can just use accuracy here. But the idea is that if I go now, I say false positives plus true positives, which is three, I give you 66%, which is the true number. But if I go and do this calculation, which is accuracy, which can be actually three here, so you can just get that. So just forget about precision and recall for these for the time being, and we'll just lead with accuracy.

Aakash Gupta 1:29:24 Okay. So simplify with accuracy and get it to 100%?

Mahesh Yadav 1:29:29 80% is good enough because you are trying to reduce the cost, and if you're gonna reduce the cost, then you want to make sure that your cost is, uh, manageable because a very high-- Now you're shifting the burden of costing and building an awesome agent to building an awesome evaluator, and you will be spending a lot of money improving the quality of your evaluator. So give it 80%, and 80% is good enough for us to go roll out. That's the criteria we have used somewhere around 70, 80%, and that allows you to get enough of problems for you to go fix. And even if it misses 2%, you're doing it every day, and you augment this with human evals also. So you are not gonna just go and evaluate everything by these agents. You're still gonna go and do human evals on 200 to 1,000 samples every week. Why do that? Because these evaluators only know the helpfulness, honest, and harmless which you learned in the beginning of your product. There are new things that are happening. People are asking you new questions, and you are learning how your agent is behaving on those. And maybe it's not fitting your criteria. Maybe thumbs-down comes up with new things. These LLMs judges are gonna judge only what you have set up. They'll not come up with new ideas or remove things that are always yes, yes, yes, yes, yes from your evals because there's no point testing it anymore. You want to keep and cut it so that you come up and test, and then you take these, these answers that you got, and you compare it with your evaluator, and live every week check does your evaluator still behaving the one you tested in the beginning. And make sure that it remains in that 70 to 80% range. So three steps as you scale. So if you want to scale your evals, then what you're doing is first find the LLM judges or AI evaluators in Foundry that I showed you. Then get these LLM evaluators going. Then you are s- just setting them for your accuracy of these and testing it to 70% and plus accuracy. Once you reach that, then you are also evaluating 200 to 1,000 by humans and making sure that this remains consistent week on week, and you have not gone bad or diverged because new, new conversations start happening. And this will also help you redefine your criteria for helpful, honest and harmless.

Aakash Gupta 1:32:08 Makes sense. So this is how you actually build at production evals. Where do people make mistakes in setting this up?

Mahesh Yadav 1:32:15 Yeah. So there are a lot of people, what they do is they take an LLM judge and never evaluate the quality of it, and they just say, "Hey, here is my LLM as judge," and then say, "Yeah, because it's an LLM and because it's a judge and because it gives me results, and it's very visual and it says completeness 100% green, just trust it." They take a screenshot of it and then say, "We have achieved nirvana." That's number one. Another thing people don't do is they don't reduce the criteria of their evaluators, evaluators enough. So they are asking a broader question, which is like, "Hey, is this helpful?" Yeah. It's not helpful. Then your SME may say, "This is why it's not helpful," and then you're gonna make it helpful. Helpful is such a broader term. You need to break it down what does helpful means, and people don't do enough work in breaking down what does that helpful means to the last level of questions that anybody can say binary yes and no, and the explanation makes sense for a person who's gonna go and improve it. So people don't break it down their evaluations big enough. That's one challenge in these evals. Then what I have seen also is that, okay, you have an LLM as a judge, you have your evaluators, and then people forget this manual step. They never go and check manually, don't put the effort and energy. Without that, they are flying blind. And when this deteriorates, it was in the beginning 70%, but as you get real queries, your real queries are discovering or giving you even more challenges. And actually, this has dropped to 20% week on week on week 10, and nobody knows. So now your criteria is wrong. Now your evaluator is wrong. It doesn't meet the base ground truth. So not generating week on week new ground truth and keep tracking of your scaled AI evaluators is another mistake.

1:34:13 – 1:48:07

Decision models: how Jev cut the cost 100x

Aakash Gupta 1:34:13 So we keep hearing all about these new instant decision models, which are AI models, but they're not LLMs. Microsoft released its decision model. TypeSafe AI released Jev on the back of that. They just got a $10 billion valuation. Cloudflare released their own. How can these new decision models help us in our evals? I think you had previewed that they could reduce the cost, maybe even the time. How should people be thinking about decision models and evals?

Mahesh Yadav 1:34:45 That's a great questions, and this is the new thing that we're gonna unclose or unbox this time. So now you are looking at it and you are saying, "Mahesh, it cost me 25K and six hours to run my evals every week, even with Azure evaluators." And by the way, these are decisions or yes/no questions because you have done the hard work of putting what is helpful into a s- simple question, is this clause after modification follow all grammar rules? Answer is yes or no. Okay? It's a decision. So what TypeSafe Jev does or what decision models from OpenAI or Microsoft are doing is they are saying that, "Hey, LLMs are trained with RLHF to generate text that human love, generate text or create answers or summarizations based on human feedback." That means there's no way to go and build confidence in this because that also is a new-- Because if you give me the answers, then you can give me the confidence, and the confidence will also be a next word predictor, which is also trained with RLHF, so it's human preference and not an objective truth. So yes, I can get answers from LLMs, which is in our evaluators yes/no whether it does it or not. But if I want to know with what confidence you are sure that, yes, this clause is not meant, then it doesn't give me any confidence today. And even if I say, "Give me a confidence in my prompt," it will hallucinate on the confidence also. So now this is because we have used RLHF, which is this idea that you will take humans to build a reward model, and then you will use that reward model to incentivize your RL policy to behave like humans. So if human says, "I'm confident," the model says, "I'm super confident." And as you have seen all along, humans are very confident people, so that same bias is in here. And if you're gonna go and ask it for confidence, you can get the answer, but you can never get the right confidence. Without right confidence, you cannot go and say, "These evals needs to be reviewed by a human lawyer." Remember, I am taking random 2,000 to 3,000 because I cannot trust my LLM judge to tell me when it has gone wrong. If I can, then my right, right eval should be that I want to go and say, "Hey, AI evaluator or my LLM as a judge, give me an answer yes or no. And when you do that, also give me a confidence of how good you are." Make sense? And if the confidence is low, lower than 70%, I want these 200 to 1,000 to be evaluated by humans, which will be a perfect eval setup. But I can't do that with LLMs today. And TypeSafe said that you cannot do it with anything, by the way, because these LLMs are here to please you. Why? Because the technique we used is to generate the next word with human preference. This human preference, which we encoded in the human feedback, is used in the reward model, and the reward model was optimized to do reinforcement learning, so it doesn't know what is a confidence. It doesn't do probability distribution or any math. It's what- whatever human codes in it, and human codes' confidence is just a word for them. So they came up and used the techniques called reinforcement learning with RLCD, which is this idea that, hey, I am gonna go a new training method, and with that training method, what I'm gonna do is I am gonna do reinforcement learning, this one, but on distributions rather than human feedback. That means you need to tell me first, I cannot do generation text or anything because I don't know, because I don't know what the answer is. But if you give me the choices, yes or no, whether the contract is an NDA, MSA, or data privacy agreement, I can tell you based on these question. So in Jev, you need to provide the state, the context, then you need to provide me the question, and then you need to set up your choices, your score, or whether you need yes/no answers. You need to first tell me what is the context, what kind of question you are asking me, and then you need to give me these options also, right? In choices, I can upload a contract and ask whether it's an NDA, and I can say what kind of things are NDAs. I need to define what is an MC- MSA. I need to define what is a DPA. And then all this model is trained to do is, given this distribution, it gives me the best possible answer out of these based on what it has seen here. So it's a different technique of training. And when it does that, it also gives me a confidence which they claim that you can trust 99.9% time, which is more than what you could do with LLMs. So finally, for the last two months or so, we have a way to actually get the answers if we set our questions and state correctly and get the confidence value. And because it's not an LLM, which is-- has a job of human preferences, training, generation, all the crap, it can be a very small model or comparatively small model, and it can run very fast. So what we did is we took the evals, what we just did with AI evaluators, and we set it up for Jev, and I want to show you rather than talk about it and s- show you that how it actually worked. So what we did, we already showed you that, hey, we have run these in Azure, and we saw awesome results. So we set up this criteria. We set up these quality evaluators in Azure. We can go and set up these evaluations. I showed you all this. We get the results. Now we ca-- have reduced our cost by 100X. Azure has built-in evaluators. You can also set up different criterias for monitoring these. So you can go and say, "Hey, if this par- particular evaluator value is going less than 5%," like let's say some people are sending security-specific harmless questions, and your value is more than you are answering bad, you can also get alerts. So all this we discussed, you can set it live. You can also set up monitoring and configure live evaluations. So that was AI evaluators. Then we said, "Hey, instead of this, let's use the same sheet that we were producing." So I created the same sheet. I put my answers And what I did is in Claude, I installed Jev plugin. In there, if you go to their website, you can see Jev's plugin. And I went ahead and customized, I went to plugins, and I installed this plugin. We'll give you a lab which shows you how can you get this TypeSafe plugin. And now I can go and ask this plugin a question or upload my sheet and ask this guy to put that yes and no evaluations. And that's exactly what I did. What I did is for this demo today, I said, "Hey, I'm gonna give you my APIs for Jev also." We'll rotate them. But the idea is that, hey, understand Jev, use the documentation, verify the connection, and once you have done that, for every Jev call output token, use this cost and save the skill. So I created a skill that allows me to go do evaluations. Then what I did is it said, okay, I've got it. I tried it. I got a skill called Jev evaluate. So I created a Jev evaluation skill, and then I gave my same questions, this word adding analysis, which is exactly same what I had here. And I said, "Hey, take this contract. This is the contract name. This is the removed part. This is the added part. This was the playbook that it is based on." And then I created the evals for Jev, saying, "Jev, use this, build your context using row, this, this, this, and then answer my questions in these cells, and judge only single red line in row." And I gave it all my instructions to go do the judgment, gave it some example, and just tell me yes and no probabilities. Cool. And then I said, if the confidence is less than 70%, then just ask for human review, else just mark it. So it went ahead, and it created my all red lines, and it created the answers, and it said okay, and give me cost and time also. Then I actually gave it the answer keys, the human ones, the human lawyer ones, and I said, "Hey, tell me how good you did." And here are our results. So Jev took 214 seconds. Jev API cost not only that 25K, but reduce it now another 100K. So if you cost 25K, now it costs only $250 to run, and it meets the accuracy. This was the same exact number we had with Azure. Azure AI evaluators were also failing on accuracy. It got only three failures there. Then Jev predictions of 20 yes and two nos. So I got all my predictions, and there are two that are not matching with human evals. And for each, I am getting a confidence also. Where it doesn't match, my confidence was n-not above 70%. And then I can see the second match, so I can put my criteria around 60% or so, and if it is less than that, I can ask for human reviews. So this is my evals, and then I ran it with Jev. And if I ran it with Jev, then I can show you the comparison. So we set up same criterias. We ran the same questions. We got our answers, which I was showing you. And then we did a comparisons on our evals compared to Claude. We also asked the same questions to Claude without Jev. And then we said use the Jev scale, which calls the Jev model to do the evals. And then we also compared the same with Azure AI evaluators. And you can see that the time is basically one-tenth or twentieth than what this takes, and 50x lesser. Same as cost. The cost is reduced by 100 times, and the token consumption. So Jev is the new way to go set up your evals, and it meets the same quality, and on top of it, it gives you the confidence you need.

Aakash Gupta 1:46:43 And I'm pretty sure Microsoft will add their decision model to Azure, so you can probably see those costs come down soon too.

Mahesh Yadav 1:46:50 Correct. So it is not Jev's proprietary RLCD. The magic is the RLCD, which is reinforcement learning with common distribution. That's what is calling or making it possible for us to do these things in a new way because the LLM judge is making decisions. And decision models make the cost, time, and gives you confidence. And if you have not done or not restarted your evaluations with RLCD-based decision models, whether they are Jev, whether that's OpenAI decision API or Azure decision API, you are basically doing a lot of costly evals which needs to be redone. That's our hypothesis. We are still validating it, so very early stage. We only got Jev's access, uh, last month, and we are running few cycles. We're very excited about what we have seen, but we will let you know if something changes. But today, I highly recommend everybody to go ahead and apply Jev to their evals and see if they can meet the same accuracy bar first. And if it does, then move to Jev because Jev is gonna cost you 1,000x less, run faster, and set the criteria of when to bring the human

1:48:07 – 2:01:15

What the PM owns vs engineering

Mahesh Yadav 1:48:07 experts.

Aakash Gupta 1:48:07 So throughout this process, what are the components that a PM owns versus an engineer? What is the set of meetings I'm having with my engineering team across the life cycle of this eval? Am I as the PM the one who's checking out, okay, the cost, time, and accuracy of Microsoft's decision model is better than GPT 5.5, so I want to switch to that?

Mahesh Yadav 1:48:32 Yeah. So you as a product manager owns the metrics, owns the division of the cost. So I have-- So your job is to make sure that, hey... So first of all, you as the product managers need to first come up with the criteria and questions. Same page? So this is nobody's job. You are updating the helpful, honest, harmless questions, and you are setting the criteria. Got it. Then in this dimension, you are setting the cost targets and saying, "Week on week, I want the cost of evals to reduce by 30%." You can say month on month. Week on week is a little harder. [chuckles] So month on month, I want to reduce the cost of evals by 30%. Because I want to go and give more tokens to my customers, that means right now we are spending that 250K first, then we are spending 25K, and then with Jev, we are spending only $250, right? So if you set the criteria like this, this gives you a lever to have a meeting with your engineering and say, "What are you doing about it?" And smart engineers will do it what you did, which is did the research, tried it, and it was not very hard. You saw that I can just bring, create APIs in Jev, and we'll give you a lab for it, and then run it in Claude and just give a prompt and a skill, and it does the work for you. And you already have your sheet set up, so you're just giving, and then you can show them that this is a part of possibilities. But you need not to. It's your engineering job to scale your evals and reduce the cost of it. Your job is to set this criteria, which is, I want the cost of evals to reduce by 30 to 50% month on month. Once you have set up, you will set up meetings, and in those meetings you will say, "Hey guys, this is the cost last month. Are we gonna meet or beat this target?" And they say, "Mahesh, we're gonna not meet this target." Then I'm saying, "Okay, what you tried?" And they say, "We tried nothing." Then I say, "I can understand you guys are busy. Let me show you what I tried with, uh, uh, Jev, and I don't know it will work, but seems exciting, guys. Are you excited?" And then some of them will say, "Mm, this... Oh, but Jev, nobody knows it. We are on Azure. Azure doesn't have this. We can't use an open source model." You listen to that. You don't question. This is their territory. Then you wait for Azure, and then you say, "Hey guys, I saw this Azure decision model. Do you wanna try this?" And some guy will say, "Oh, actually Mahesh was not stupid. What he said, I tried it, and it works for me." And next month he comes to you and says, "Hey, I took the OpenAI or Azure decision model, and I reduce and beat this target by 1,000% by reducing the cost 100X." And you gave them the ideas. You are basically the brainchild, you are the fountainhead in the team which is giving all the ideas, but they are the ones which-- who owns the evals and are responsible. But you are the one who is setting that this cost of eval cannot continue to increase. And I start with the humans, then you give me Azure evaluators, then you keep researching best way to do it, and if best way to do it is decision models, then why are you not doing that? And if they are not, then you can go ahead and do it and show them the way. So your job is set the criterias, keep the cost and accuracy functions, and set weekly or monthly targets on those, and then have discussions so the latest, greatest edge of AI is also in your products, and that's your new AI PM job.

Aakash Gupta 1:52:29 How important is this to the AI PM job? Is this, like, the biggest change in AI PM? Is this gonna determine the success of your performance reviews? Is this what you're spending 30, 40% of your time on? What's the right context to understand this skill?

Mahesh Yadav 1:52:44 Great. So 40% of-- 40 to 45% of your new PM job is basically setting and evaluating your responses, those 200 to 1,000. So I used to spend two days, or I still spend two days looking at our evals. That means 40% of my time goes into evals. What is the cost, cost of evals? What are the problems I'm getting? And then bucketizing them behind the scenes with different teams, different agents, and having this discussion of, "Hey guys, we need to meet our criteria." So this was the another lever you have, right? That, hey, we have gone from 65% to 30% as we added this new customer. And then these are the buckets of problem. These are the helpful questions we are failing more often that is causing this to happen. And then you create the data set, and then you assign a Jira ticket to them saying, "Hey, I need it back at 65%. Otherwise, I can't sell it to this customer." So that's your daily routine or that daily rituals, where 40% of your time is going into looking at your evals and seeing if they meet and beat the criteria that you have set up. And when not set up, you are providing all the requirements for the team to succeed downstream. And that is table stakes. The good PMs who are gonna thrive in this world are also giving their teams ideas on how can they achieve this. Then they are also saying, "Hey, I saw that we have started failing on reasoning models, and I saw that you guys are using a 5.1 nano. Can we have a open router specific logic that allows us to check whether it is a reasoning or non-reasoning call? And based on that, can we route some of this to 5.6? I know it will increase our cost, but that's one way I read on this paper that it can be done." And you just stay there and you write like disclaimer, "This does not mean I am recommending you how to do this. I read it, just wanted to share." And these are the PMs engineer wants to work with. Their life is so hard already. They have to figure out reliability, working and all that, and they don't have time to read all this. They may not even understand all this to the level you have. Half of your team is new to AI, or even 80% they are new to AI. And if you cannot be the fountainhead or brain, uh, for this AI team, you're not gonna ship products which succeed in customer hands. And that's why you will not have ROI in your agents compared to my agents. And that's why you won't be successful because you will not create the customer value I will create. Because I am guiding and leading my teams, and that's the new AI PM or new builder role. That's what these guys like who build Claude Code, if you listen to them, they are saying, "We are doing that job. We are not coding. We are figuring out how our code is doing, where we are failing, then we are looking at latest, greatest research and figuring out where we can pass again," and that's the iteration. We only have few Claude Code type PMs who are always-- By the way, the guy also worked as a PM, so he knows that he need to go do this job of finding out where things are failing for customers, have that empathy, and then bring that back to the way. And he has the research background, so he can fill that gap. Can you fill the first and you need not to worry about the implementation? That's the new role.

Aakash Gupta 1:56:20 My biggest sort of challenge with all the evals content out there is that I don't understand why the PM like owns the criteria and then doesn't implement the eval. Because as you said, it's so easy in these new harnesses to implement the eval. You can even just have a Claude Browser use set up all the stuff on Azure Foundry, which you had it set up. So through natural language prompts, you can do all of the evals. You can have it measure accuracy. If you wanna throw away precision recall, you can throw away that, but you can also keep that. You can have it do all of that while being the same person that sets up the criteria. So the PM could actually build the evals very easily now, and in the same way, the engineer could build the criteria and do the PM role. Like what's the point of the separation? Why do we have the separation? Is that just an artifact of the old roles? Are we just trying to justify the AI PM for no reason?

Mahesh Yadav 1:57:18 Uh, I think that's a very good question. Uh, the challenge is that eval, how you saw it, also have code in it, also have prompts in it. That means they need to be checked in. That means they need to be maintained. That means you need to know the basic engineering tools like GitHub. Then you need to know like this Foundry tools. Then you need to come up and do this structure reporting week on week on how you are doing and what you did to improve it, and what additional test you did to ensure. And PMs generally were abstracted from that kind of language, that kind of tool chain, that kind of tracking of continuous improvement. Like 90% of PMs don't know how to do GitHub check-ins or how to push code and g- using Git-like tools. So the challenge is once you get into this continuous iteration where you are updating whether your system prompts of LLM evaluators, or you are going and evaluating and setting the criteria on some basis, like I was talking about reasoning, knowing what a human l- humanity's last exam is and all that, people don't have that, and I think that's the barrier. If you take that barrier away, with Claude Code, you need not to learn GitHub. GitHub is like kinda plugin, and you can just say, "Check in this code," and it does Git pull, Git push, Git sync and all that, and you do not know. Even if you get conflicts, it will go resolve them and do it for you. So if you-- That's if, if Claude Code or Claude Cowork becomes your new tool set, I see a very valid point that eval should be PM space and developing or writing the agent should be the right separation. And I think it's a great idea. It's just that we don't have enough capable PMs which are raising hands that saying that we will own the evals. And if you don't own it, everything that nobody owns falls to engineering. And yes, it does have some engineering components like I need to maintain my evaluators, I need to improve my evaluators, which is same as maintaining my agent. So if you can actually build and maintain an agent, what is-- or evaluator, what is stopping you to go and build and maintain your agent? Because your agent is also a system prompt at this point. So that argument helps them win and say that these guys are not eligible. But if you want to have a team which is-- doesn't-- which have a very healthy relationship, you should give more and more control to the PM. I think that's a right, logical, new way of building these teams, because then the evaluation is not biased towards what I wrote in the agent, and I don't even need to know that. And PM should be building evaluators for the competition and us, and just be an objective function inside the team which says this, "I did exactly same thing with, uh, this competition," or vanilla skill in Claude and your agent, and these are the outcomes. And I will remain the creative mind to move it. But if you look at like what I did with Jev, there is code involved. You need to figure out how to set up Jev and all that, like the questions, the answers, you have to break it down. It's just the cognitive load that PMs kinda avoided for long, and they continue to avoid. And that's why I don't think that it's gonna go the way you and me are structuring it. But I think if we can change one thing, it's the right way to change it. And that's why I think more and more PMs are evaluated on how are you gonna set up observability, which is both the things which I talked about, that I'm gonna set up these criterias first, and then these criterias will divide what-- how you get to these evaluations. And then I'm gonna observe these continuously for the quality of the agent as well as the quality of responses it produces, and that will allow me to ship, uh, high-quality moat-based products.

2:01:15 – 2:15:16

AI PM pay and the roadmap to $1M

Aakash Gupta 2:01:15 All right, so somebody has watched this two-hour video. What is the light at the tunnel? What is the compensation? What can you actually stand to gain if you truly learned everything we just taught you about evals? If you go from, let's say, regular PM to PM that is building AI features and AI evals.

Mahesh Yadav 2:01:39 Great question. I know we have gone through everywhere. We started with how can you build easy agents, then how can you s- what you need to do to evaluate intelligence. Forget about all the scaling, but what it takes to actually evaluate human-like intelligence. And then we said, actually, how can you scale it with existing tools which are with every company, like Azure evaluators, rather than throwing something fancy at you. And then we said there is something new called Jev. So I think five takeaways for you is, yes, there is a very structured, easy way to set up your evals, which is helpful, honest and harmless. Find the question, what does it means for your users, and continuously update them. That's your new job. Then map those to the evaluators, and if it doesn't map, create custom evaluators to scale these. And just know, just know right now that there is a way to 100x or 1,000x reduce this cost with Jev and experiment with it. And that's the four takeaways from today. That building agents is easy. There is a structured way to set up your evals like human's judgment, which test human judgment like agents. And there is a way to scale it with Azure. And decision models are gonna be the next breakthrough to reduce the cost and give you the confidence that you need to automate evals, which were not possible just six weeks ago.

Aakash Gupta 2:03:08 What is the compensation specifically that AI PMs can make? You've worked at Microsoft, Meta, these amazing companies, Amazon, Google. How much can you make working at these companies on these types of projects?

Mahesh Yadav 2:03:25 So if you're, like, talking about a principal level, like level seven, level eight, even level six, we're looking at, uh, $750 to $1.2 million. If you're going level seven upper band and level eight, we're looking at $1.5, $1.2 to $2 million. And if you take the stock options in and how they have multiplied, easily my friends are making $2.5 to $3 million. That's why our target is to make $3 million, which we were discussing yesterday [chuckles] before the-- we started the podcast, that I need to catch up with them because when I left, I was easily making north of $1.2 million, and I'm trying to see how can we meet and beat that number working outside. Uh, and that's a common number that you will make, and that's the compensation. The compensation of solving humanity's last tech edge problems is that you will be the sought-after PM, and you can negotiate whatever price you think is right for your intuition, because you are reducing the time it takes for them to go and ship agents with high quality. You are also convincing their customers that it's not the right thing for them to do it themselves. They need your help and your company's help. And the cost of not hiring people like this or not hiring product managers with AI skills is that you will build vanilla agents, and you will ship a lot of them, but you will never get your customers back. That's one. Second, you will never ship real good high-quality agents because nobody knows how to set the criteria and scale those. Third, you will never be able to identify the right opportunities and price it right. Those two things we will talk some other day, how to identify in the new world what's still left for agents to do or your company to build agents on, and how to price this, because pricing will be different for different customers, different agent workloads inside that customer or inside that workforce. And this varies so fast, like we saw with decision models. How can you incentivize them or predict the future right so you can give more than what your competition can give? And if you don't bring people with these skills and compensate them the kind of compensation I'm talking about, you are not gonna get the leverage in this new AI world, which I think is a existential crisis for pretty much every company out there.

Aakash Gupta 2:05:55 What do these salaries look like across the globe? Because those sound to me like high cost of living salaries. And what really is the roadmap for someone to get a million dollars plus as a PM?

Mahesh Yadav 2:06:10 Uh, I think everywhere you need to... Like, if you look at my salary, it has, in last three years, it has gone four times. So whatever your salary is, whatever your number is, I don't know how people get compensated in even India, because I never got compensated. I only worked in very early careers before 2010 in India, so I don't know what the compensation numbers are in India, even although I'm from India. Um, and Europe, I have no clue because I never got paid in Europe. So whatever your number is, every year you can expect to make double out of it, and in four years you should be getting 2 to 3x if you switch to AI. So that's my first one And what was your second question? So just take whatever number, and if you come to AI, it will double or triple in next three years. And if it is not, then you're missing the wave, and that's what the real compensation should be, and that's how you should position yourself because you want the top 5% talent, and you-- your company will be making two to 10X more. So you should be incentivized the same way to your people. It's not that you're just hiring these people and paying them more because AI is cool. It's because they are gonna build these agents and give you this scale, give you this intelligence, and give you, give your customers a new way to look at their business, look at what they can offer, and that's gonna produce 10 to 100X value. And that value should be given to the people who are gonna make it happen to two to 3X. And that's what my equation says. And that's what I've played out for all my friends who started in AI like 10 years ago, and all of are compensated very well. They're working in research labs of Anthropic, OpenAI, Meta.

Aakash Gupta 2:07:53 All right, you guys. He is here at six o'clock on a Friday talking about AI three hours into a podcast, and I'm gonna ask him one last question, okay? So these numbers are just mind-blowing to many people. Like the average person who's watching my podcast, I would say, they might be making $150,000 to $200,000. They might be making 40 to 50 lakhs per annum in India. They might be making in Europe €80,000 to €100,000 a year. So the numbers you're talking about are just crazy. So if you're that person, you're that mid-level PM in that geography, what is Mahesh's roadmap? How do I go from €80,000 to one million USD?

Mahesh Yadav 2:08:38 Yeah. So I think first you need to understand how this agent harness actually-- what is agent harness and how is it built? That's first thing. That's the basic ecosystem knowledge that might take you one to five days. Pick any harness like Cloud Code, Cowork, and try to build agent with it. See the problem of context, actions, and evaluations inside them. And you can just watch their logs when they do this and build a deep understanding of what is a harness and how a harness works, what are the limitation of an agent harness. That's your first five to three-- five days to 15 days of work. Once you have figured that out, then figure out where agentic AI actually deliver value and where it doesn't. And we have a framework where we say low cost of error to high cost of error on Y-axis, explicit to tactical knowledge on X-axis. And then you should be able to go to any company and say, "Here is a roadmap for you to leverage AI. These are the things you should automate. This is where you should build a copilot. This is where you should build an audit agent, and this is where you should not do anything with AI because the cost of error is so high and the knowledge needed is so tactical, and the exams and the benchmarks are not gonna meet any criterias." So you should be able to have that framework and build that AI product sense, and that might require you five iterations in your iter-- industry with five examples, and do that case study and publish that case study. Review with it-- review with-- review that with your peers and the industry experts that you got it right. Those are the case studies that you will talk to in, in interviews when they say, "Hey, we have this. We are doing this. It doesn't work. OpenAI is doing the same thing. How can we scale?" And then you can show, "Oh, I have seen this problem. Let me show you. You are doing this wrong. This is not a copilot. This you should go, go automate. This is not an automation criteria. This is-- needs to remain with humans. You can just help them with analytics to make this call. You're making the wrong choices, and here is my framework, and this is how I will make or restructure your AI investments." You need to become that. That's your next five case studies. Might take you where you are from once you understand the harness to do. And if you do that, then you have another 15 days. You do three-- one case study in three days, 15 days of work there. So 10 days of harness, 15 days of that. Once you reach that, then you should be able to talk about evals, which we just talked about. So yes, you understand harness. You can identify and create roadmaps for these companies on how and where should they put their bets. Then you should set up these evals and talk about evals. So watch our three hours video, and then [chuckles] once you have your agent, set up these evals and at least have two, three examples. Azure gives you $300 credits to create agents and set evals. So take those agents that you recommended in your case studies and actually build them and show the iterations saying, "Hey, first iteration was so bad, then I improved it, and this is how I also improved my evals. I removed these questions because they were always passing. Once I looked at the traces, I found out that I missed these, and I have these five iterations of evals." Once you have that, that will be another 15 days to 20 days of work. Then think about go-to-market. Think about in a world where tokens are gonna be the cost, and it's gonna be an arbitrary cost. There is no fixed cost in your side also anymore. A user, a heavy user of your agent, like our risk agent, is gonna consume million tokens or million dollar worth of risks. How should you price your product that your customer get enough value of what they are paying while you can keep your profit margins? For the same case studies that you identified, build the evals, now build a pricing strategy or GTM strategy. And once you have those five examples and iterations, you can go and be the AI PM, which everybody claims but nobody is. So [laughs] these are the iterations you will need, and these are the four muscles I need. One, you have a deep understanding of what a harness is and you have built your harnesses. You can build roadmaps of AI. You can evaluate any given agent and tell me how will you do it and how will you scale it. And you can help me with GTM and pricing the agent given all the variable components that comes with evals and continuous development across my user base of heavy users, mid users and low users.

Aakash Gupta 2:13:33 Guys, Mahesh has been super generous with his time with this podcast. Just think about all the nuggets of value you got out of there, and let's go storm all of his businesses with a bunch of people from Aakash's podcast. This is his startup where he can help you with enterprise AI transformation. This is his agentic AI product management certificate. This is his Claude bootcamp. Go use the links that are below so that he knows that they came from the podcast, and we can get him back to teach us how to price these AI products soon and have him back next year as well. Mahesh, thank you so much for being here.

Mahesh Yadav 2:14:11 Aakash, such a pleasure, and thank you for giving me an opportunity again. Uh, always a pleasure, and thank you for your curious questions. It helps me stay aligned.

Aakash Gupta 2:14:19 I hope you learned as much from today's episode as I did. If you can do one thing that's totally free that would help the show, it would be to check that you're following on Apple and Spotify podcasts. Check that you've left ratings and reviews on those platforms. Check that you're subscribed on YouTube. Leave a like and a comment on this video, and then share it with your friends. We're trying to make better and better podcasts. After two years, we think we've gotten something pretty good going, so let us know what we can do to make it even better, who else we should interview, and we will put on the best shows we possibly can. Finally, don't forget my offer for the bundle. You get an entire year of my paid newsletter, plus my favorite AI tools, Bolt.new, Airtable, Speechify, Descript, Magic Patterns, Linear, Dovetail, Arise, and Maven. That's $27,000 worth of value for just $150. So check that out at bundle.aakashg.com if it interests you, and I can't wait to share our next episode soon.

Episode duration: 2:15:26

In the uListen app, the transcript lights up word by word as you listen. Get uListen

Transcript of episode MnGPn36NgK8

Get more out of YouTube videos.

Read along on your phone, search it beside the video, or ask your favorite AI app what was said.