Latest / Agentic Conversations (formally mlops.community) / AI Agent Development Tradeoffs You NEED to Know
Transcript
- 0:00I think that agents collapse on a simpler structure as the
- 0:02models get better. We actually had our first agent
- 0:04frameworks all come out during that period and we got like auto
- 0:07GPT and baby AGI and. None of them worked.
- 0:11And they were enough to show promise.
- 0:12And then we got Land Graph Cloud that's trying to become Datadog.
- 0:14And then we've got AWS that's probably doing both.
- 0:17I I still am not sure what it means to be an agent in the
- 0:21cloud. One argument you could make
- 0:24against these agent frameworks is that.
- 0:32Here we go. Let's go.
- 0:33This is particularly close to my heart because I started in tech
- 0:38as an SDR and you are working on making that job obsolete.
- 0:44Well, we don't have SDRS at 11 X.
- 0:46So that's that's true really. Yeah, we, we actually we only
- 0:50have account executives and other, you know, roles within
- 0:52the revenue org, but we don't have.
- 0:54And their calendars are both SDRS.
- 0:56Yeah, Yeah, yeah. So for context, I'm tech Lead
- 1:00and engineering manager at 11X. And 11X is a company that's
- 1:04building digital workers. And our two workers today are
- 1:08Alice and Julian. They are both in the revenue
- 1:10org. So Alice is our AISDR or sales
- 1:14development representative product.
- 1:16And then there's Julian. Julian is our AI voice agent who
- 1:20actually specializes in inbound sales and speed to lead.
- 1:24If you're familiar with that concept and I have, you know,
- 1:28I'll, I'll copy out by saying I've got some voice AI
- 1:30experience at 11X, but most of my role is focused on Alice.
- 1:34But my previous startup was a voice AI company.
- 1:37And so we can talk a little bit about about Opkit, if that.
- 1:40Yeah, well, we're going to Opkit.
- 1:42OPKA was YC Summer 21 company. We built one of the first
- 1:45vertical AI phone calling solutions for the healthcare
- 1:49market. So we were automating calls to
- 1:52insurance companies on behalf of healthcare providers and
- 1:55provider groups mostly for verifying patients insurance
- 1:59eligibility or for securing prior authorization or for
- 2:04claims follow up. So, you know, a lot of the
- 2:06operations that are relevant in the back office and billing
- 2:11department of these provider groups are actually can only be
- 2:13done over the phone. I was going to ask, they don't
- 2:15have a website for that. Yeah, they, they have a website
- 2:18short story is that they're, they're not that incentivized to
- 2:21make it very easy. And one of the ways that they
- 2:23make it hard is by only allowing you to do certain things over
- 2:27the phone. And we had been working in
- 2:30health insurance medical billing for about a year and a half when
- 2:35ChatGPT and the GPT 3.5 came out.
- 2:38And we had already had team members who operations folks who
- 2:41are doing these calls for our customers as a sort of a
- 2:46services component of our platform.
- 2:48And it was like immediately we realized we're going to be able
- 2:51to automate the call in to end using AI.
- 2:54And so we just pivoted to purely doing the the voice AI solution
- 2:57for provider groups. But what happened?
- 2:59Why aren't you still doing that? We, I think we're a little early
- 3:01on the technology technologies, I mean that's.
- 3:03Summer 21. Yeah.
- 3:04And I'm and I actually interesting, I watch the 11X
- 3:07team work through a lot of the same engineering challenges that
- 3:10we were working on while we were at at OPCAD, kind of doing it
- 3:14from the the sidelines. I mean, they're, they're
- 3:16definitely taking things to a new level and they're, they're
- 3:19way beyond where we were previously and, and way more
- 3:22sophisticated. Those guys are probably as sharp
- 3:24as it gets when it comes to building voice agents, but it's
- 3:28fine to see like the industry is still grappling with how to do
- 3:31that well and actually voice agents are a really different
- 3:34than regular text base or or multi modal agents.
- 3:38I talk about this all the time. They're so it's a rich medium,
- 3:42but they're when we type something out, if you and I both
- 3:46type the same thing, it's pretty much understood what we're
- 3:51trying to say. If we say the same thing, it can
- 3:55be that I'm saying it with a certain tone and I mean one
- 3:58thing and you're saying it and you mean something completely
- 4:02different. Yeah.
- 4:03And so how you pick that up with these voice agents is very
- 4:06difficult. Yeah, Yeah.
- 4:07Those inflections and those paralingual cues and obviously
- 4:12make things a lot harder. And then doing that in real
- 4:14time, yeah, with latency constraints is also really
- 4:17challenging. Yeah, so but.
- 4:19So then let's let's move over to Alice and what you're doing
- 4:22there. Yeah, you probably know the SDR
- 4:24world better than I do. I'm an engineer so I I was found
- 4:28her previously and I've I've tried to do some outbound which
- 4:30is why I have a little bit of appreciation for how painful.
- 4:32You, you're on the other side of it, right?
- 4:34You probably get hit up all the time.
- 4:36Now it's that's all vendors coming at me.
- 4:39And ironically, I'm, you know, I'm building like the the Canon.
- 4:41Right. Imagine they're using Alice to
- 4:44hit you up about that. I Yeah, I wonder.
- 4:47If I could suss out or recognize and Alice read an e-mail, I've
- 4:50fortunately I think they're like dynamic enough that I I wouldn't
- 4:53notice. Now you talk about Alice being
- 4:55an agent. What does that mean for you?
- 5:00Why is it agentic as opposed to just a program?
- 5:05Yeah, that's a really loaded question.
- 5:06I'm getting to the definition of what an agent is in a hotly
- 5:10debated topic. I think that, you know, agents
- 5:16the the characteristics that they have are they can automate
- 5:19complex and ambiguous tasks, tasks that really were not you
- 5:23could not automate previously. So they're sort of unlocks a new
- 5:26category of things that can be automated with software they use
- 5:30tools they have sometimes they have memory and generally built
- 5:36with one of these new agent frameworks, whether it's land
- 5:38graph or the new Open AI Agent SDK.
- 5:43And effectively there's A at the center of the agent, there is a
- 5:45loop that involves a language model.
- 5:48And in that loop, the the agent is planning about what to do and
- 5:53then taking action, usually through a two call, then
- 5:56observing the results of that action on their environment and
- 6:00and then reasoning about whether it should continue to execute
- 6:02and and take another action or whether it's in the execution.
- 6:06And inside of Alice, this looks like I have this data, I'm
- 6:10sending an e-mail or I'm scraping a website to find out
- 6:13more about this person, and then I'm personalizing a message and
- 6:19then I'm sending the e-mail. Yeah, that's essentially right.
- 6:21So the this main campaign creation flow, which is the core
- 6:25part of what Alice provides is starts with sourcing.
- 6:28So helping you build a list of people that look like your ideal
- 6:31customer profile. We have an agent that that
- 6:33specifically helps with building the right audience.
- 6:36Then there's a research on the individual leads that are in
- 6:41your audience. So we'll essentially have a deep
- 6:43research agent that like creates a really comprehensive report on
- 6:46Demetrios and on Sherrod and anyone else who's enrolled in
- 6:48your campaign using some of our data and also using, you know,
- 6:52web web scraping and web search tools.
- 6:56And then following research, there's sequence and message
- 6:58generation, the sequences, the, the different messages that
- 7:03occur or in the outreach process for this lead.
- 7:05So you know, I'm going to contact Demetrios on day one,
- 7:08day three, day 7. This is something the agent
- 7:11decides. And then finally, the contents
- 7:14of each of those messages. You know, what am I going to say
- 7:18to Demetrios in each message? What's my follow up going to be?
- 7:20You know, what value props am I going to emphasize?
- 7:23What personalization am I going to call it?
- 7:24I'm going to say like, Hey ML OPS, I saw you guys, you
- 7:27recently broke what like 1,000,000 views on one of your
- 7:30videos, so. They call that out and like
- 7:32Congrats on the. Would say Congrats on like
- 7:34breaking that milestone. You know, I bet you have a need
- 7:37for, you know, more growth tools now that you have reached this
- 7:40digital. Dude, you know what's so funny
- 7:42is back in the day when I was doing the STR work, I thought it
- 7:46was magic when a friend showed me a tool that gave you the tone
- 7:52that you should speak to somebody in when they had this
- 7:56list of folks. And so you could add your leads
- 7:59and then it would say, Oh yeah, this person.
- 8:01We know that judging by how they speak on the Internet, you can
- 8:07talk to them in this type of tone.
- 8:09Interesting. Yeah.
- 8:10And now for me was like, wow, incredible.
- 8:12Yeah, this is 10 steps further than that.
- 8:15Because now I don't need to even know what kind of tone or what
- 8:19to think about, and I can pull in relevant data on recent
- 8:22things that have come up and I don't have to craft it.
- 8:26And I think one of the product challenges that we have is, you
- 8:29know, we're selling this into sales organizations, people like
- 8:33you who actually know what they're doing, some of them a
- 8:35lot, I mean basically all of them have previously been SDRS,
- 8:38have opinions about how these things should work and what
- 8:42balance we always need to strike is that we think that Alice can
- 8:46do this very well. Alice is great at sourcing,
- 8:49great at writing messages, great at research, knows how to pick
- 8:53the right tone, knows what aspects of your product and
- 8:55business to emphasize when reaching out to this particular
- 8:59lead. And sometimes the user thinks
- 9:02that they know best and wants to, you know, wants the
- 9:05messaging to have a particular structure, wants it to only ever
- 9:09reference, like this case study wants to target a specific type
- 9:14of lead, even though, you know, maybe, you know, we don't think
- 9:17that might be the best lead in terms of performance.
- 9:19So we have to strike this balance between providing
- 9:22control for the users and providing, you know, results.
- 9:27And the way that we think we get results is by effectively
- 9:29putting Alice on autopilot and letting her do what she does
- 9:32best. And that's something comes up in
- 9:37our, you know, product conversations and, and with
- 9:39customers a lot. No, we talked about the
- 9:42reliability of this and you mentioned, all right, well, we
- 9:45chose to outsource the hosting of the agents in a way.
- 9:50What were the trade-offs? How did you look at that
- 9:53decision of we're going to go with and you're using lane
- 9:55graph, right? So you said we're going to use
- 9:58lane graph. Why and how did you come to that
- 10:01decision? Yeah, that's a great question
- 10:04and controversial recently, I forgot.
- 10:08Yeah, there's. Why didn't you use pidantic AI?
- 10:11That's so true. Pidantic we we're, we're mostly
- 10:15TypeScript, TypeScript shops, so probably not the right fit for
- 10:18us. But yeah, it's been a hotly
- 10:21debated topic, the agent framework wars recently.
- 10:25I'm sure your listeners know like the the blog post that
- 10:27Harrison published in response to opening eyes new agent
- 10:31framework and their their post, their guide to building agents
- 10:34through a little bit of shade on the idea of workflows and graph
- 10:37structures. Plangraph is the agent framework
- 10:41that has graphs in its name. The name, they went all in on
- 10:44the graph. Idea exactly and actually into
- 10:46their credit. I think it's an extremely
- 10:48flexible structure, land graph. Yeah, in in graphs generally for
- 10:54representing the agent. And you know, with land graph,
- 10:58everyone can build an agent that gets to production.
- 11:00And I think that is in part possible because of the graph
- 11:04structure that they chose. Now, a lot of other agent
- 11:07frameworks are much simpler. They, you know, modeled around
- 11:12chat and maybe are, they're sort of pure agents in the sense that
- 11:16this is not a workflow. There are no predefined code
- 11:18paths between nodes. There's really just one node and
- 11:21it's looping through this recent act observe loop, you know, the
- 11:25React agent that people are familiar with.
- 11:27And that's a super powerful structure.
- 11:30I think that as models get better, all agents start to
- 11:33collapse on this simpler form factor.
- 11:37But the reality is like, you know, models have limitations
- 11:40today. Prompts aren't perfect.
- 11:42We, our evals are not that good. Like something's very expensive,
- 11:46you know, and you want to create structure in the graph that
- 11:50ensures that like a certain step performs well and a graph, a
- 11:56structure allows you to do that. Well, yeah.
- 11:57And if you're going out and you're selling a product to
- 12:00folks and you're claiming that it's going to work, you can't
- 12:03have it work some of the time, right?
- 12:05And so a graph gives you much more reliability.
- 12:08And you thinking about it from that systems angle, I'm sure
- 12:10that was one of the things that you realized right away was we
- 12:14need this to be reliable. We recently rebuilt Alice from
- 12:19scratch over like the last six or seven months.
- 12:23We started in October of last year, so October 2024.
- 12:26Alice for context was launched in January of 2023, so a lot had
- 12:31changed. We actually had our first agent
- 12:34frameworks all come out during that period and we got like auto
- 12:37GPT and baby AGI and. None of them worked.
- 12:41Or enough to show promise. You're like, wow, there's
- 12:43something cool here. And then the Lang Chain people
- 12:46are pretty forward thinking. So they launched Land Graph and
- 12:50really what happened for us as we saw the way the landscape was
- 12:53changing and then we saw some of the new agentic products that
- 12:56were being released, specifically the Replit Agent,
- 12:59left a really big impression on our team.
- 13:02Are you familiar with the Replit Agents?
- 13:03Yeah, but I don't know why it would be different than like
- 13:06cursor or windsurf agents or Devon.
- 13:08The Replit agent was the first of these tools of these coding
- 13:12assistants to really be agentic. You know, cursor had tab, which
- 13:16is the one of their main feature, which would use a
- 13:18language model to predict where in the in your code you're going
- 13:23to jump to next and what the next change that would be.
- 13:25And you could sort of just press tab to to apply that they didn't
- 13:30have an agent in the in the platform.
- 13:32It was auto complete. It was.
- 13:33Effectively really really good auto complete that made GitHub
- 13:36Copilot look like a joke and to their credit, like all done on
- 13:41like custom language models, some small language models
- 13:43involved really impressive work that they did.
- 13:48Meanwhile, Rapid was the first one that was really in my
- 13:51opinion the first company to to bring this AI coding agent that
- 13:55is looping through multiple steps calling tools to build an
- 13:59entire project. The agent is your copilot and
- 14:02it's actually helping you build the project and experience was
- 14:05unlike any product experience we'd ever seen before.
- 14:08And they did this way before Cursor Composer which is the you
- 14:11know the cursor agent which is now the default mode within
- 14:15cursor. And so you saw that and you
- 14:17thought that's where we need to go.
- 14:19Exactly. We, we saw that, we, we knew
- 14:22that landscape had changed products, AI products were going
- 14:26to look completely different and it had to be agents.
- 14:30And like we just basically made the leap based on that
- 14:32conviction. And it's interesting that you're
- 14:34reassessing. I imagine you have to reassess
- 14:37continuously because it moves so fast and the landscape and what
- 14:43you're doing is 1 upping all the time.
- 14:48Right. Yeah, keeping up with models is
- 14:50really hard. Well, not just the models, but
- 14:52like you're seeing, OK, now we're not in a baby AGI world,
- 14:56we're in a lane graph world. So we could potentially do what
- 15:00we're trying to do now a lot easier.
- 15:03So obviously models are improving.
- 15:04I've mentioned that I think that agents collapse on a simpler
- 15:06structure as the models get better.
- 15:09One argument you could make against these agent frameworks
- 15:13or against more complex ones that allow for more complexity
- 15:15like Landgraf, is that they actually they incentivize you to
- 15:19create structure and scaffolding to accomplish short term
- 15:23performance gains, right? Like I can add a few extra nodes
- 15:26here and create a new loop within my agent and that ensures
- 15:30that this step in my campaign creation flow now consistently
- 15:34works. What happens is that you do this
- 15:37for to expand the capabilities for agent in a lot of places.
- 15:40Now you have a very complex graph.
- 15:42Then a new model drops and you're like this new model.
- 15:47Yeah, I could have accomplished all of what I just accomplished
- 15:50using a new model in a much simpler structure.
- 15:52And I could have just waited. You could have just waited.
- 15:55Damn model came. Out.
- 15:56And so you're doing this constant analysis of whether
- 15:59there's premature optimization. You're like, is this is am I
- 16:03making, is this investment in that my graph structure or in
- 16:06the framework of my agent going to going to pay dividends before
- 16:11a new model comes out that renders it obsolete.
- 16:13And then there's clean up work to be done to simplify your
- 16:15agent afterwards because actually you what you do is you
- 16:18become sort of sclerotic where the agent is is like locked into
- 16:23this structure that no longer really makes sense and prohibits
- 16:27it from doing other things that you might.
- 16:29Investors, do you look at, as you're saying, hey, we need to
- 16:31be forward thinking in three months, we don't want to have to
- 16:34go and rebuild this from scratch.
- 16:36Yeah, that's a really good question.
- 16:39And I imagine you can't tell the future, so obviously it's like.
- 16:41I can't tell the future, barely keep up with the present.
- 16:44We try to obviously stay on top of all the new model releases
- 16:47and at minimum we will when we get access to a new model, we'll
- 16:52have our team sort of bash it and like regular chat clients,
- 16:56get a feel for how it behaves. Maybe use it in cursor a little
- 16:59bit to see how it performs in an agent loop.
- 17:02We will drop it into our agent and see what the performance
- 17:06impact is. To be honest, it's a lot of
- 17:08vibes today. We we have an agent that works
- 17:12and you know a gentic product that's pretty successful
- 17:15customers are happy with. Can you just lock it in there
- 17:18then? I wish.
- 17:19I wish we could, we could just say, you know, mission complete
- 17:22and we're, we're done. But we, I think that there's a
- 17:26lot more that we want Alice to do and our, our, our North Star
- 17:30metrics are revenue generated for customers or pipeline
- 17:34generated for customers meetings booked.
- 17:36Some of these are hard to do attribution for by the way,
- 17:39positive replies to to any of the outbound messages and
- 17:44anything we can do to create left in those metrics justifies
- 17:48like the investment on the engineering side.
- 17:51So we're just kind of keeping an eye on those metrics and on some
- 17:54of the evals that we've set up on, on the agent.
- 17:56And when we feel like there's a model that changes the game, we
- 18:02spend a little time investigating whether that is.
- 18:05There any it's a time where you've been creating in creation
- 18:09mode and you thought I could do this right now, but I think the
- 18:15next model drop is probably going to make this all not worth
- 18:20my time to invest in it. Yeah, that's that is a good
- 18:24question. Or we could do it retroactively
- 18:29and say what did change in the last model drop?
- 18:33Yeah, we're still mostly on 3/5 and 37 sonnet.
- 18:40We've obviously got access to some newer models from Open AI
- 18:43Sense. I don't think that we've seen
- 18:48like a big enough performance left from those models.
- 18:51There's also a cost and latency consideration.
- 18:54So it's a pretty complicated analysis at any given time to
- 18:57understand whether we should upgrade.
- 19:00We need to know is the performance.
- 19:03First of all, we've got all these lagging performance
- 19:04indicators. It's so it's hard to even know
- 19:06what the performance left is. And once we know what the
- 19:08performance left is, how does that relate to the, to the
- 19:12increase in cost and whether and what does it, what does it mean
- 19:15for product or end user, excuse me, in product user experience,
- 19:20when you're using that with the agent or interacting with that,
- 19:24does it feel slow when it's generating those messages?
- 19:27And then meanwhile in the background, we are doing like
- 19:30hundreds of thousands of emails per month.
- 19:35What's our throughput, What's the speed impacts there?
- 19:39So I wish we could say we're more systematic about it.
- 19:43Maybe the best thing for like the ML OPS community to say here
- 19:46is that we don't have it down to a science.
- 19:48And it's a lot. It's a lot of, you know, vibe
- 19:50decision making there. Yeah, it does.
- 19:52It does feel like you're not the only one, Yeah.
- 19:56I'm pretty sure that's the. State of the the industry right
- 20:00now. Yeah, we're, we're not
- 20:02researchers either. You know, we like, we, I'm
- 20:04pretty proud of what we built with Alice and how, you know,
- 20:07how far we are as a company and with 11X.
- 20:09But we're really focused on commercializing AI.
- 20:13And so we, we're happy to, to rely on the, on the labs and on
- 20:18the other researchers to, to, to and the benchmarks to help guide
- 20:21us. But we are very pragmatic and
- 20:24focused on creating a better product.
- 20:27And so that guides a lot of our decision making.
- 20:29What did you decide on when it comes to Lane Graph again?
- 20:35You told me that it's hosted. What does that even mean?
- 20:38Because I'm not sure I'm clear with a hosted agent Versus what?
- 20:43Yeah, yeah. And why?
- 20:46That there's a lot of places we could go with that.
- 20:48So just the main decision making criteria on Landgraf,
- 20:52specifically in September of last year, Landgraf is one of
- 20:55the best and most mature options for an agent framework.
- 20:58And you know, you can argue whether that's still true, but
- 21:02at the time, certainly it was and those guys are leader in the
- 21:05AI dev tools and an agent space. So we really wanted to partner
- 21:07with like a team that could educate us and that where it was
- 21:11leading the way and had a solid adoption wasn't going to
- 21:14disappear in six months like many agent frameworks.
- 21:17That's their have and and probably well.
- 21:19Yeah, you have to watch out for that.
- 21:20That's a great axiom to be thinking about.
- 21:23Yeah, yeah. We use Lang Chains products in a
- 21:26lot of ways. We use their Landgraf agent
- 21:28framework. We use Landgraf Cloud, which I
- 21:30think is now called Landgraf platform.
- 21:33This is their cloud hosting solution for AI agents.
- 21:37We use Lang Smith for observability, which is coupled
- 21:40with Landgraf Cloud. That gives us visibility into
- 21:44the actual agent runs, and then we use some of their other SDKS
- 21:50within the agent itself. I I still am not sure what it
- 21:54means to be an agent in the cloud.
- 21:57Yeah, yeah. But we could break down like
- 21:58what the agent actually is. So I we talked about like the
- 22:01agent is this loop, right? It's really an LLM and a loop.
- 22:06And the LLM is saying is, is deciding what your reasoning
- 22:09about its state and its environment.
- 22:11So given like some input object which represents the state of
- 22:14the world and a prompt which explains who it is and what its
- 22:19objectives are, it decides or it reasons about what action it
- 22:23should take. Then one of the actions and many
- 22:27of the actions typically are tools that it can call.
- 22:29So if it chooses to call a tool, then you have something that
- 22:32executes the tool. Now the LLM isn't executing the
- 22:35tool, it's just saying I would like to call this tool.
- 22:38And then you've got maybe it's some case statement that says,
- 22:42you know, if LLM return tool call get tool called type and
- 22:49based on whatever type was called, you would then invoke a
- 22:52function which is implemented in the in the code.
- 22:54Or maybe a more modern way to do this was with MCP.
- 22:58Now you have the, they have access to an have.
- 23:00You had to go and upgrade shit because.
- 23:02Of that we're I personally love MCP, very interested in it, have
- 23:05built some side projects. We're not using MCP in
- 23:07production today. No.
- 23:08Smart, yeah. Understandable.
- 23:11It's a very new technology. This would probably not be like
- 23:14the most pragmatic thing to do, but super interesting and things
- 23:18does solve a lot of problems related to tools.
- 23:20We can get into that. So then it calls the tool.
- 23:23So it calls the tool. Something executes this tool
- 23:26That could be the same, let's call it a node process, because
- 23:30we run TypeScript. So our agent is written
- 23:32implemented in a node and this node process is running.
- 23:36It calls the tool as a function. Function returns some results
- 23:40then then you update your state to reflect this the new state of
- 23:45the world now that the functions been called.
- 23:47Then you repeat the Lib and eventually the LLM says yeah
- 23:50I'm. I'm either stuck in need to and
- 23:53should exit the process or I've completed the task and I should
- 23:56exit. And so that whole process is
- 23:59done on the link chain cloud. Yes.
- 24:01So we use. So Lang chain provides us this
- 24:05agent framework lane Graph, which was some create some nice
- 24:08abstractions for defining the agent that I just described.
- 24:12And what that ends up being is a a node or a JavaScript bundle
- 24:18that runs with node in a container on Lang chain servers
- 24:23or Lang graph servers. And there's a a.
- 24:27There are two things that sit in front of us that Lang chain also
- 24:30provides or Lang graph also provides.
- 24:32The first is a is an API that allows us to call our agent from
- 24:37either our back end or our front end.
- 24:39We do. You're just interacting with an
- 24:40API. Exactly.
- 24:41So our agent becomes an API endpoint for us.
- 24:44And as a side note, Lang chain has also created this protocol
- 24:49called the Agent protocol, which is like a set of guidelines for
- 24:54the for how that API should be structured.
- 24:58What are the different endpoints that it should have?
- 25:00What are the different entities and resources that it should
- 25:02expose? Which Http://methods should be
- 25:05used? What are the payloads?
- 25:07That was pre MCP. It's not, it's not for tool
- 25:09calling. It's really for like exposing
- 25:11your agent. Yeah, You know, if I want to
- 25:13deploy my agent as an API and have, I mean, Alice is a
- 25:16constellation of agents. But if we wanted to take Alice
- 25:19and turn her into an API endpoint that you could use
- 25:22instead of using our dashboard, then one of the ways we could do
- 25:25it is by implementing an API that adheres to this agent
- 25:29protocol that Lang Chen has to has defined.
- 25:31So they have this API and the API sits in front of a queue
- 25:36basically every time I call this API endpoint.
- 25:38I think an example endpoint would be like runs, creates,
- 25:42like post runs create. Now I'm creating an agent run,
- 25:46there's right at the front of the queue, something is holding
- 25:49my connection. It actually depends on whether
- 25:51I'm streaming, whether I want to stream the results back, or
- 25:54whether I just want to fire off the run.
- 25:56A simpler example is if I just want to fire off the run, I
- 25:59don't care about streaming it back.
- 26:02I, I call this endpoints the my, I pass the parameters like the
- 26:08whatever the agent is that I like to call, whatever the
- 26:10initial state is. And then a, you know, an advance
- 26:15is placed onto this queue. The there's a consumer at the
- 26:18other end of this queue that sits in front of the node
- 26:21process. And for every queue event that
- 26:24is received, it starts the node process and passes in that
- 26:27state. And so the nice thing about
- 26:30having that queue there is that if my, if I haven't like totally
- 26:35scaled or if Lang chain in this case hasn't scaled up all of the
- 26:38agents so that it can handle a peak load, none of the none of
- 26:44my agent execution requests get dropped or lost.
- 26:47They will all eventually get processed.
- 26:49Yeah, just slower, but just be slower.
- 26:51Yeah. And you can scale the queue or
- 26:54Lang chain provides some ways for you to scale the queue.
- 26:56If you are hosting this yourself, you could also have
- 26:58your queue do some auto scaling or.
- 27:00Well, let's talk a bit about that because I guess one of the
- 27:03huge value props here is that you don't have to deal with that
- 27:07scaling issue. You don't have to worry about.
- 27:09Yeah, and but what are the trade-offs?
- 27:13There's always going to be something that you're.
- 27:16What always is there's no, there's no free lunch.
- 27:21Yeah, there are trade-offs. I mean, so this is like a lot of
- 27:23infrastructure we didn't have to build and it's infrastructure we
- 27:27could have built. But you're with Alice is also
- 27:29like a SAS tool. I mean, there's the agent, but
- 27:32then there's the dashboard and then there's we have other
- 27:35background processes that are happened.
- 27:37So we're building a whole application and then we're
- 27:38building this agent that needs to hook into the application.
- 27:41And you rebuilt it in October when you already had something
- 27:45out. So you can't just turn around
- 27:48and spend a year and a half building out the infrastructure,
- 27:51I imagine, so that you can get this agent going.
- 27:54Yeah, there's a whole meta here, which is that our customer base
- 27:57was growing, our old product was starting to crumble.
- 28:00You were going fast. We had to go.
- 28:01Fast go to market was not slowing down for us.
- 28:05We had to get this thing out really quickly.
- 28:07Yeah. And it was, it was quite the
- 28:08crunch. It was, it was super painful.
- 28:10But we're on the other side of it now, so I can laugh about it.
- 28:14Somebody I heard somebody talk about that being type 2 fun.
- 28:17Yeah, yeah, that's exactly right.
- 28:19It was Type 2 fun. There's a lot of late nights.
- 28:22My skin looks a lot better than it did in March or whatever,
- 28:26February or something. You got some sun.
- 28:28Thank you. Yeah, not as pasty.
- 28:31I remember the first time that I met.
- 28:32It's a little more pasty. The let's see the trade-offs, I
- 28:37mean, so super advantageous for us to do this just to get to get
- 28:39off the ground really quickly and to not have to worry about
- 28:41building that infrastructure. The I think some of the
- 28:46trade-offs were, you know, when we started using land graph
- 28:49cloud, it was newer products. We did run into some, some
- 28:52scaling issues at times. There were some limits on the,
- 28:55the, the extent to which they could scale an individual what,
- 28:59what they call deployments. So in fact, we actually had to
- 29:01create lots of deployments. Those, those queues or those?
- 29:06You can think about this as like, you know, if you're
- 29:08deploying a service in Amazon, you like deploy UCS service.
- 29:14If you are deploying an agent in Landgraf, you created a a
- 29:17deployment and we had a lot of volume.
- 29:21We had spiky volume and that led to us running into, you know,
- 29:27connection time outs during those peaks.
- 29:30And obviously one of the things we could do to make this, make
- 29:35this better is to smooth out our, our request traffic, which
- 29:37we have done. And that's we take full
- 29:41responsibility for our query patterns.
- 29:44But we are also, you know, the we are exceeding some of the
- 29:47limits of, of what they could do.
- 29:49They could the extent to which they could scale an individual
- 29:51deployment. So the way we got around with
- 29:54this is we created 10 different deployments and then we had our
- 29:57all of our clients is round Robin across them and now it's
- 30:00been fixed. So we're consolidated again and
- 30:03then other challenges, we have this deployment pipeline that
- 30:08deploys all of our back end services.
- 30:10Our code is stored in a mono repo including the agent itself.
- 30:14So usually at any given time, the the main, whatever the head
- 30:18of main in our mono repo is, represents the state of the
- 30:21world, what should be in production.
- 30:24And our deployment system works for all of our back end
- 30:27services. You we've got a separate set of
- 30:30infrastructure now for our agents.
- 30:32So if we want to also auto deploy and auto roll back our
- 30:35agents, there's all of this additional deployment
- 30:38infrastructure we need to create to support that.
- 30:41And our deployment system gets way more complex.
- 30:45And then last thing that comes to mind is on the observability
- 30:48front. You know, agents are software
- 30:51just like everything else. And we want to see the logs, we
- 30:55want to see the traces. And we typically pipe all of our
- 30:59our observability telemetry logs, traces, metrics to
- 31:03Datadog. And this is different than
- 31:06laying, which what's the service laying language?
- 31:09Yeah. And this is this is another
- 31:11small, small complaint about using Lang Lang chain.
- 31:15The ecosystem is that they have Lang Chain, Lang Smith.
- 31:18Everything is Lang graph. It's the year of the Lang.
- 31:20Man, it's the year. It's not the year of the Lang.
- 31:22Man, there's more. Yeah, ironic because it's hard
- 31:25to remember. Yeah, and it's all about memory.
- 31:30And then there's two sets of two sets of documentation for both
- 31:33Python And TypeScript. So you're like, am I on the
- 31:36right documentation? Page right now.
- 31:37God, that's painful. Yeah.
- 31:40Gotten better at navigating that.
- 31:41I think they've gotten better at positioning there and.
- 31:43Figuring the products, Yeah, call something different.
- 31:47Yeah, the lanes have been exhausted.
- 31:49Yeah, it's the calling card. We on the observability side,
- 31:53Lang Smith offers a lot out-of-the-box, which is great,
- 31:55but I'm a former infrastructure and observability engineer.
- 31:59Like one of the core tenets of that role is like, all of the
- 32:03telemetry should be in one place so that when something's going
- 32:05wrong, the developer. You don't have to search.
- 32:08You don't have to go looking for it.
- 32:09And and if you're not, if you're a product engineer who doesn't
- 32:12know what the whole observability stack is, you can
- 32:14just like jump into that tool and it's got everything.
- 32:17All of the logs are there. Yeah.
- 32:18You don't need to remember, you know this, there's a customer
- 32:21that's complaining or there's an outage.
- 32:23Or, oh, there's. This is everything except for.
- 32:25Except for that one one thing, which by the way, is where the
- 32:28bug is, right? Like so getting some of our logs
- 32:31and other telemetry into Datadog from Lang Smith was, is was not
- 32:35that easy. And it's still a little, a
- 32:37little bit painful. I think I know that they're
- 32:40working on better integrations with with Datadog to make that
- 32:43and make those pipes. That feel that seems relatively
- 32:48trivial. I guess it's a huge problem for
- 32:52you, but it's like there's nothing that's blocking them
- 32:55from making that a easier process in six months.
- 32:59You know it, it depends on how, where you think these agent
- 33:01framework companies are going. Oh yeah, I think sort of there's
- 33:04an incentive for Lang Chen. To own everything.
- 33:07To, I mean they want to lock you into their platform and they,
- 33:11they're all of their agent frameworks are open source.
- 33:14A lot of their other tooling is open source.
- 33:16So the the value, the way that they capture value is by getting
- 33:19them who are you using their hosting solution and by you
- 33:22using their observability solution.
- 33:23So making the pipes easier so that I can get to Datadog may
- 33:28not be like #1 priority, but they do want to make their
- 33:32observability tool really good too.
- 33:35So it kind of ends up becoming a question, yeah.
- 33:39Do you think that agents are different enough to require a
- 33:43different cloud? Will we will we end up using
- 33:47dedicated clouds for agents? Or will we just deploy agents
- 33:51like we deploy other software to existing clouds?
- 33:53Yeah. Is it complex enough to warrant
- 33:57its own cloud? I think that's I, I'm not sure
- 34:07about that. I think we talked about the
- 34:09infrastructure pieces that are required to to host an agent.
- 34:13I think that you, you could imagine that all of open source
- 34:17versions of all of those or a single open source solution that
- 34:21combines those components, something like an elastic search
- 34:25or a Kafka. That is, you know, everyone
- 34:28knows how to work and everyone knows how to deploy and AWS is a
- 34:32one click deploy for. So I, I don't think that that's
- 34:38out of the realm of. I'm surprised AWS hasn't stolen
- 34:40Lane Graph actually and run it as a service on AWS now that you
- 34:44say that. They have, they have their own
- 34:46agent framework and they have AWS Bedrock and they have
- 34:50Bedrock agents. But their agent framework, it's
- 34:53one of those ones where it was older, right?
- 34:56And I don't know anybody who's using that.
- 34:58I don't know anyone who's using bedrock agents.
- 35:01No offense to the to the bedrock team doing great work.
- 35:04We use Bedrock for in France. Bedrock has a has a partnership
- 35:09with Anthropic where they can host some anthropic models.
- 35:11So. But why bedrock as opposed to
- 35:14just going to anthropic? Because of the reliability, we.
- 35:16Originally switched from from anthropic to bedrock because of
- 35:20rate limiting and we couldn't get high enough rate limits
- 35:22through anthropic. You got to know someone, you got
- 35:25to have an Angel. And so Bedrock gave us high rate
- 35:30limits. Now I think there there's a
- 35:32difference in cost between the two platforms.
- 35:35And so this is like where you get your procurement team
- 35:38involved because? Sure.
- 35:40You don't want to give us these better rate limits.
- 35:42Yeah, well, that's a great point.
- 35:46So then. It's.
- 35:49Just a ghost. Yeah, just a ghost.
- 35:52There's a fitting for this room. It's.
- 35:55Super cool space. It is cool.
- 35:58Thought about getting a bunch of cigars.
- 36:00Oh my God, that would be cool, but I wouldn't be able to like
- 36:02step out of work to come do the podcast.
- 36:04Yeah, no, or we don't have to smoke them.
- 36:06We just chew on them and look cool with them.
- 36:08Just have one like smoking in a. Tray Yeah, I bet they would be
- 36:13very excited about us doing that.
- 36:18We could do an after hours thing.
- 36:19Yeah, well, what else man? There's a a few other things
- 36:23right? Like I I like the trade-offs
- 36:25with lane graph and hosting an agent there.
- 36:27Lane, Lane Cloud. Lane Graph Cloud.
- 36:30They missed an opportunity to confuse the shit out of people
- 36:33more and just call it lane cloud.
- 36:35I think lane cloud would have worked.
- 36:37That's the next iteration. You actually, you know, what I
- 36:40would love to talk about is you as a observability guy.
- 36:46How do you see observability being different now with agents,
- 36:49if at all? And it can, it can be totally
- 36:52cool. If you say nothing, it's same,
- 36:55same. It's still software.
- 36:56No, no, I think this is a rich question.
- 36:59We might have to noodle on it a little bit.
- 37:03Yeah. So my background and
- 37:04observability is I, I was, I was second infrastructure engineer
- 37:07at BRACS and had like an amazing mentor who who grew me a lot of
- 37:11Braxt, built a lot of cool production infrastructure there
- 37:14and then at some point established the observability
- 37:18team at Braxton. So we had a couple of folks who
- 37:21are specifically focused on developer tools related to
- 37:25instance and understanding how systems are behaving in
- 37:28production. In practice, that's like we, we
- 37:31set up Datadog, we set up auto instrumentation for all of our
- 37:34services. We had like 30 or 40 different
- 37:36micro services running in our Kubernetes cluster.
- 37:39All of them are sort of uniformly and automatically
- 37:42instrumented. We had a instant process and and
- 37:47tool that you would use for for kicking those off and for
- 37:49resolving them and and some other observability tools as
- 37:54well for the things like fraud detection and a client side.
- 37:57Observability is actually interesting area of area too.
- 38:02That means like, like capturing errors that occur on the client
- 38:06as opposed to on the server. Things that you know, for
- 38:09example, there's like exception that occurs in your in your web
- 38:12app and it's happens in the user's browser.
- 38:16How do you send that back to a server somewhere so that someone
- 38:19can look at it, someone knows that something went wrong?
- 38:22Yeah, there are a lot of tools for doing this today.
- 38:25Like I think Log Rocket was one of the first ones.
- 38:28Post hoc has a session recording feature and it's it's pretty
- 38:31cool with all the browser Dom events.
- 38:34You can reconstruct exactly what happened on the on their
- 38:38experience. So it's they're not actually
- 38:39recording their your screen, but they might as well be because
- 38:42you look at the recordings. It's the exact same thing that
- 38:44happened. I think observability with
- 38:48agents could be really interesting.
- 38:49One is I think that just agents, so there's there's sort of two
- 38:52separate things we can talk about here. 1 is like what does
- 38:55it mean? How do we observe agents as more
- 38:57of our production systems become agents?
- 39:00Like how do we keep track of what's happening and make sure
- 39:02that they're performing reliably and and reconstruct things after
- 39:07the fact and and then the other one is like, what is
- 39:11observability for just regular software look like when a world
- 39:15of AI agents to tackle the latter 1.
- 39:18I think agents have a lot of potential to automate the sort
- 39:22of production infrastructure or site reliability and process.
- 39:25I mean, so much of what I do in my day-to-day is someone says
- 39:29there's an issue, you know, customer reports an issue or
- 39:32customer success person reports an issue.
- 39:34I get like an organization ID, maybe a URL, and then I can
- 39:38roughly, I guess it happened within the last hour or
- 39:41something like that. Maybe I get a loom or a session
- 39:45requirement. That's crazy.
- 39:48And then I take the whatever pieces of it, whatever clues
- 39:51I've got and take them to Datadog or to another
- 39:54observability tool and or, or maybe our, you know, I can query
- 39:58our, our production access to our database.
- 40:00So if I can look up a record, if it seems like a record might be
- 40:02in a bad data state and I have an identifier, I can query for
- 40:05that in our post res database. And in Datadog I can plug in
- 40:10like a trace ID or the organization ID and get the logs
- 40:13related to that request or org and.
- 40:17And I start piercing together. You're probably asking people on
- 40:20Slack. It's funny that you're
- 40:22mentioning this because we had Willem in here yesterday and
- 40:24he's working on AISDR. Yeah, no, sorry.
- 40:28That's what you're working on. He's working on AISRE and.
- 40:33I built. I built one over the.
- 40:35Really. Yeah, no way.
- 40:36I won a hackathon building an AI.
- 40:38Yeah. Yeah, that's awesome.
- 40:40It's so funny. He's so he's doing that.
- 40:42He built the knowledge graph on all the stuff that's happening
- 40:46in Slack, all the stuff that's happening in the logs, all the
- 40:49stuff that's happening in your environment, and how do you
- 40:52connect all of that and know what's valuable?
- 40:55Tell the agent. Sometimes he was saying that the
- 40:57agent will just go and do its thing and come back with
- 40:59nothing, but it will tell you, hey, I searched these places and
- 41:04so then you don't have to go and search.
- 41:06Them. Yeah, that's super valuable.
- 41:07Exactly. You have to really trust the
- 41:09agents doing its job well, especially if it comes back with
- 41:12nothing. Yeah.
- 41:13But you're like, Are you sure about that?
- 41:15I don't believe you. Yeah, I'm gonna go check.
- 41:17In agents like our agents just, they want to please, you know,
- 41:20language models want to please, so they have.
- 41:22It's probably rare that they come back with nothing.
- 41:23Products like that have a lot of potential.
- 41:26It's a it's a clear set of tools that you would integrate with
- 41:30clear set of data sources. And you're just correlating this
- 41:34commit with this error blog line with, you know, this bad record
- 41:38in the database over and over again and then summarizing what
- 41:41happens, creating a linear ticket out of that report.
- 41:45You're responding to either the customer or the internal user.
- 41:47And agents can can automate a lot of that process.
- 41:50You know, so we see them automating like the code, the
- 41:52the process of writing the code and shipping it.
- 41:54Yeah, we don't really see them automating the the production,
- 41:56what's happening in production? Yeah, root cause analysis of
- 41:59what's going on, why did that fail and and even preemptively
- 42:04saying you sure you want to put that kind of scale on that kind
- 42:08of load on? Yeah, yeah.
- 42:09That's that's another piece actually, AI code review, which
- 42:12just happened somewhere in between those two things and
- 42:14there are some cool tools there. I, I know someone Meryl Lutsky
- 42:18from, from graphite is a one of the leading AI code review tools
- 42:22and we use graphite and love it. It pretty consistently catches
- 42:25things. Now the balance you need to
- 42:27strike there from a probably respective is how do you make
- 42:30sure that you are catching things and providing useful
- 42:32suggestions without being noisy, because nothing devastate more
- 42:36than the noise. That alert fatigue.
- 42:38And I know a friend that plugged in an LLM to their GitHub
- 42:42instance and then they turned it off like 6 hours later and they
- 42:45were like, this is not going to work.
- 42:47Yeah, yeah. And so really recognizing what's
- 42:50valuable and what's not, that's a huge thing.
- 42:53Now when it comes to the observability of the agents,
- 42:56yeah. Yeah, I think so.
- 43:00I think that agents are kind of complex and scary and new.
- 43:04It's important to remember that agents are just like software.
- 43:07They're just regular software programs.
- 43:09And so observability in a lot of ways is the same.
- 43:13You know, you should you should be instrumenting them with
- 43:16metrics, logs and traces. You can do this using open
- 43:20source libraries. Well link chain and link graph
- 43:24have a lot of the stuff out-of-the-box.
- 43:26If you use that you get that in like Smith.
- 43:27But open telemetry is the standard that has been used for
- 43:31most software monitoring tools thus far.
- 43:36And you can use a lot of those tools to instrument your your
- 43:38agent. Yeah, depending on the agent
- 43:41framework that you use, they might already have hooks for
- 43:44like emitting open telemetry compliance traces at each step
- 43:50or or similar things for for metrics and logging.
- 43:54Otherwise you might have to do a little bit of your own build a
- 43:56little bit of your own middleware or maybe wrap the
- 43:58agent framework so that it it instruments it.
- 44:01But all of those tools work just as well.
- 44:03Now if you use a cloud solution like land graph, you are
- 44:08restricted in terms of what other things processes you can
- 44:12run alongside your agent. And that is is something that
- 44:17you should consider when you're thinking about observability for
- 44:19the agent. Because for example, a very
- 44:21normal way to collect metrics, logs and traces with traditional
- 44:26software would be to have a sidecar container that runs like
- 44:29a an agent process like a stats D agent or Datadock has dog
- 44:34stats DI think, which is their flavour.
- 44:38You can't do that in a cloud environment that you don't have
- 44:41a lot of flexibility or control over.
- 44:42Interesting. So you might only be able to do
- 44:44that in something like AWS or GCP or Azure.
- 44:48So something to consider when you consider when you're
- 44:51thinking about where to host your agent is what options does
- 44:54this give me in terms of observability and getting them
- 44:56those just metrics out of them it?
- 44:57Restricts your architecture decisions.
- 45:00Like you can't just go and have a blank canvas.
- 45:03Yeah, you go and trawl in the lines.
- 45:05Yeah, and none of the agent clouds are as sophisticated as
- 45:07them as the big clouds, so. Are you linking up these
- 45:11observability metrics with the evals or are you fully
- 45:14separating them or are they kind of mixed and matched?
- 45:17How do you look at those? Yeah, evals.
- 45:23I think a lot of companies, most companies are not doing evals
- 45:26today. Everyone's interested in evals.
- 45:28But it's all vibes. But it's all vibes.
- 45:31There's a lot, I mean a lot of vendors are talking about how
- 45:34they how they have support for evals.
- 45:36Usually those features kind of take the same shape.
- 45:38It's like you can curate a data set from some of your production
- 45:42traces and then you can run your agent in times for in items in
- 45:50the data set and it will tell you, well each time you run your
- 45:55agent, it will run a set of heuristics against the output.
- 45:59And for each of those heuristics you get like a score or a label.
- 46:01So a common one is to detect hallucinations.
- 46:06We actually use this in our message writer.
- 46:08So we have an eval that actually automatically runs on some
- 46:13percentage of production. Nice.
- 46:16Traces for the agent that generates the messages.
- 46:18And this is also done with Lang Chung.
- 46:23This one is done. We we've implemented and
- 46:26Lanchain offers this capability. This one we just, we were trying
- 46:29out another tool called Arise, which is another LLM or AI
- 46:33observability tool. And they also have support for
- 46:35evals. And so this one we implemented
- 46:37using Arise. I don't have strong opinions for
- 46:39the oh, this, this is using their core platform.
- 46:43Although Phoenix is really interesting and I think I've,
- 46:47I've been interested in Phoenix for a while as a way to deploy
- 46:50sort of like production grade observability tool locally for
- 46:56all of my developers on my team. So you know, we're running these
- 46:59agents. We, we can run our entire
- 47:01application locally using a single command, which is suite
- 47:05starts up a bunch of services, starts up the client, starts up
- 47:07the agent server, which is built on my graph.
- 47:11What would be really nice is to also start up this dev server
- 47:15that allows you to view all of the agent traces that are
- 47:19happening on the on your local agent and maybe even iterate on
- 47:22some of the prompts through that server.
- 47:24I think Phoenix might allow us to do something.
- 47:26Like nice. OK, cool.
- 47:27Much better local development experience for building the
- 47:29agent. All right, so sorry I got you
- 47:32distracted with. Evals in production is the main
- 47:35one we have running or one of the ones we have running today
- 47:38is detecting hallucinations and messages.
- 47:40Obviously super awkward if you say like hey Demetrius, Congrats
- 47:44on passing 10,000. Subscribers and you're like, it
- 47:48was a million, it was a million. My ego is hurt.
- 47:51Exactly. I actually that might generate a
- 47:53response, yeah. Yeah, not the kind of response
- 47:56you want probably, but actually I was telling you this earlier.
- 48:00Like I imagine a lot of the stuff that AI generates or Alice
- 48:04generates specifically is a lot better than the human stuff
- 48:08where I was saying some random shit in my that's so funny.
- 48:14Yeah, we and we get scrutinized a lot on our messages too
- 48:17because you know, users will log in and they'll be like, you
- 48:20know, I saw this slightly weird message that you sent to 1
- 48:23prospect and maybe the prospects LinkedIn says they work on like
- 48:27Intuit and our data set, you know, our e-mail says like
- 48:31Intuit Accelerate or something like that because.
- 48:34So it's a little bit off. Yeah, it's not.
- 48:36A little. Off or it's like when you're
- 48:38spelling is it desert or desert? And yeah, it's the same when you
- 48:43look at it and you don't know how to spell like me.
- 48:45And so you're like, yeah, I said dessert, right?
- 48:49There's one other thing that's really funny about this is we
- 48:51often we try to show sources in our in the research alongside
- 48:57the message that we generate when we do it in the product.
- 49:00And often times we'll have customers say like why?
- 49:04Why'd you say like we, you know, maybe the message says we helped
- 49:07a similar client in the healthcare services industry
- 49:11save, you know, $50,000 in the last year using this solution.
- 49:16And our, you know, our customer will say, where'd you get that?
- 49:19That like doesn't sound true. And then we pull up the
- 49:21research. And sure enough, there's a case.
- 49:23Study on their website that says that so many.
- 49:26Yeah, it's, there's a lot of that that happens in the
- 49:29day-to-day and it can be really delightful when it does happen.
- 49:33But we have also, you know, we're held to a high standard
- 49:36for that messaging. I think certain customers are
- 49:40more savvy when it comes to sales and understand that a lot
- 49:42of times sales reps will bend the truth or or say things to
- 49:46provoke a response. And Alice can do that.
- 49:48If you want her to you, you can nudge her.
- 49:50Be a bit more sassy, yes? We effectively have Sassy mode
- 49:54if you want to enable that. We call it brand voice.
- 49:57Oh, interesting. But, but also, yeah, we want to,
- 50:02we generally like want to be factual.
- 50:05Everything that Alice should say should be based in fact.
- 50:06And it's it's a product design problem to make sure that the
- 50:11the sources are alongside the messaging so that you can
- 50:14correlate. You know, if a user wants to
- 50:16double check something, they can do that easily.
- 50:19So then back to the evals, you're saying, all right, we are
- 50:22doing evals with Lang Smith. We're also doing evals just kind
- 50:28of on vibes and figuring it out as it's coming out.
- 50:32And you have this cycle of whatever 20% did you say?
- 50:37So and so we do this in a rise right now and jury's out on
- 50:42which, you know, in our next episode we can talk about which
- 50:45of these eval platforms I like better.
- 50:46Interesting, so you're doing it both with Lang Smith and Or does
- 50:50Lang Smith only do observability?
- 50:51Lang Smith has an eval offering and we've used an earlier
- 50:55version of it. We don't use it right now and
- 51:00our team has been experimenting with Arise, which is another LM
- 51:02observability platform and they have also an eval offering which
- 51:05is been playing around. That's fascinating.
- 51:07So you have evals in Langsmith, but you're like, we're just
- 51:12going to stick to the observability piece of it.
- 51:15We we tried an earlier version of it and weren't satisfied.
- 51:18I felt like the experience of setting it up was a little too
- 51:20hard. And you know, we, our team is
- 51:23very curious about AI tooling and we're always kind of
- 51:28shopping around for whatever the latest and greatest is.
- 51:31So we, we test drive a lot of products and for evals right now
- 51:34we're test driving arise very cool.
- 51:37This eval we sample like 1% of our total.
- 51:42Yeah, we have too much volume for, because we, we're running
- 51:46an LLM in our eval, so LLM as a judge.
- 51:52And so like it could be expensive if we ran it for 100%
- 51:54of our traces. We, we only do it on like 1%.
- 51:57But what's cool is it gives us this, this number between zero
- 52:00and one, which represents, you know, that the average across
- 52:04all of the traces in a period of, of whether they have
- 52:08hallucinated or not. So as we, if that number is
- 52:12close to 1, it means like we're not hallucinating.
- 52:14If the number is close to 0, it means we are generally
- 52:17hallucinating. Exactly.
- 52:20You're burning that, right? This SDR is writing emails from
- 52:22their satellite connection, you know, from deep Playa.
- 52:26Yeah. So that's what we.
- 52:31That's a number we watched to sort of as a bellwether of
- 52:35whether or not like a recent change to the prompt has, has
- 52:38made it less reliable or something like that.
- 52:41And what the research or what the eval is doing is it's
- 52:43comparing the inputs, which include this research report
- 52:46which we've assembled and the outputs, which is which of the
- 52:50e-mail that we've written basically saying, hey, is there
- 52:52anything in the e-mail that doesn't match the research?
- 52:55OK, I have a very clear picture of how you're running your
- 52:58agents. It's you're hosting it with Lane
- 53:01Graph. You've got Lang Smith as the
- 53:04observability. You're exposing an API in a way
- 53:07for that agent that you can then build services off of.
- 53:11You are relaying whatever that output is.
- 53:15You're taking 1% of that and feeding it into a rise right now
- 53:18and saying we've got these evals and you're matching it up with
- 53:23this is what the research says and this is what you said.
- 53:27How accurate is it? Right.
- 53:29That's effectively how the eval works.
- 53:31Yeah, we, we send, send all of our traces to arise in the same
- 53:35way that we send them to Lang Smith.
- 53:37These are the agent traces. And you know, we, we run a bunch
- 53:40of agents for Alice. One of these agents is the
- 53:43message writer. And the input for the message
- 53:45writer is the research report, some demographic info and the
- 53:49output is the message. And so for the traces that are
- 53:53message writer traces, we for 1% of those we run this
- 53:58hallucination eval. Wait, but then what does?
- 54:01Because you've got Datadog, right?
- 54:02And Datadog is your observability, like the system
- 54:06observability. What is Lang Smith doing then?
- 54:09Lang Smith. So I mean some of these things
- 54:11are duplicated. I mean we have Lang Smith is
- 54:13allows you to do logs, metrics and traces too.
- 54:16For the agent, for the for. Only what's deployed in Lang
- 54:19graph cloud. I see.
- 54:21Which is our agent now. It's nice to get all of that
- 54:24data into or into Data Dog if possible 'cause that's where it
- 54:27is for all of our services. Yeah, I remember you saying
- 54:30that. No, that makes a lot of sense
- 54:32because it's like data dog can't cover what's happening in Ling
- 54:35Ling cloud. Exactly.
- 54:38I mean, there's, there's two walled gardens right now.
- 54:40Yeah. Interesting.
- 54:42I think the Lang Chain team, I don't, I don't want to publicly
- 54:45promise anything on behalf of them, but I'm pretty sure that
- 54:47they're working on some kind of integration that.
- 54:48Allows they understand. Pipe more of our our data to to
- 54:51Lang to data. But they're not going to let you
- 54:53put a data dog instance in Lang Cloud.
- 54:56I don't think that their ambition is to become a general
- 54:58observability platform like to have all our back end services
- 55:02send their logs to Lang Draft Cloud that would that's probably
- 55:06outside of their scope, yeah. Yeah, that makes sense.
- 55:10Yeah. So then why would you want
- 55:12Datadog in there? It would be better if you just
- 55:15took all of that from Lane Graph and just said, hey, we're
- 55:20throwing all the Lane Graph traces and whatever, whatever
- 55:24your cloud is doing, we're throwing it into Datadog.
- 55:27Yeah. And that I mean that would leave
- 55:28them. Their value add would then be
- 55:30like running the actual agent hosting that API in queue that
- 55:34sit in front of the agents. Which as we talked about
- 55:37earlier, less, yeah, it may or may not be needed.
- 55:41Yeah. So everyone's being squeezed
- 55:43right now. You've got Data Dog, which is
- 55:45trying to become Landgraf Cloud without the hosting, I guess.
- 55:48And then we've got Landgraf Cloud that's trying to become
- 55:50Data Dog. And then we've got AWS is
- 55:51probably doing both and so they're all kind of trying to
- 55:55carve out more of, of the of the, the tooling and
- 55:59infrastructure that needs to surround the agent and own it.
- 56:03But there's definitely a lot of overlap between these different.
- 56:05Tools, yeah. And then you have Arise that's
- 56:09doing the Arise. Is sort of a Lang Smith
- 56:11competitor. Exactly, and they're really
- 56:15focused on LLM observability specifically.
- 56:17So just more of a better specifically with with Lang
- 56:20Smith and Datadog. Although Datadog has their own
- 56:23LLM observability suite. Yeah, but.
- 56:25Arise is an API that you're hitting or you're sending data
- 56:28to. It's like a cloud, a hosted
- 56:30version also. Arise is open telemetry
- 56:33compliance, so. Oh, so yeah, OK.
- 56:37In the you know we can just instrument our agents using some
- 56:40open source libraries and all the data flows into arise.
- 56:44Interesting. Yeah, dude.
- 56:45Well, this has been awesome, man.
- 56:46This is. I appreciate you being so
- 56:48forthcoming. We'll see if your PR team allows
- 56:51half of the shit that we just talked about to get out into the
- 56:54world. I.
- 56:55Think the technical stuff is very good?
- 56:59No, this is fun. We could have gone on for
- 57:00longer. Yeah, I think we could.
- 57:02Well, we'll continue the conversation tonight.
- 57:04I'm looking. Forward.
- 57:05To it.