Latest / Agentic Conversations (formally mlops.community) / Exploring the Impact of Agentic Workflows // Raj Rikhy // #268
Transcript
- 0:00My name is Raj Ricky, I'm a principal product Manager at
- 0:05Microsoft in Azure Data and I usually do shots of espresso
- 0:13over ice with oat milk. Agents, agents, agents, agents,
- 0:18agents. Today we are talking agents and
- 0:22it's just in time because our next virtual conference is
- 0:25coming up on November 13th and guess what that's going to be
- 0:28about? Yep, AI agents in production.
- 0:34It's not just agents, it's agents in production.
- 0:37So if you want to join us, we'll leave a link to sign up as we do
- 0:43in the description. For now, talking with Raj, I had
- 0:48one gigantic takeaway and it was around the question of how do I
- 0:53know if something is not possible or if I'm just not
- 0:57using the right tools to accomplish the task?
- 1:03Do I need to try a different agent framework?
- 1:06Do I need to try something different in my stack to get the
- 1:11desired outcome? And his response, I thought was
- 1:17right on the money. But's here.
- 1:19But before we do, I've got to play you a song just to get that
- 1:23recommender system that you're rocking, a little bit of
- 1:27variety. People enjoyed the Grateful Dead
- 1:31hit that I played the other day. And so in that same vein, I'm
- 1:36going to play you one of my favourite songs from a jam band.
- 1:42This is fish and this is Farmhouse right out the gate in.
- 2:06So some of you may be saying, ah, Fish.
- 2:09Really Trey? He's not the coolest guy.
- 2:15Some people don't like him. I hear you.
- 2:18But you can't deny this is a jam right here.
- 2:22Let's hear it. I never.
- 2:25Ever To we'll start with this because
- 3:13it feels like there's the agents that you can have that are
- 3:17inside of certain programmes that will work that programme,
- 3:22but then there's like open-ended agents.
- 3:25Then there's agents like I just said, that they're dealing with
- 3:27pixels on screens. So when you look at the plethora
- 3:31of agents that are out there, how do you categorise them and
- 3:34bucket them? I think it's helpful to take a
- 3:37step back and before we talk about like, because we do want
- 3:41to talk about it in the context of actions, but let's let's take
- 3:44a step back and figure out like, what are we actually talking
- 3:46about here, right? So agents actually, as a matter
- 3:51of practise have been in, in the academic discipline since,
- 3:57believe it or not, the 50s. Like reinforcement learning has,
- 4:01you know, the field of reinforcement learning in both,
- 4:03you know, things like psychology as well as things like dynamic
- 4:07programming. It's, you know, it's really been
- 4:10about understanding within the scope of trying to take actions
- 4:15on the user's behalf, right? What is the, what is the
- 4:18universe of things I can do and why and why do I want them, you
- 4:22know, to do those things and how do I make them do it better,
- 4:26right? Like these are actually the
- 4:27principles that underlie when we talk about like agents, forget
- 4:31about AI when we talk about agents, right?
- 4:33These are very fundamentally the things that, you know, we look
- 4:37for and, and if we even peel back another layer, like what is
- 4:41an agent, right? Forget about like what we're
- 4:43trying to do with them. What is an agent?
- 4:45And at the at the base level, an agent is some kind of an entity,
- 4:51software or otherwise. It's some kind of an entity that
- 4:54takes actions autonomously, that has decision making power and
- 4:59capabilities. That's what an agent is.
- 5:03And I think the key thing here, to your point around
- 5:08differentiating agents, if we think about an agent as some
- 5:12kind of an entity that can act autonomously, the reason why
- 5:15it's useful to understand the lineage, the provenance, the
- 5:19history of agents is that we can learn things that have been
- 5:27studied since then. So in reinforcement learning,
- 5:31when you're using agents, there's just by virtue of the
- 5:35fact that like we're trying to get things that we've been
- 5:37trying to get things done for a long time.
- 5:39And just for some context, like, you know, I was part of the
- 5:41product team that led developing the first deep, you know, deep
- 5:45reinforcement learning platform as a service for Microsoft.
- 5:48Like the first one that really achieved a, a high level of
- 5:50scale. And, and, and our customers were
- 5:53asking, you know, at that time there, there's not really a
- 5:58whole lot of folks that are, you know, I always say it's being
- 6:04done in research, but it's, it's not really like, oh, OK, you
- 6:07know, I'm going to go deploy in my business and kind of a thing.
- 6:10And there are these principles that we kind of had to educate
- 6:14folks on. And I think it's worthwhile to
- 6:16talk about them, right. So one of them is we talk about
- 6:19our environment. We kind of sit pen to paper and
- 6:24figure out what are, what is the universe that we're operating
- 6:27in? Like we're not even talking
- 6:29about, you know, start coding things up.
- 6:31We're not even talking about like what model you're using.
- 6:34I mean, this is like verboten stuff at this at the moment.
- 6:37We just want to get a sense of like, what are we trying to
- 6:39accomplish? And when you sit down and, and,
- 6:43and begin the process of, of ideating, you know, what is your
- 6:47actual end goal and, and what is the intended behaviour that you
- 6:51want the agent to undergo? You've taken that very first
- 6:54step and really it literally as simple as sitting down.
- 6:58And, and This is why I think some PMS are drawn, you know,
- 7:02and, and even data scientists are capable of like visualising
- 7:05those products they're drawn to try and figure out like, OK,
- 7:07what I want to get done with agents because in a very real
- 7:10way, what you're doing by practise of writing things down
- 7:12with agents is you're drawing, you're creating an MVP for
- 7:14agent, OK. And, you know, when you think
- 7:19about like, OK, what are the different types of things I can
- 7:22do with agents or what are the different types of agents, it
- 7:25really is a function of, OK, well, now you've written down
- 7:28what it is that you want. Now figure out how you're going
- 7:31to get it done. And so whether that means in the
- 7:36context of a video game, right, your purpose agent is to be a
- 7:42enemy, to be an antagonist and light the light, the main
- 7:47character on fire, right? Like that's, you know, that's
- 7:51your purpose. That's what you need to do.
- 7:52Figure out a way to do that. OK.
- 7:55And that's one way to think about it, another way to think
- 7:59about it in terms of what you want to accomplish and how it
- 8:01is. It's like, OK, how am I going to
- 8:03figure out how to get this guy to light him on fire?
- 8:04Well, he needs a flamethrower, right?
- 8:07Obviously he needs to figure out how to understand the
- 8:08environment. He needs a map, right?
- 8:11And, and these are tools. This is how an agent
- 8:13accomplishes its goal. It's a tool, a tool set, right?
- 8:16And, and, you know, practically speaking, when we talk about,
- 8:18you know, agentic implementation, we talk about in
- 8:21the form of it's either a function call, right, or a, or a
- 8:24tool call, right? But ultimately, you know, if
- 8:27we're connecting the dots here, that is the capability of an
- 8:31agent, right? You're describing the things
- 8:33that they can do. They can drive to the grocery
- 8:34store, they can pick up the bag of flour, right?
- 8:36These are the things they can do.
- 8:38So you've gone from defining your goal to defining what it is
- 8:42that they're capable of and how you can offer them things to do
- 8:45that. OK.
- 8:47I just want to pause for a second because I think you said
- 8:49something that is worth noting too.
- 8:52On the environment piece. If we're talking about the game
- 8:56the agent is playing in the game, that is their environment.
- 8:59If we're talking about an agent looking at pixels on a screen,
- 9:02that is their environment. If we're talking about an agent
- 9:05working inside of Microsoft Fabric or Microsoft Office, that
- 9:09is their environment. And so almost like you're
- 9:11putting the guard rails on, here's your environment, here's
- 9:14where you play, and this is one other piece, one other
- 9:18principle. Now we'll give you the tools.
- 9:20Now we'll give you the why or what we want you to accomplish,
- 9:24but it's going to be within this framework.
- 9:27Right. And I think that that's
- 9:28important not just because, you know, you're thinking about the
- 9:33universe that they're playing in, not just because you're
- 9:36thinking about like what capabilities they have and what
- 9:40what they can get done. There's this other principle
- 9:42about agents that, you know, in the scope of what we're talking
- 9:45about is really important, which is how well can they do it,
- 9:50right? And in reinforcement learning,
- 9:54we ascribe this principle basically around reward, right?
- 9:59Like folks are kind of familiar with, you know, positive
- 10:01reinforcement, negative reinforcement, right?
- 10:03Like you want to do positive reinforcement because you want
- 10:05to continually reinforce the, the positive things and what's
- 10:08the reward? The reward of positive
- 10:10reinforcement is praise, right? Like that's how you offer that's
- 10:13a that's quite frankly the reward you're, you're offering
- 10:17the increase in praise, which will lead to another outcome.
- 10:19Well, in you can't necessarily praise software, although you
- 10:22can try, right? But but what you can do is you
- 10:27can define parameters for success.
- 10:32So in a game that is as an example, like let's use our
- 10:36flamethrower guy or flamethrower gal, right?
- 10:39Light him on fire more, you know, decrease their health
- 10:42faster, right? Get them, you know, zero to fire
- 10:47in less than 3 seconds. You know what I'm saying?
- 10:48It's what are the parameters for success.
- 10:51Make sure you deliver that. You know, it's these parameters
- 10:53of success that matter in the scope of accomplishing an agent.
- 10:57Once you honestly, you do not need to programme anything to
- 11:04accomplish what I just said. And that is important because as
- 11:09you know, as we know, programming and and and code
- 11:13development is a meets to an end.
- 11:15Yeah, right. Like it is a tool that is used
- 11:18that has, you know, other types of libraries and and you know,
- 11:22anything that you want off the shelf to go and accomplish
- 11:25something. But you don't necessarily need
- 11:29to programme to accomplish the objectives of a successful
- 11:34agent, whether it's in the scope of a game or scope of Anyway,
- 11:37I've been talking a lot, but let me let me pause there.
- 11:40Does that does that make sense? Is that us?
- 11:42Yeah, for sure. And one thing that came to mind
- 11:46when you were saying this is the trade off, I think that you get
- 11:52between defining how narrow you define the success criteria and
- 12:01how much you leave open for interpretations.
- 12:05And I can see how sometimes we we can inadvertently shoot
- 12:09ourselves in the foot by defining too much.
- 12:12That's right. But I also see that you want to
- 12:15define more because it gives you a little bit more reliability.
- 12:19So there's that trade off, there's that line that you have
- 12:22to walk. You know this is so important,
- 12:25right? Like this is where you know the
- 12:31pedal meets the metal in terms of agentic development.
- 12:34Do you over define? Do you not over define right?
- 12:39And the the tools that we use to make these determinations are
- 12:44getting more sophisticated, more mature and more abstract, which
- 12:48is a good thing for everybody involved, right?
- 12:51I think about six months ago, you know, as an example, the
- 12:55most popular or one of the most popular repos, auto GPT.
- 12:59They had this interface called Forge.
- 13:02It was like this UX and they, they might still have it, but
- 13:06the point of it is that, you know, it basically functioned as
- 13:08this like high level abstraction where you can put in some text
- 13:11and the text becomes the meta prompt.
- 13:13And then, you know, the, the agent is supposed to be defined
- 13:15by that, right? But it's not, there's no like
- 13:19it's, it's not Facebook, right? It's not exactly the easiest UX
- 13:22to work with. Right.
- 13:26And then, you know, there's this other step level thing of now,
- 13:29now we have some nicer interfaces, now we have, you
- 13:32know, cleaner libraries and now the code is more mature, there's
- 13:34more pull requests and things like that.
- 13:36The other thing that's at play here is, and this is kind of a
- 13:40big word, but it's used intentionally, like is, is your
- 13:43orchestration right? Like what is your scheduler who
- 13:47is doing the planning, right? Are you offloading that planning
- 13:51to somebody else in the form of like Azure Open AI is doing the
- 13:56planning for you because it has a platter behind the scenes and
- 13:59it's doing that on your behalf or, you know, open AII say Azure
- 14:03Open AI, just because it's a lot of, you know, that's an
- 14:05interface like Open AI has an assistant API, right?
- 14:09You know, there are other clawed as an example, has a function
- 14:13calling API, right? And it has a planner to figure
- 14:15out how it calls those functions.
- 14:17And so a lot of that logic is there, but if you're running it
- 14:19by yourself, you have to figure out what that plan looks like.
- 14:22So whether you're defining it like semantic kernel or Lang
- 14:25chain or land graph or whatever it is, that's your
- 14:27responsibility. And you know, if you're not
- 14:30coding it, are you leaving it up to an algorithm, right?
- 14:32Like they're planning algorithms out there too that can do this.
- 14:35And maybe those are good for you.
- 14:37The the point of it is, you know, the definition that you
- 14:40put into the environment and the criteria for success should
- 14:45start upfront on paper and you should have a well oiled
- 14:51understanding of how success looks like before you get to the
- 14:55point where you were running wild.
- 14:56And by the way, there's one more thing that I want to come like
- 14:59just call out here. LLMS are great, right?
- 15:05But LLMS are random and that is by nature, right With there's
- 15:15about a year ago, you know, and you probably heard this before
- 15:17Demetrius, but like, you know, people are like, Oh yeah, we
- 15:20ought to reduce hallucinations. It's hallucinating all the time.
- 15:23It's always hallucinations are the product.
- 15:27That is the product, right? Like that is what an LLM does.
- 15:31It fabricates your your goal, right?
- 15:35Your goal is to figure out how to effectively fabricate and I I
- 15:39know that sounds ridiculous, but by definition, a large language
- 15:43model is probabilistic and it's stochastic.
- 15:45It is designed to be read OK. It is.
- 15:48You can create affordances. You can create capabilities that
- 15:55are more deterministic, that are more planned.
- 15:58But that is up to you to define and to govern as the quote,
- 16:04unquote. And I'm saying this only
- 16:06because, like, it's important to think of yourself this way as
- 16:09the architect of that system. Yeah, right.
- 16:12You may not be an architect. That's OK.
- 16:14You don't have to be an architect.
- 16:15What you do have to think about is that you are acting as an
- 16:19architect. You are, you know, the puppet
- 16:21master. You are pulling the strings.
- 16:23That is who you are. Whether you want to accept that
- 16:25role or not, it is important because anything that happens in
- 16:30that system, good or bad, ultimately are things that you
- 16:37can affect. Not control, but you can affect,
- 16:39right? Because remember, agents have
- 16:41autonomy. The idea here with defining all
- 16:45these different pieces and recognising how many variables
- 16:49you have and that you can, how many knobs you can tweak, right,
- 16:55is is very valuable. And so maybe it's, it's worth
- 16:59talking through different knobs that you want to be looking at
- 17:05and focusing on or ways that you can.
- 17:08I think I I'm thinking about it as how can we?
- 17:14For my own use, I've gone and pounded my head against the wall
- 17:20because I don't know if what I'm trying to get done is not
- 17:25possible or if it's just I'm not able to make it work because of
- 17:31my architecture or my puppeteering as you will.
- 17:35And so I'm wondering if you've seen any good ways to just get
- 17:39that fast feedback loop and recognise and debug quickly?
- 17:44And, and that's a excellent point because like I said,
- 17:47right, if you are in a position where you are architecting that
- 17:53system, you want to figure out what failure states exist before
- 17:59your users or whatever, you know, forget about the users.
- 18:02Like let's say you're not designing for somebody else,
- 18:04they're designing for yourself, right?
- 18:05You want to figure out what those failure states are before
- 18:08you put it out in the wild, right?
- 18:10And you're never going to be able to discover every single
- 18:13one. But there are some tried and
- 18:15true patterns to help you figure that out, right?
- 18:19And I'll give you an example of how not to do it before I tell
- 18:24you how to do it. Like one of the things, you
- 18:27know, people, again, we're talking about the hallucinations
- 18:30thing because people tend to be like, you know, people tend to
- 18:33be angry about it. They're like, I don't know why
- 18:35It's so, you know, making fake crap up.
- 18:39I don't get it. You know, it's I just wanted to
- 18:42write a legal brief. Stop making up fake law cases
- 18:46that you know, it's like, OK, listen, listen, right.
- 18:50The the way that you know, the way that you can explore what
- 18:54these failure states are is actually pretty straightforward.
- 19:00Here's pro tip, never give your agent raw web access
- 19:07out-of-the-box. Just don't do it.
- 19:11It's a bad idea. It doesn't matter what
- 19:14safeguards you put into place. Just just don't do it right.
- 19:20You need to give it some kind of directive, OK?
- 19:24Like, it's dumb. Yeah.
- 19:27Too much agency. Too much agency?
- 19:30Yes, yes, it's like it's like here's a tablet 5 year old, you
- 19:34know, go get go get addiction, find out.
- 19:38Yeah, yeah, probably. Yeah, gosh, you know, I found
- 19:42YouTube, you know, and it's like the the key here is vet the
- 19:49outcomes yourself 1st. And we always, you know, even
- 19:54before agents came along, we would say this like with
- 19:57generative AI always at the 1st generation for the MVP, keep the
- 20:01human in the loop. Agents are designed to act
- 20:04autonomously. That does not mean that they
- 20:06have to action that autonomy. You have the opportunity to
- 20:10stopgap before that action is taken and ask it to explain the
- 20:16next steps that it is in fact going to go do and in fact.
- 20:19Actually, it's quite good at outputting the text kind of in
- 20:22like a debug log or a debug stream.
- 20:24What it's going to do and what it's supposed to do.
- 20:27You could ask it to simulate its own activities.
- 20:29So that's one way to do it like a human in the loop
- 20:31interpretation of of what it's actually supposed to do.
- 20:34Another way to do it is to constrain the state space,
- 20:39constrain the environment, right?
- 20:41See how successful you are with a small landing space before you
- 20:46go out and do a broader thing. And I'll give you 2 examples of
- 20:50this. Like the first is, you know,
- 20:53yeah, I have kids. I'm assuming I don't know you
- 20:54have kids, but you mentioned A5 year old.
- 20:56So you have kids. OK, So if I give my five year
- 20:58old chocolate milk, the first thing that he's going to do if I
- 21:01don't, if I'm not looking, is he's going to go, you know, run
- 21:04toward the couch and sit somewhere comfy.
- 21:06And invariably what's going to happen, it's going to get all
- 21:09over the couch. That's what happens.
- 21:10OK. And you're like, OK, I've got to
- 21:13clean this up. What do I do?
- 21:16Well, you're not going to use a random clear on the most visible
- 21:21spots on your couch. You're going to spray it in an
- 21:23unaffected area first, make sure it doesn't, you know, mess up
- 21:27the whole couch. And then if you're OK, then use
- 21:30it on the chocolate milk, right? You don't want to make a problem
- 21:33worse just because you think it's going to solve it, right?
- 21:37Like the cleaner is the agent in this case, right?
- 21:40So as an example, let's say that you want to create a support
- 21:44agent. You're not going to give it the
- 21:48whole compendium of your support documentation and start firing
- 21:52it at support tickets. That is a recipe for failure.
- 21:56Instead, instead pick like I would say, cherry pick some of
- 22:03the lower priority support cases that are more clearly defined
- 22:09and provide it with that support documentation context and
- 22:13understand the behaviour of how it would address those and
- 22:17whether you have a relatively high NPS on ticket closure or
- 22:22not, right? Try and create a smaller
- 22:26constrained environment to start with.
- 22:28And then the third, you know, tool that I would say for
- 22:32agents, OK, is don't try and get fancy out-of-the-box too fast.
- 22:41You know, I mentioned there are things like planning algorithms
- 22:44and you know, you have an opportunity to like try and
- 22:47offload some of that stuff like an MVP.
- 22:50If your MVP is pen and paper, then the step beyond MVP is not
- 22:54like I'm going to code the second line chain, Please don't
- 22:58you know? And the reason why I say that is
- 23:00because you want to try as much as possible to understand how to
- 23:06action success fastest. So getting stuff off the shelf
- 23:11to do that, like, for example, using, you know, a function
- 23:14calling API or tool API, or even if you're not a code, you know,
- 23:19first person like go find a no code tool after you've done your
- 23:24pen and paper and see if that solves your problem.
- 23:27And if it's not solving your problem, understand why it's not
- 23:29solving it, but don't get to the point immediately where you
- 23:32start going. I need to, you know, quite
- 23:35literally open up the hood and start, you know, changing my
- 23:39transmission before you got took Safeway, right, like that did.
- 23:44That makes no sense to anybody and it shouldn't make sense to
- 23:48you, right? Like we these same principles
- 23:50apply to software development, right?
- 23:52You know, you wouldn't start writing your own database just
- 23:55because your relational database is not sufficient for your use
- 23:58case. It's crazy, right?
- 24:02It's literally crazy. Don't do it.
- 24:04But people, you know, are like whatever, you know, people like
- 24:06just do this. That's fine, right?
- 24:07But but you know, there are these things.
- 24:09These tools exist for a reason. Don't bring the burden on
- 24:13yourself and try and iterate from there.
- 24:16One thing that I going along those lines of that last point
- 24:21you made and I often think about is you mentioned auto GBT
- 24:27earlier, right? Totally.
- 24:29If you were playing with auto GBT 6 months ago or a year ago
- 24:33and you were trying to use agents and you felt like, Dang,
- 24:37this just isn't working. These aren't reliable what's
- 24:40going on? And and you were trying to
- 24:42tailor your environment and do these things.
- 24:45At the end of the day, you probably would land on the
- 24:47conclusion of it might be the wand, not the wizard here.
- 24:53Like I, I wish I could make this work, but I don't think I have
- 24:57the proper tools right? And so then maybe you jump to
- 25:00another one. And now today there are so many
- 25:05different agent frameworks and rules that you could use tools,
- 25:09not in the sense of agents using tools, but us as the
- 25:13orchestrators being able to use tools or a product, I should
- 25:18call it. How do you know when the product
- 25:21has hit its maximum? How do you kind of evaluate
- 25:25that? Like oh, this may be because
- 25:28this. Productation of this thing
- 25:31exactly. I think so that's it's, it's,
- 25:35it's useful to evaluate it in the context of the scope of what
- 25:38you're trying to accomplish. And I think the auto GPT example
- 25:41is actually a good one because let's be real, like a lot of the
- 25:46tools that are surrounding agentic development today are
- 25:49designed for for code native folks like full stop.
- 25:53Yeah, that is not only because the the industry and I think the
- 25:58applications in the field are moving very quickly.
- 26:01And it's actually quite, it's much faster to iterate when
- 26:04you're just working in a code native environment to try and
- 26:06figure out like, OK, how do you land something with these new
- 26:09capabilities that are coming off the shelf when people are
- 26:11constantly innovating, right. It does not really permit
- 26:17experimentation very well. OK.
- 26:20And that's why and and this is by the way, this is not unique
- 26:25to this is not unique to agents, OK, Her.
- 26:28It wasn't that long ago that people were just training models
- 26:31everywhere off the shelf and they were like, yeah, you know,
- 26:35here you go. Like it's a paper.
- 26:37Here's the code. Like, you know what?
- 26:40Look at what he did. Look at what I did in this
- 26:42paper. I did that, you know, and people
- 26:45are like, I have no idea how to reproduce this.
- 26:48This makes no sense. This code is spaghetti and I
- 26:51can't stitch like the variables naming doesn't even make any
- 26:55sense. I can't, I can't interpret it,
- 26:58let alone contribute, let alone reproduce it.
- 27:00So it's like, OK, you know, and then Hugging Face came along and
- 27:04now they have like a whole way to serve these models within
- 27:07friends, to test them out in a playground.
- 27:10So, you know, I think it's a very, very good question if
- 27:17you're trying to evaluate wands, you know, and you don't know if
- 27:22it's the wand or maybe if it maybe it's the wizard, right?
- 27:25Yeah. Don't go for, you know, I'm
- 27:30going to go deep here. Don't go for Voldemort's twin
- 27:33wand out-of-the-box, OK. Like there is nothing wrong with
- 27:38the training wand. No one is asking you to bond,
- 27:42you know, with like, you know, separatist Snapes, like, you
- 27:47know, leftover wand, like figure out how to start with the tools
- 27:53that are not bleeding edge, even the tools that are not leading
- 27:57edge, right? Go with the most common
- 28:00denominator. And there's nothing wrong with
- 28:03that. OK.
- 28:04And, and and if you're a code native person and you're having
- 28:07trouble without a GPT, first of all, you're not alone.
- 28:11I was struggling 6 months ago to set up a GPT myself too.
- 28:15The documentation is good, but you know, sometimes you end up
- 28:18in, in challenging spots, OK. And the environment variables
- 28:23aren't exactly quickly documented since all places
- 28:25anyway. It's fine, right?
- 28:27And that's not to say that it's not a great library.
- 28:28It's fantastic. I've used it before.
- 28:30You know, that's an excellent library.
- 28:33It has incredible contributors like I I really think that it's,
- 28:37it's a great piece of software that's driven by the community.
- 28:40It's open source and there are, as you mentioned, there are
- 28:43several other libraries out there that are equally as high
- 28:46quality. But the reality is that if you
- 28:48were struggling with it, don't ask yourself, you know, to do
- 28:53hard labour and explore cavern, you know, with without a
- 28:58flashlight 'cause there are people that are doing that.
- 29:01Figure out a way to pare back until you can come together,
- 29:07cobble together a solution that looks pretty close to what you
- 29:12want to accomplish. Even if that's, that's something
- 29:14is like a no code solution. And that's a great way to start
- 29:16like copilot studio as example. You know, there are, there are
- 29:19tools off the shelf to do this stuff.
- 29:22You know, don't, don't twist yourself into knots
- 29:24unnecessarily. Now, you asked a very important
- 29:27question, which is how do you evaluate the success or failure
- 29:33given that you, you know, settled on a tool.
- 29:37And the answer is quite simply, understand what success looks
- 29:41like. Go back to, you know, what I was
- 29:44talking about at the very beginning and be clear.
- 29:48Are you able to accomplish with a clear mind and a clear intent
- 29:53to the best of your ability with that tool, that success criteria
- 29:56that you spelled out on paper? It's a very easy way of
- 30:00understanding the problem. And you know, if you come all
- 30:04the way back to like the no code thing that has everything, all
- 30:06the bells and whistles out-of-the-box, you just can't
- 30:08get there, Try the next step up, see if that gets you to where it
- 30:11is. But be clear about that success
- 30:14before you get started, because otherwise you're getting a loss
- 30:16in this more DEXA tools. That's so good, that is, and it
- 30:22I have to make the point that knowing what success looks like
- 30:29is also not something that is unique to agents, right?
- 30:34That is something and it's so easy to forget.
- 30:37It's so easy to get wrapped up in all the cool stuff and the
- 30:41shiny bells and whistles, and then next thing you know, you're
- 30:45sitting there going like, oh, weren't we just supposed to do
- 30:48that? I think if you if we may have
- 30:52defined this a little better, we wouldn't have gone completely
- 30:57off the rails. You know, as I as a product
- 31:02manager, I, you know, I whatever you want to call me code fluid,
- 31:07but don't get the code, you know, like just the, the person
- 31:09that's in front of the customer, it says whatever, whatever you
- 31:11want to call me, right? Like I subscribe to the school
- 31:15of thought around customer development and the principles
- 31:19of customer development and lean startup are really focused on
- 31:25what is that granular piece of value that you're delivering.
- 31:32And when you talk about thinking and, and architecting an agentic
- 31:36system, like it or not, you are in fact creating a product.
- 31:45And the reason why I say that is a product is designed to
- 31:51accomplish a task through some combination of systems, whether
- 31:56that is, you know, software that you're writing for yourself,
- 31:59like whether it's like web software, you have like a
- 32:01database, you have an application, you have whatever,
- 32:03like other ancillary services, right?
- 32:06The point is that people are using those services to
- 32:08accomplish something. The difference with agents is
- 32:11they're designed to accomplish those tasks autonomously.
- 32:16You're giving them the tools to go accomplish something.
- 32:19So in a way, each agent is itself a product and that gets,
- 32:26you know, it can get, it can get difficult if you aren't thinking
- 32:33about it with first principles in mind, right?
- 32:36Because it can get impossibly complex.
- 32:38If you put yourself in a situation where you say, I'm
- 32:42going to have an agent for literally every single task and
- 32:44they're all going to work together and they're going to
- 32:45have a hierarchy and you're going to have a platter and you
- 32:47know, we're going to put all this stuff together and it's
- 32:49going to be beautiful. You know, and you're, and you're
- 32:51thinking about it as like a, as a conductor and you know, you
- 32:55have like the Symphony in your, this orchestra and you're just
- 32:58like da da da da da da da da. Like, please keep it simple.
- 33:02Please keep it simple, Please keep it simple.
- 33:06You know, I, I will say that the, the, the best systems,
- 33:11whether they are stitched out of AI or whether it's stitched out
- 33:14of software, solve problems simply.
- 33:23And if you can manage to get an agent to solve a problem, simply
- 33:30you want. Yeah, yeah.
- 33:34And it, it's specially exacerbated because if it can do
- 33:38something in one hop that it in other times has taken 5 hops to
- 33:45do, you're going to get more reliability.
- 33:48You're going to get, it's going to be faster, everything is
- 33:50going to be better because it is simple.
- 33:52Right, right. And, and I think, you know, to
- 33:56make it accessible to folks because I do think actually that
- 34:01this is, and if you'll excuse me, Dimitrios, this is where I
- 34:05kind of go a bit hyperbolic, but I, I do think, yeah.
- 34:10Oh, indeed. I do think that agentic
- 34:14workflows are going to be fundamentally transformative to
- 34:19software at some level. Like Steve Jobs when he said the
- 34:25good technology is indistinguishable from magic,
- 34:29right? I think one of the things that
- 34:32has happened, particularly with generative AI is that when we
- 34:36first started interacting with Jet GPT, I'm talking about like
- 34:39the layperson, right? Like just anyone at the show, we
- 34:43immediately jump to like, the first thing you do is you ask
- 34:46like a dumb question. What's you know, what do you
- 34:49think about, you know, Abraham Lincoln's, you know, beard
- 34:53speech or something, whatever, what theatre?
- 34:55Like you ask if something dumb, just test how it goes and it
- 34:59gives you this educated genuine response and you seize it and
- 35:05you're like wait. That was pretty good, yeah.
- 35:11The next thing that you do is you leap to what can this do for
- 35:18me? And it wasn't until the
- 35:20introduction really, in my opinion, of function calls, of
- 35:24tools of things that you can offer to the agent, right?
- 35:26Like access to the web, access to a database, access to
- 35:30documentation, the ability to interact with an API, the
- 35:33ability to perform inference of another model and obtain that
- 35:36and use it for the purpose of predicting something else,
- 35:39right? Like these are all capabilities
- 35:41that are inherent in agents. It wasn't until we got to the
- 35:44point where we can create that action space for these
- 35:50transformer, you know, architecture, generative AI
- 35:53models, these large language models that we were able to make
- 35:57the leap from what can it do for me to how can I get it to do it
- 36:02for me? And, and, and that is I think
- 36:06where a gentic AI has such promise.
- 36:12But you know, I'm going to put this caveat that it is very
- 36:17early. That doesn't mean that you
- 36:18shouldn't educate yourself. It doesn't mean you shouldn't
- 36:20try, right? Like just because the iPhone was
- 36:25like the first model doesn't mean it didn't have its hiccups.
- 36:28You know, like I remember working with the iPhone press
- 36:31and I was like, wow, this is magic.
- 36:32This is really cool. I was like, you know, I still
- 36:35don't understand why, why? Why can't I, like, I can't
- 36:39figure out how to get the calling to work while I'm
- 36:41texting somebody and like I, I just want to text, you know, It
- 36:44had its flaws, OK? That's why software is
- 36:47iterative, right? We are early in the agentic
- 36:51software development life cycle. Give yourself and give the tools
- 36:57that are offered in its stage of maturity some grace.
- 37:00But don't, you know, try it and then be like, oh, it's too
- 37:05early. I can't make sense of it, you
- 37:08know, stay persistent because that piece of magic that
- 37:11happened after you first, you know, interacted with the lol.
- 37:16It's there. You just have to dig a little
- 37:18bit and work on it. Yeah, you mentioned support
- 37:23agents. I think that's a great use case
- 37:26for agents. And there's some companies that
- 37:29are just absolutely blowing up right now that are doing that
- 37:33type of thing for agent workflows.
- 37:37What are some other work flows that you've been seeing and you
- 37:40appreciate? You know what?
- 37:42I I'm gonna, I'm gonna, I'm gonna go rapid fire here.
- 37:45OK. Oh, nice.
- 37:46There you got. There's there are so many of
- 37:50them. So many of them.
- 37:52OK, so, all right, here we go. You ready?
- 37:55I'm just gonna start going off the top of my head.
- 37:56Hit me. Hit me.
- 37:58All right, so look, you know you can fraud detection in finance,
- 38:03right? Identifying suspicious
- 38:05transactions and stopping them in their tracks and, and
- 38:10contacting the user on that behalf.
- 38:12Like intercept the fraud at that moment, right?
- 38:16Supply chain optimization, right?
- 38:19Bin packing is an age-old problem.
- 38:21Everybody deals with it. It doesn't matter what your
- 38:24industry you're in. OK.
- 38:25And but in supply chain, it's so much more acute because there's
- 38:29always real time information that is throwing things awry and
- 38:33being able to act reflexively is the name of the game.
- 38:36OK, patient monitoring. OK, let's say, you know, I'm
- 38:42just, I'm going all over the place here because there's so
- 38:44many applications. Like let's say you have an EHR,
- 38:47you know, if you know anything about healthcare, there's all
- 38:50kinds of information and telemetry in that EHR.
- 38:52There's charts, there's doctor's notes, there's intake forms,
- 38:57there's patient history, right? Like if there is an issue, why
- 39:02are we waiting until somebody recognises there is an issue?
- 39:05Why not have proactive monitoring to see if any of that
- 39:08data flags to see if there should be a follow up?
- 39:13Totally asynchronous, but a huge opportunity for agents.
- 39:18I'll give you another one Offline, 'cause people always
- 39:20think about online, They never think about the offline
- 39:22applications of agents. I got a farm, right?
- 39:27I've got sensors, I got telemetry in that farm.
- 39:31What am I doing with those sensors?
- 39:32What am I doing with that telemetry?
- 39:34I'm doing nothing with it because I have to monitor it.
- 39:37I have to sit on it and I have to figure out where I want.
- 39:40Like, this is ridiculous. What's the fertiliser contact?
- 39:42What's the nitrogen content of the soil?
- 39:45What am I supposed to do with that?
- 39:47No, make it actionable. Hand the agency over to an agent
- 39:51that can turn on or off the water.
- 39:54You know, apply nitrogen through kind of some kind of a drone or
- 39:58some kind of a distribution system.
- 40:00And see that that's. Cool.
- 40:01I'll give you another one that I really love.
- 40:03Here's another one I love. OK?
- 40:06Personal shopping assistance. Take a snapshot of your closet.
- 40:12Take a snap. Look, forget your closet.
- 40:15Load up your social media, OK? Connect your Instagram account.
- 40:20Inspirational. Yeah.
- 40:22Yeah, totally. Whatever.
- 40:24OK, get get your get your LLM some idea your multimodal LLM
- 40:29some idea what you're wearing. Have it scour the web for your
- 40:33brands and recommend you the clothes.
- 40:36Why are you looking for the clothes?
- 40:38Is it in you look this and the sales OK, for yeah, forget about
- 40:42the clothes. What about the sales, right.
- 40:45You don't have a personal shopper.
- 40:46Why? You know, nobody's saying don't
- 40:49go into the store, but don't you wanna know?
- 40:52Like, why are like, you know what our alternative here is to
- 40:54be trios. It's RSS feeds.
- 40:59It's RSS feeds. That's the that's the closest
- 41:02approximation you have. People are parsing through
- 41:06emails and pamphlets to figure out like, how, how do I get the
- 41:11best deal with the thing that I like?
- 41:13Why are you doing that? Don't do it.
- 41:18That is such a good one. I, I actually saw the other day
- 41:20somebody created like a Tinder, but for clothing items.
- 41:25And you could swipe right and like left.
- 41:27And so if you swipe right, it saves it or it will take you
- 41:31automatically to that. But it is, that's novel.
- 41:35That's not your shopping assistant that can say, it would
- 41:38be even cooler if you could say, hey, I just got you 5 shirts
- 41:41because you're thinking about getting a new shirt.
- 41:44These are all on sale. You've, you've showed interest
- 41:48in them in some way, shape or form, or you have one of them in
- 41:51your closet. You have been watching videos on
- 41:54TikTok about these types of shirts, but going back to there
- 41:58is something that I, I wanted to point out with those first two
- 42:01use cases that you mentioned, which is that they're very real
- 42:05time. The fraud and the supply chain
- 42:07are very real time. And in my mind, the use of LLM
- 42:16in real time never really went together because it is so slow,
- 42:21right? And so, like a fraud, you can't
- 42:24be sitting around for two minutes waiting to see if your
- 42:26credit card passes. So there's the I, I'm actually
- 42:31really glad you brought this point up.
- 42:32To be honest. I think that there is a huge
- 42:39investment opportunity that has yet to be fully realised and
- 42:45movement around small language models.
- 42:49I think we've looked at LMS as being a generalised set of
- 42:53capabilities that offer, you know, a wide variety of
- 42:57possibilities. But I think that, you know, as
- 43:02the maturity life cycle of, you know, as an example, do you know
- 43:08how many possible computer vision models, specifically
- 43:11models have been trained? I mean, I innumerable like here
- 43:18we are talking about like Lava 3.1, Lava 3.2, you know, Claude
- 43:243.5, you know, like get down to a dealership and get, you know,
- 43:30will, you know, will 7.53, you know, it's like, look, the the
- 43:38the point here is that the accessibility that small
- 43:44language models represent for latency and inference and said
- 43:49plainly, right, the smaller you get, the less expensive it is,
- 43:54the more accurate it potentially is and the more powerful it is.
- 43:57OK, and the fast and the faster it is fundamentally and the
- 44:01faster it is, the cheaper it is, the faster it is.
- 44:03There's also a parallel movement that's been going on around, you
- 44:10know, quantization and parameter efficient fine tuning.
- 44:16And I think that, you know, as we start exploring a lot of
- 44:21these use cases, the inference cost, whether that is done in
- 44:27terms of tokens, whether that's done in terms of latency,
- 44:30whether it's done in terms of, you know, RAM size, right?
- 44:35The actual compute resources that are required for inference.
- 44:38You know, we are going to continue to see that decrease
- 44:41and decline. It it this is the part where I
- 44:44have to say that, you know, this is kind of on more of the
- 44:48bleeding edge in terms of the return on investment.
- 44:52But the, the key here, the important thing here is if you
- 44:56can get yourself and your application to the point where,
- 45:00you know, inference speed and cost is the problem you already,
- 45:07because you've already solved the problem of how do you
- 45:10achieve your goals? Have you delivered success?
- 45:14And there are tools out there that will allow you to do it.
- 45:17And even if you have to go and hire data scientists to figure
- 45:19out like how do I train an SLM on this data set?
- 45:22Or how do I provide, like, you know, a graph rag interface that
- 45:26will make this more efficient and, and quicker.
- 45:29You know, how do I reduce the amount of resources that's
- 45:32associated with inference because I'm getting too much,
- 45:34you know, consumption downstream on my API?
- 45:37Like, these are great problems to have, right?
- 45:40Especially if you deliver in real time.
- 45:42Like if you can prove that the value of supply chain
- 45:46optimizations happens in a time series, right?
- 45:51If you simulate the outcomes and you can showcase that you're
- 45:54more efficiently allocating resources in your supply chain.
- 45:57And you can do that effectively. And the only barrier to entry is
- 46:01that you need to make that faster.
- 46:03You are in a very good spot, my friend.
- 46:06You're in a very good spot. Yeah, that's that is a great
- 46:11point. The speed is the last thing.
- 46:16There's so many other questions that you need to tackle or so
- 46:20many other obstacles we could say, and hurdles that you need
- 46:23to get through. By the time you get to speed as
- 46:27the hurdle, you're looking good. And so instead of jumping, I
- 46:32guess I, I kind of jumped to the end and say, whoa, is it ever
- 46:36going to be that fast? I, yeah, I understand there's
- 46:39distilling. I understand small language
- 46:41models, but I also see the the side of if I'm doing fraud and
- 46:46it has to be quick. I do think there is a world,
- 46:50though, a little tangent where you get these workflows that are
- 46:56using a combination of small language models plus just
- 47:00traditional machine learning, plus you've got these workflows
- 47:05that are are plugging in. And again, going back to that
- 47:07orchestration, each step on the orchestration, whether
- 47:11synchronous or asynchronous, it doesn't need to be every time
- 47:16there's a step on the orchestration or a gentic
- 47:19workflow. It has to be LLM call or just
- 47:23small language model call. It can be a regular regex.
- 47:27It can be whatever you want it to be, right?
- 47:30And so whatever you find as the most optimised.
- 47:33And also then going to that, because I know people when they
- 47:37go into production, one of the very difficult parts of, again,
- 47:41walking that tightrope of the trade-offs is, yeah, we can get
- 47:46it fast, but we can't get it reliable.
- 47:49Yeah, can once you start trying to shave off time, then you
- 47:53start seeing the accuracy go down.
- 47:55And that's a classic problem that is as old as machine
- 48:00learning. If we're going back to these,
- 48:01the 50s, as you mentioned, since agents been around, that's
- 48:05that's kind of been the name of the game.
- 48:07Yep. And I think, look, here's the
- 48:10here's the deal. You're not alone in this.
- 48:13Like it's human nature to confront something that is new
- 48:19and make a justification why that new thing will fail.
- 48:22And whether that is intentional or unintentional, whether that
- 48:25is justified or not justified, I think it it, it is it really
- 48:29behoves us to kind of see past those initial objections and
- 48:33figure out, is the value worth it?
- 48:37And quite frankly, you know, am I just, am I just saying it's
- 48:42not going to work because I don't really know how it would
- 48:45work? Or am I just saying?
- 48:49Lean on the braid. Yeah, or, or I, I just want to
- 48:52discount the the potential, right?
- 48:55It's OK. Nobody's going to fault you for
- 48:59calling out what is what are quite frankly the main
- 49:04impediments to rolling this thing out at, you know, mega
- 49:10cluster scale, right? Nobody's, you know, if you, if
- 49:14you go to somebody on the street and they're like, you know, why
- 49:18don't I have chachi PT everywhere I look?
- 49:20Well, yeah, I mean, it's a problem.
- 49:22I mean, there's other stuff, there's work you got to do, but
- 49:25the, the truth is that, you know, all of I, I wouldn't say
- 49:30all like they're an, there's an incredible concentration of
- 49:35minds that is focused in trying to figure out alternatives to
- 49:43these objections. And just because if they're
- 49:48working on it doesn't mean they're going to solve it, but
- 49:50it also doesn't mean that you can outright cast it out.
- 49:54Yeah, that put a very not scary but but fun picture in my head
- 50:01of, yeah, like these brilliant folks that with their
- 50:05candlelight. Just working on figuring out how
- 50:08to make this, how to get this working.
- 50:11And it's like this army of smart people and then me, the
- 50:14naysayer, being like, no, that shit ain't going to work.
- 50:17Yeah, right. It's like.
- 50:18Dude, you know how many smart people are working on this
- 50:20problem? Yeah.
- 50:22But it's, it's fine. It's fine.
- 50:24You know, like we've seen this happen everywhere.
- 50:27You know, people said the same people said the same thing
- 50:31about, about the web. I'd be totally honest.
- 50:37Look where we are today. Yeah, yeah.
- 50:40We're having a call. You're halfway across the world
- 50:42and we're having a call, video call nonetheless, on the web.
- 50:47They're in the browser. In the browser.