
Crucible Moments will be back shortly with season 2. You’ll hear from the founders of YouTube, DoorDash, Reddit, and more.
Loading summary
Harrison Chase
Hi, everyone. We're excited to share that Crucible Moments will be returning shortly. For season two, you'll hear from the founders of legendary companies like YouTube, DoorDash, MongoDB, Reddit, and more about the decisions and inflection points that shaped their journeys. In the meantime, check out the first episode of our new show, Training Data, where Sequoia partners learn from builders, researchers and founders who are defining the technology wave of the future AI. The following conversation with Harrison Chase of LangChain is all about the future of AI agents, why they're suddenly seeing a step change in performance, and why they're key to the promise of AI. Follow Training Data wherever you listen to podcasts and keep an eye out for season two of Crucible Moments coming soon. It's so early on that, like, it's so early on there's so much to be built. Yeah, like, you know, GPT5 is going to come out and it'll probably make some of the things you did not relevant, but you're going to learn so much along the way. And this is, I strongly, strongly believe, like a transformative technology. And so the more that you learn about it, the better.
Host
Hi, and welcome to Training Data. We have with us today Harrison Chase, founder and CEO of LangChain. Harrison is a legend in the agent ecosystem as the product visionary who first connected LLMs with tools in action. And LangChain is the most popular agent building framework in the AI space. Today we're excited to ask Harrison about the current state of agents, the future potential and the path ahead. Harrison, thank you so much for joining us and welcome to the show.
Harrison Chase
Of course, thank you for having me.
Host
So, maybe just to set the stage, agents are the topic that everybody wants to learn more about, and you've been at the epicenter of agent building pretty much since the LLM wave first got going. And so maybe first, just to set the table, what exactly are agents?
Harrison Chase
I think defining agents is actually a little bit tricky and people probably have different definitions of them, which I think is pretty fair because it's still pretty early on in the life cycle of everything LLMs and agent related. The way that I think about agents is that it's when an LLM is kind of like deciding the control flow of an application. So what I mean by that is if you have a more traditional kind of like rag chain or retrieval, augmented generation chain, the steps are generally known ahead of time. First you're going to maybe generate a search query, then you're going to retrieve some documents, then you're going to generate an answer, and you're going to return that to a user. And it's a very fixed sequence of events. And I think when I think about things that start to get agentic, it's when you put an LLM at the center of it and let it decide what exactly it's going to do. So maybe sometimes it will look up a search query, other times it might not. It might just respond directly to the user. Maybe it will look up a search query, get the results, look up another search query, look up two more search queries, and then respond. And so you kind of have the LLM deciding the control flow. I think there are some other, maybe more buzzwordy things that fit into this. So, like, tool usage is often associated with agents, and I think that makes sense because when you have an LLM deciding what to do, the main way that it decides what to do is through tool usage. So it's. So I think those kind of go hand in hand. There's some aspect of memory that's commonly associated with agents. And I think that also makes sense because when you have an LLM deciding what to do, it needs to remember what it's done before. And so, like, tool usage and memory are kind of like, loosely associated. But to me, when I think of an agent, it's really having an LLM decide the control flow of your application.
Co-Host
And Harrison, a lot of what I just heard from you is around decision making. And I've always thought about agents as sort of action taking. Do those two things go hand in hand? Is agentic behavior more about one versus the other? How do you think about that?
Harrison Chase
I think they go hand in hand. I think like a lot of what we see agents doing is deciding what actions to take, for all intents and purposes. And I think the biggest difficulty with action taking is deciding what the right actions to take are. So I do think that solving one kind of leads naturally to the other. And after you decide the action as well, there's generally the system around the LLM that then goes and executes that action and kind of like feeds it back into the agent. So I think the. Yeah, so I do think they go kind of hand in hand.
Host
So, Harrison, it seems like the main distinction then between an agent and something like a chain is that the LLM itself is deciding what step to take next, what action to take next, as opposed to these things being hard coded. Is that like a fair way to distinguish an agent is.
Harrison Chase
Yeah, I think that's right. And there's different gradients as well, so as like an extreme example, you could have basically a router that decides between which path to go down. And so there's maybe just like a classification step in your chain. And so the LLM is still deciding, like, what to do, but it's a very simplistic way of deciding what to do. And, you know, at the other extreme, you've got these autonomous agent type things, and then there's this whole spectrum in between. So I'd say that's largely correct. Although I'll just note that there's a bunch of nuance and gray area, as there is with most things in the LLM space these days.
Host
Got it. So, like a spectrum from control to, like, fully autonomous decision making and logic, all of those are kind of on the spectrum of agents. Interesting. What role do you see LangChain playing in the agent ecosystem?
Harrison Chase
I think right now we're really focused on making it easy for people to create something in the middle of that spectrum. And for a bunch of reasons, we've seen that that's kind of the best spot to be building agents in at the moment. So we've seen some of these more fully autonomous things get a lot of interest and prototypes out the door. And there's a lot of benefits to the fully autonomous things. They're actually quite simple to build, but we see them going off the rails a lot, and we see people wanting more constrained things, but a little bit more flexible and powerful than chains. And so a lot of what we're focused on recently is being this orchestration layer that enables the creation of these agents, particularly these things in the middle between chains and autonomous agents. And I can dive into a lot more about what exactly we're doing there. But at a high level, that's. That being that piece of orchestration framework is kind of where we imagine LangChain City.
Host
Got it. So there's chains, there's autonomous agents, there's a spectrum in between, and your sweet spot is somewhere in the middle, enabling people to build agents.
Harrison Chase
Yeah, and obviously that's changed over time, so it's fun to, like, reflect on the evolution of Lang Chain. Um, so, you know, I think when LangChain first started, it was actually a combination of chains. And then we had this one class, this agent executor class, which was basically this autonomous agent thing. And we started adding in, like, a few more controls to that class. And. But eventually we realized that people wanted way more flexibility and control than we were giving them with that one class. So, like, recently we've been really heavily invested in Lang Graph, which is an extension of LangChain that's really aimed at like customizable agents that sit somewhere in the middle. And so kind of like our focus, you know, has, has evolved over time as, as the space has as well.
Host
Fascinating. Maybe, maybe one more final kind of setting the stage question. One of our, our core beliefs is that agents are the next big wave in AI and that we're moving as an industry from, from co pilots to agents. I'm curious if you agree with that take and why or why not?
Harrison Chase
Yeah, I generally agree with that take. I think the reason why that's so exciting to me is that a co pilot still relies on having this human in the loop. And so there's a little bit of almost like an upper bound on the amount of work that you can have done by an external kind of like by another system. And so it's a little bit limiting in that sense. I do think there's some really interesting thinking to be done around what is the right UX and human agent interaction patterns, but I do think they'll be more along the lines of an agent doing something and maybe checking in with you as opposed to a co pilot that's constantly kind of like in the loop. I just think it's. I just think it's more powerful and gives you more leverage. If the more that they're doing, which is very paradoxical as well, because it comes, the more you let it do things by itself, there's more risk that it's messing up or going off the rails. And so I think striking this right balance is going to be really, really interesting.
Host
I remember back in, I think it was March ish of 2023, there were a few of these autonomous agents that really captured everyone's imaginations, like baby AGI, auto GPT, a few of these. And I remember Twitter was very, very excited about it. And it seems like that first iteration of an agent architecture hasn't quite met people's expectations, I think. Why do you think that is? And where do you think we are in the agent hype cycle now?
Harrison Chase
Yeah, I think maybe thinking about the agent hype cycle first. I think AutoGPT was definitely the start and then a. I mean it's. It's one of the most popular GitHub projects ever. So one of, one of the peaks of the hype cycle, I think. And I'd say that started in the spring 2023 to summer of 2023. Ish. Then I personally feel like there was a bit of kind of like a lull slash down trend from the late summer to basically the start of the new year in 2024. And I think starting in 2024 we've started to see a few more realistic things come online. I'd point out some of the work that we've done at LangChain with Elastic, for example, they have kind of like an elastic assistant, an elastic agent in production. And so we're seeing that we saw kind of like the Klarna customer support bot kind of like come online and get a lot of hype. We've seen Devon, we've seen Sierra, these other companies start to emerge in the agent space. And so I think with that hype cycle in mind, talking about why the auto GPT style architecture didn't really work. It was very general and very unconstrained and I think that made it really exciting and captivated people's kind of like imaginations. But I think practically for things that people wanted to automate to provide immediate business value, there's actually a lot, it's a much more specific thing that they want these agents to do. And there's really like a lot more rules that they want the agents to follow or specific ways they want them to do things. And so I think in practice what we're seeing with these agents is they're much more kind of like custom cognitive architectures is kind of like what we call them, where there's a certain way of doing things that you generally want an agent to do and there's some flexibility in there for sure, otherwise you would just code it. But it's a very directed way of thinking about things. And that's most of the agents and assistants that we see today. And that's just more engineering work and that's just more kind of like trying things out and seeing kind of like what works and what doesn't work. And it's harder to do. So it just takes longer to build. And I think that's kind of why, that's why that didn't exist a year ago or something like that.
Host
Since you mentioned cognitive architectures, I love the way that you think about them. Maybe can you just explain like what is, what is a cognitive architecture? And like, is there a good mental framework for how we should be thinking about them?
Harrison Chase
Yeah, so the way that I think about a cognitive architecture is basically what's the system architecture of your LLM application? And so what I mean by that is if you're building an LLM application, there's some steps in there that use LLMs. What are you using these LLMs to do? Are you using them to just generate the final answer? Are you using them to route between two different things? Are you, do you have like a pretty complex one with a lot of different branches and maybe some cycles repeating? Or do you have kind of like, you know, a pretty, a loop? Would you basically run this LLM in a loop? These are all kind of like different variants of cognitive architectures. And cognitive architecture is just fancy way of saying, like from the user input to the user output. What's the flow of data, of information, of LLM calls that happens along the way? And what we've seen more and more, especially as people are trying to get agents actually into production, is that the flow is specific to their application and their domain. So there's maybe some specific checks they want to do right off the bat. There's maybe three specific steps that it could take after that. And then each one maybe has an option to loop back or has two separate sub steps. And so we see these more like, if you think about it as a graph that you're drawing out, we see more and more basically custom and bespoke graphs as people kind of try to constrain and guide the agent along their application. The reason I call it a cognitive architecture is just, you know, I think a lot of the power of LLMs is around reasoning and thinking about what to do. Um, and so, you know, I would maybe have like a cognitive mental model for how to do a task and I'm basically just encoding that, that mental model into some kind of like software system, some, some architecture that way.
Co-Host
And do you, do you think that's the direction the world is going? Cause I kind of heard two things from you there. One was it's very bespoke, and second was it's fairly brute force, like it's fairly hard coded in a lot of ways. Do you think that's where we're headed or do you think that's a stopgap? And at some point more elegant architectures or a series of default sort of reference architectures will emerge.
Harrison Chase
That is a really, really good question and one I spend a lot of time thinking about, I think. So, like, at an extreme you could make an argument that if the models get really, really good and reliable at planning, then the best thing you could possibly have is just this for loop that runs in a loop, calls the LLM, decides what to do, takes the action and loops again. And like all of these constraints on how I want the model to behave, I just Put that in my prompt and the model follows that kind of like explicitly. I do think the models will get better at planning and reasoning for sure. I don't quite think they'll get to the level where that will be the best way to do things for a variety of reasons. One, I think efficiency. If you know that you always want to do step A after step B, you can just put that in order. And two, reliability as well. Like these are still non deterministic things we're talking about, especially in enterprise settings. You probably want a little bit more comfort that it's always supposed to do step A after step B. It's actually always going to do step A over step B or after step B. I think it will get easier to create these things. Like I think they'll, they'll maybe start to become a little bit less and, and less complex. But actually this is maybe a hot take or interesting take that it had. You could say like so the architecture of just running it in a loop you could think of as like a really simple but general cognitive architecture. And then what we see in production is like custom and complicated kind of like cognitive architectures. I think there's a separate access which is like complicated but generic custom or complicated but generic cognitive architectures. And so this would be something like a really complicated like planning step and reflection loop or like tree of Thoughts or something like that. And I actually think that quadrant will probably go away over time because I think a lot of that generic planning and generic reflection will get trained into the models themselves. But there will still be a bunch of not generic training or not generic planning, not generic reflection, not generic control loops that are never going to be in the models basically. Yeah. No matter what. And so I think like those two ends of the spectrum I'm pretty bullish on.
Host
I guess you can almost think about it as like the LLM does the kind of like general, the very general agentic reasoning, but then you need domain specific reasoning. And that's the sort of stuff that.
Harrison Chase
You can't really build into one general model 100%. I think a way of thinking about the custom cognitive architectures is you're basically taking the planning responsibility away from the LLM and putting it onto the human. And some of that planning, you'll, you'll move more and more towards the model and more and more towards the prompt. But I think they'll always be like, I think a lot of, a lot of tasks are actually quite complicated in some of their planning. And so I think it will be a While before we get things that are just able to do that super, super reliably off the shelf.
Host
It seems like we've simultaneously made a ton of progress on agents in the last six months or so. Like I was reading a paper, the Princeton swe paper where their coding agents can now solve 12.5% of GitHub issues versus I think 3.8% when it was just rag. So it feels like we've made a ton of progress in the last six months, but 12.5% is not good enough to replace even an intern. And so it feels like we still have a ton of room to go. I'm curious where you think we are both for general agents and also for your customers that are building agents. Like, are they kind of getting to, I assume not 5 nines reliability, but are they getting to kind of like the thresholds they need to kind of deploy these agents out to actual kind of customer facing deployments?
Harrison Chase
Yeah. So the SUI agent is I would say a relatively general ISH agent in that it is expected to work across a bunch of different GitHub repositories. I think if you look at something at like V0 by Vercel, that's probably much more reliable than 12.5%. Right. And so I think that speaks to like yeah, there, there are, there are definitely custom agents that. Not five nines of reliability but that like are being used in production. So like elastic. I think we've talked publicly about how they've done. I think multiple agents at this point and I think this week is rsa and I think they're announcing something new at rsa that, that, that's an agent. And yeah, those are. I don't have the exact numbers on reliability, but they're reliable enough to be shipped into production. General agents are still tough. Yeah, this is where, this is where kind of like longer, longer context windows, better planning, better reasoning will help those general agents.
Host
You shared with me this great Jeff Bezos quote of just like focus on what make makes your beer better. And I think it's referring to the fact that at the turn of the 20th century, breweries were trying to make their own electricity, generate their own electricity. I think similar question a lot of companies are thinking through today. Do you think that having control over your cognitive architecture really makes your beer taste better, so to speak metaphorically. Or do you cede control of that, the model and just build UI and product?
Harrison Chase
I think it maybe depends on the type of cognitive architecture that you're building. Going back to some of the discussions earlier, if you're building like a generic cognitive architecture, I don't think that makes your beer taste better. I think the model providers will work on this general planning. I think like, well, work on these general cognitive architectures that you can try off the bat. On the other hand, if your cognitive architectures are basically you codifying a lot of the way that your support team thinks about something or internal business processes, or the best way that you know to kind of like develop code or develop this particular type of code or this particular type of application, yeah, I think that absolutely makes your beer taste better. Especially if we're going towards a place where these applications are doing work, then like the logic, the bespoke kind of like business logic or mental models for. I'm anthropomorphizing these LLMs a lot right now, but like the models for these things to do the best work possible, 100% like, I think that's the key thing that you're selling in some capacity. I think UX and UI and distribution and everything absolutely still plays a part. But yeah, I draw this distinction between general versus custom.
Co-Host
Harrison, before we get into some of the details on how people are building these things, can we pop up a level real quick? So our founder, Don Valentine, was famous for asking the question, so what? And so my question to you is, so what? Let's imagine that autonomous agents are working flawlessly. What does that mean for the world? Like, how is life different if and when that occurs?
Harrison Chase
I think at a high level it means that as humans we're focusing on just a different set of things. So I think there's a lot of rote repeated kind of like work that goes on in a lot of industries at the moment. And so I think the idea of agents is a lot of that will be kind of like automated away, leaving us to think maybe higher level about what these agents should be doing and maybe leveraging their outputs to do more creative or building upon those outputs to do more kind of like higher leverage things basically. And so I think, you know, you could imagine bootstrapping a, an entire company where you're outsourcing a lot of the functions that you would normally have to hire for. And so you could play the role of a CEO with an agent for marketing, an agent for sales, something like that, and allow you to basically outsource a lot of this work to agents, leaving you to do a lot of the interesting strategic thinking, product thinking. And maybe this depends a little bit on what your interests are, but I think at a high Level, it will free us up to do what we want to do and what we're good at and automate a lot of the things that we might not necessarily want to do.
Co-Host
And are you seeing any interesting examples of this today? Sort of live and in production?
Harrison Chase
I mean, I think the biggest. There's two kind of like categories or areas of agents that are starting to get more traction. One's customer support, one's coding. So I think customer support is a pretty good example of this. Like, I think, you know, often times people need customer support. We need customer support at LangChain. And so if we could hire agents to do that, that would be really powerful. Coding is interesting because I think there's some aspects of coding that. I mean, yeah, this is maybe a more philosophical debate, but I think there's some aspects of coding that are really creative and do require, like, really, I mean, lots of product thinking, lots of positioning and things like that. There's also aspects of coding that limit some of the. Or not limit, but get in the way of a lot of the creativity that people might have. So if my mom has an idea for a website, she, she, she doesn't know how to code that up. Right. But if there was an agent that could do that, she could focus on the idea for the website and basically the scoping of the website, but automate that. And so I'd say customer support, absolutely. That's having an impact today. Coding, there is a lot of interest there. I don't think we're at. I don't think it's as mature as customer support. But in terms of areas where there is a lot of people doing interesting things, that would be a second one to call out.
Co-Host
Your comment on coding is interesting because I think this is one of the things that has us very optimistic about AI. It's this idea of sort of closing the gap from idea to execution or closing the gap from dream to reality, where you can come up with a very creative, compelling idea, but you may not have the tools at your disposal to be able to put it into reality. And AI seems like it's well suited for that. I think Dylan and Figma talks about this a lot too.
Harrison Chase
Yeah, I think it, I think it goes back to this idea of like, automating away the things that, yeah, get in the way of, of make. I, I like the phrasing of idea to reality. It automates away kind of like the, the. The things that you don't necessarily know how to do or want to think about, but are needed to create. Whatever you want to create. I think it also one of the things that I spent a lot of time thinking about is like what does it mean to be a builder in the age of kind of like generative AI and in the age of agents? So what it means to be a builder of software today means you either have to be an engineer or hire engineers or something like that. Right. But I think what it means to be a builder in the age of agents and generative AI just allows people to build a way larger set of things than they could build today because they have at their fingertips all this other knowledge and all this other kind of like all these other builders they can hire and use for very, very cheap. I mean, I think like, you know, some of the language around like commoditization of kind of like intelligence or something like that is these LLMs are providing intelligence for free. I think does, does speak to enabling a lot of these new builders to emerge.
Host
You mentioned reflection and chain of thought and other techniques like maybe can you just say a word on what we've learned so far about what some of these I guess cognitive architectures are capable of doing for agentic performance and maybe just. I'm curious what you think are the most promising cognitive architectures.
Harrison Chase
Yeah, I think there's. Maybe it's worth talking a little bit about why kind of like the autogpt things didn't, didn't work. Because I think a lot of the cognitive architectures are kind of like emerged to counteract some of that. I guess way back when there was basically the problem that LLMs couldn't even reason well enough about a first step to do and like what they should do as the first step. And so I think prompting techniques like chain of thought turned out to be really helpful there. They basically gave the LLM more space to think about and think step by step about like what they should do for a specific kind of like single step. Then that actually started to get trained into the models more and more. And they kind of did that by default as that kind of like as basically everyone wanted the models to do that anyways. And so yeah, you should train that into the models. I think then there was a great paper by Chenyu called React, which basically was the first cognitive architecture for agents or something like that. And the thing that it did there was one, it asked the LLM to predict what to do, that's the action. But then it added in this reasoning component. And so it's kind of similar to chain of thought in that it basically added in this reasoning component, he put it in a loop. He asked us to do this reasoning thing before each step and you kind of run it there. And so that was kind of like. And actually that explicit reasoning step has actually become less and less necessary as the models have that trained into them. Just like they have kind of like the chain of thought trained into them, that explicit reasoning step has become less and less necessary. So if you see people doing kind of like REACT style agents today, they're oftentimes just using function calling without kind of like the explicit like thought process that was actually in the original React paper. But it's still this like loop that has kind of become synonymous with the react paper. So that's a lot of the, that's a lot of the difficulties initially with agents. And I wouldn't entirely describe those as cognitive architectures, I describe those as prompting techniques. But okay, so now we've got this working. Now what are some of the issues? The two main issues are basically planning and then kind of like realizing that you're done. And so by planning I mean like when I think about what to do things subconsciously or consciously, I like put together a plan of the order that I'm going to do the steps in and then I kind of like go and do each steps. And basically models struggle with that. They struggle with long term planning, they struggle with coming up with a good long term plan. And then if you're running it in this loop, at each step you're kind of doing a part of the plan and maybe it finishes or maybe it doesn't finish. And so there's this, you know, if you just run it in this loop, you're implicitly asking the model to first come up with a plan, then kind of like track its progress on the plan and continue along that. So I think some of the planning cognitive architectures that we've seen have been, okay, first let's add an explicit step where we ask the LLM to generate a plan. Then let's go step by step in that plan and we'll make sure that we do each step. And that's just a way of enforcing that the model generates a long term plan and actually does each step before going on. And it doesn't just generate a five step plan. Do the first step and then say, okay, I'm done, I finished, or something like that. And then I think a separate but kind of related thing is this idea of reflection, which is basically has a model actually done its job well, right? So like I could generate a plan where I'm going to go get this answer. I could go get an answer from the Internet. Maybe it's just like completely the wrong answer or I got like bad search results or something like that. I shouldn't just return that answer, right? I should kind of like think about whether I got the right answer or whether I need to do something again and again. Like if you're just running it in a loop, you're kind of asking the model to do this implicitly. So there have been some cognitive architectures that have emerged to overcome that that basically add that in as an explicit step where they do an action or a series of actions and then ask the model to explicitly think about whether it's done it correctly or not. And so planning and reasoning are probably like two of the more popular generic kind of cognitive architectures. There's a lot of custom cognitive architectures, but that's all super tied to business logic and things like that. But planning and reasoning are generic ones. I'd expect these to become more and more trained into the models by default. Although I do think there's a very interesting question of how good will they ever get in the models. But that's probably a separate longer term conversation.
Co-Host
Harrison, one of the things that you talked about at AI Ascent was ux, which we would normally think about as kind of being on the opposite end of the spectrum from architecture. The architecture is behind the scenes, the UX is the thing out in front. But it seems like we're in this interesting world where the UX can actually influence the effectiveness of the architecture by allowing you, like for example, with Devin, to rewind to the point in the planning process where things started to go off track. Can you just say a couple words about UX and the importance of it in agents or LLMs more generally, and maybe some interesting things that you've seen there.
Harrison Chase
Yeah, I'm super fascinated by UX and I think there's a lot of really interesting work to be done here. I think the reason it's so important is because these LLMs still aren't perfect and still aren't kind of like reliable and have a tendency to mess up. And I think that's why chat is such a powerful ux. For some of the initial kind of like interactions and applications, you can easily see what it's doing, it streams its backs, its response, you can easily correct it by responding to it, you can easily ask follow up questions. And so I think chat has clearly emerged as the dominant UX at the moment. I do think there are Downsides to chat, you know, it's generally like one AI message, one human message. The human is very much in the loop. It's very much a co pilot esque type of thing. And I think the more and more that you can remove the human out of the loop, the more it can do for you and it can kind of like work for you. And I just think that's incredibly powerful and enabling. However again going LLMs are not perfect and they mess up. So how do you kind of like balance these two things? I think some of the interesting ideas that we've seen talking about Devin, are this idea of basically having a really transparent list of everything the agent has done. You should be able to know what the agent has done. That seems like step one, step two is probably being able to modify what it's doing or what it has done. So if you see that it, you know, messed up step three, you can maybe rewind there, give it some new instructions or even just like edit its kind of like decision manually and go from there. I think other like interesting UX patterns besides this Rewind and Edit1 is like the idea of kind of like a inbox where the agent can reach out to the human as needed. So you've maybe got like you know, 10 agents running in parallel in the background and every now and again it maybe needs to ask the human for clarification. And so you've got like an email inbox where the agent is sending you like help, help me, I'm at this point, I need help or something like that and you kind of go and help it at that point a similar one is like reviewing its work, right. And so I think this is really powerful for we've seen a lot of like agents for writing different types of things, doing research, like research style agents. There's, there's a great project GPT Researcher which, which has some really interesting kind of like architectures around agents and I think that's a great place for this type of like review right? Like you can have an agent write a first draft and then I can review it and I can leave comments basically and there's a few different ways that it can actually happen. And so you know the, the most, maybe like the least involved way is I just leave like a bunch of comments in one go, send those all to the agent and then it goes and fixes all of them. Another UX that's really, really interesting. Is this like collaborative at the same time? So like Google Docs but a human and an agent working at the Same time like I leave a comment, the agent fixes it while I'm making another comment or something like that. I think, I think that's a separate UX that is pretty complicated to think about setting up and getting working and yeah, I think that's interesting. There's one other kind of UX thing that I think is interesting to think about, which is basically just like, how do these agents learn from these interactions? Right. We're talking about a human kind of correcting the agent a bunch or giving feedback. It would be so frustrating if I had to give the same piece of feedback a hundred different times. Right. That would suck. And so like what are, what's the architecture of the system that enables it so that it can start to learn from that? I think is really interesting. And you know, I think all of these are all, all of these are still to be figured out. Like we're super early on in the game for figuring out a lot of these things, but this is a lot of what we spend a lot of time thinking about. Hmm.
Co-Host
Well, actually that reminds me, you are, I don't know if you know this or not, but you're sort of legendary for the degree to which you are present in the developer community and paying very close attention to what's happening in the developer community and the problems that people are having in the developer community. So there are the problems that Lang Jane sort of directly addresses and you're building a business to solve and then I imagine you encounter a bunch of other problems that are just sort of out of scope. And so I'm curious, within the world of problems developers who are trying to build with LLMs or trying to build an AI are encountering today, what are some of the interesting problems that you guys are not directly solving that maybe you would solve if you had another business?
Harrison Chase
Yeah, I mean, I think two of the obvious areas are like at the model layer and at kind of like the database layer. So like we're not building a vector database. I think it's really interesting to think about what the right storage is, but we're not doing that. We're not building a foundation model and we're also not doing fine tuning of models. Like we want to help with the data curation bit. Absolutely. But we're not kind of like building the infrastructure for fine tuning for that. There's Fireworks and other companies like that. I think those are really interesting. I think those are probably at like the immediate infra layer in terms of what people are running into at this moment. I do think There's a second question there or a second thought process there which is like, if agents do become kind of like the future, what are other info problems that are going to emerge because of that? And so, and I think it's way too early for us to say what of these we will or won't do, because to be quite frank, we're not at the place where agents are reliable enough to have this whole like economy of agents emerge. But I think like, you know, identity verification for agents, permissioning for agents, payments for agents. There's a really cool startup for payment for agents. Actually this is the opposite. It was agents could pay humans to do things right. And so I think there's like, I think that's really interesting to think about. Like if agents do become prevalent, like what is the toy in infrared that is going to be needed for that? Which I think is a little bit separate than like what's the things that are needed in the developer community for building LLM applications? Because I think LLM applications are here, agents are starting to get here, but not fully here. And so I think it's just different levels of maturity for these types of companies.
Host
Harrison, you mentioned fine tuning and the fact that you guys aren't going to go there. It seems like the two kind of prompting and, and like cognitive architectures and fine tuning are almost substitutes for each other. How do you think about kind of the, I mean the current state of like how people should be using prompting versus fine tuning and how do you think that plays out?
Harrison Chase
Yeah, I don't think that fine tuning and cognitive architectures are substitutes for each other. And the reason I don't think they are, and I actually think they're kind of complementary in a bunch of senses, is that when you have a more custom cognitive architecture, the scope of what you're asking each agent or each node or each piece of the system to do becomes much more limited and that actually becomes really, really interesting for fine tuning maybe.
Host
Actually on that point, can you talk a little bit about Langsmith and Langgraph? Like Pat had just asked you, what problems are you not solving? I'm curious, what problems are you solving? And as it relates to kind of all the problems with agents that we're talking about earlier, like the things that you were doing to, I guess making, to make managing state more manageable, to make, you know, the agents more kind of controllable, so to speak. Like how, how do, how do your products help people with that?
Harrison Chase
Yeah, so maybe even backing up a little bit and talking about LangChain when it first came out, I think the LangChain open source project really solved and tackled a few problems there. I think one of the ones is basically standardizing the interfaces for all these different components. So we have tons of integrations with different models, different vector stores, different tools, different databases, things like that. And so that's a big, that's always been a big value prop of LangChain and why people use LangChain. In LangChain there also is a bunch of higher level interfaces for easily getting started off the shelf with like RAG or SQL Queue and, or things like that. And there's also a lower level runtime for dynamically constructing chains. And by chains I kind of mean we can call them dags as well, like directed flows. And I think that distinction is important because when we talk about Lang Graph and why Lang Graph exists, it's to solve a slightly different orchestration problem, which is you want these customizable and controllable things that have loops. Both are still in the orchestration space. But I draw like this distinction between kind of like a chain and these cyclical loops I think with Langgraph and when you start having cycles there's a lot of other problems that come into play. One of the main ones being this persistent layer persistence layer so that you can resume, so that you can kind of have them running in the background in kind of like an async manner. And so we're starting to think more and more around deployment of these long running cyclical human in the loop type applications. And so we'll start to tackle that more and more. And then the piece that kind of like spans across all of this is Lang Smith, which we've been working on basically since the start of the company. And that's kind of like observability and testing for LLM applications. And so basically from the start we noticed that you're putting an LLM at the center of your system. LLMs are non deterministic. You gotta have good observability and testing for these types of things in order to have confidence to put it in production. So we started building Langsmith works with and without LangChain. There's some other things in there like a prompt hub so that you can manage prompts, a human annotation queue to allow for this human review, which I actually think is crucially one. Like I think in all of this it's important to ask like, so what's actually new here? And I think like the main thing that's new here is these LLMs and I think the main new thing about LLMs is they're non deterministic, so observability matters a lot more. And then also testing is a lot harder and specifically you probably want a human to review things more often than you want them to review like a software test or something like that. And so a lot of the tooling we're adding in Langsmith kind of helps at that actually on that.
Co-Host
Harrison, do you have a heuristic for where existing observability, existing testing, you know, existing fill in the blank will also work for LLMs versus where LLMs are sufficiently different that you need a new product or you need a new architecture, you need a new approach.
Harrison Chase
Yeah, I think I've thought about this a bunch. On the testing side, from the observability side I feel like it's almost like, I feel like it's almost more obvious that there's something new that's needed here. And I think that's maybe that's just because of these multi step applications. Like you just need a level of observability to get these insights. And I think a lot of the like Datadog I think is really aimed. LaserDog is great, kind of like monitoring but for like specific traces. I don't think you get the same level of insights that you can easily get with something like Langsmith for example. And I think a lot of people spend time looking at specific traces because they're trying to debug things that went wrong on specific traces because there's all this non determinism that happens when you use an LLM. And so observability has always kind of felt like there's, there's something new to kind of like be built there. Testing is really interesting and I've thought about this a bunch. I think there's two maybe new unique things about testing. One is basically this idea of pairwise comparisons. So when I run software tests I don't generally compare the results of it's either pass or fail for the most part. And if I am comparing them, maybe I'm comparing the latency spikes or something. But it's not necessarily pairwise of two individual unit tests. But if we look at some of the evals for LLMs, the main eval that's trusted by people is this LLM sys arena, chatbot arena style thing where you literally judge two things side by side. And so I think this pairwise thing is pretty important and pretty distinctive from kind of traditional software testing. I think another component is basically depending on how you set up evals, you might not have a hundred percent pass rate at any given point in time. And so it actually becomes important to track that over time and see that you're improving or at least not regressing. And I think that's different than software testing because you generally have everything kind of passing and then the third bit is just a human in the loop component. So I think you still want humans to be looking at the results of. I don't want maybe the wrong word because there's a lot of downsides to it. It takes a lot of human time to look at these things, but those are generally more reliable than having some automated system. If you compare that to software testing, software can test whether 2 equals 2 just as well as I can tell that 2 equals 2 by looking at it. And so figuring out, like, how to put the humans in the loop for this testing process is also really interesting and unique and new. I think I have a couple of.
Co-Host
Very general questions for you.
Harrison Chase
Cool. I love general questions.
Co-Host
Who do you admire most in the world of AI?
Harrison Chase
That's a good question. I mean, I think what OpenAI has done over the past year and a half is incredibly impressive. So I think Sam, but also everyone there. I think across the board. I have a lot of admiration for the way they do things. I think Logan, when he was there, did a fantastic job at kind of like some of bringing these concepts to folks. Sam obviously deserves a ton of credit for a lot of the things that has happened there. Lesser known, but like, David Dohan is a researcher that I think is absolutely incredible. He did some early model Cascades papers and I chatted with him super early on in LangChain, and he's been like, he's. He's like, he's been incredibly just influential in the way that I think about things. And so I have a lot of admiration for the way that he does things separately. You know, like, I'm touching all, all different possible answers for this, but I think like Zuckerberg and Facebook, like, I think they're crushing it with, with Llama and a lot of the open source. And I also think, like, as a CEO and as a leader, the way that he and the company have embraced that has been incredibly impressive to watch. And so I have a lot of admiration for that.
Co-Host
Speaking of which, is there a CEO or a leader who you try to model yourself after or who you've learned a lot about your own leadership style from?
Harrison Chase
It's a good question. I think I definitely think of myself as more of kind of like a product centric, kind of like CEO. And so I think like Zuckerberg has been interesting to watch there. Brian Chesky, I saw him talk or I listened to him talk at the Sequoia Base Camp last year and really admired the way that he kind of thought about product and thought about kind of like company building. Um, and so Brian's usually my go to answer for that. Um, but I can't say I've gone incredibly into the depths of everything that he's done.
Co-Host
If you have one piece of advice for current or aspiring founders trying to build an AI, what would your one piece of advice for them be?
Harrison Chase
Just build. And just try building stuff. It's so, it's, it's so early on that like, it's so early on there's so much to be built. Yeah. Like, you know, GPT5 is going to come out and it'll probably make some of the things you did not relevant, but you're going to learn so much along the way. And this is, I strongly, strongly believe, like a transformative technology. And so the more that you learn about it, the better.
Co-Host
One quick anecdote on that, just because I got a kick out of that answer. I remember at our first AI ascent in early 2023, when we were just starting to get to know you better, I remember you were sitting, you were sitting there pushing code the entire day. People were up on stage speaking and you were listening, but you were sitting there pushing code the entire day. And so when the advice is just build, you're clearly somebody who takes your.
Harrison Chase
Own advice, I think. Well, that was the day OpenAI released plugins or something. And so there was a lot of scrambling to be done and I don't think I did that at this year's Sequoia Ascent. So I'm sor to disappoint and regress in that capacity.
Host
Thank you for joining us. We really appreciate it.
Harrison Chase
SA.
Crucible Moments: Introducing "Training Data" – A Deep Dive into the Future of AI Agents
Hosted by Roelof Botha of Sequoia Capital
In the latest episode of Crucible Moments, Sequoia Capital unveils their new podcast series, Training Data, focusing on the burgeoning field of Artificial Intelligence (AI). While Season Two of Crucible Moments is on the horizon, featuring insights from industry luminaries like Steve Chen of YouTube and Drew Houston of Dropbox, the episode pivots to introduce Training Data. This new series aims to explore the technological waves shaping the future, with a keen emphasis on AI agents and their transformative potential.
Notable Quote:
"It's so early on that, like, it's so early on there's so much to be built... the more that you learn about it, the better."
[00:01] Harrison Chase
The episode features an in-depth conversation with Harrison Chase, a pivotal figure in the AI agent ecosystem and the brain behind LangChain—the foremost framework for building AI agents. Harrison's expertise lies in integrating Large Language Models (LLMs) with actionable tools, positioning LangChain as a cornerstone in the current AI landscape.
Notable Quote:
"LangChain is the most popular agent building framework in the AI space."
[02:02] Host
Harrison delves into the nuanced definition of AI agents, distinguishing them from traditional retrieval-augmented generation (RAG) chains. He emphasizes that agents empower LLMs to dictate the control flow of applications, enabling dynamic decision-making processes beyond fixed sequences.
Key Points:
Notable Quote:
"When you have an LLM deciding what to do, the main way that it decides what to do is through tool usage."
[02:21] Harrison Chase
LangChain positions itself as an orchestration layer, enabling the creation of agents that lie between simple chains and fully autonomous systems. Harrison highlights the evolution of LangChain from basic chains to more sophisticated frameworks like Lang Graph, catering to customizable and controllable agents.
Key Points:
Notable Quote:
"Our focus has evolved to creating this orchestration layer that enables the creation of these agents, particularly these things in the middle between chains and autonomous agents."
[06:02] Harrison Chase
Harrison concurs with the belief that AI agents represent the next significant advancement over co-pilots. He argues that while co-pilots require continuous human input, agents can operate more autonomously, offering greater leverage despite the inherent risks of reduced control.
Key Points:
Notable Quote:
"A co-pilot still relies on having this human in the loop... I just think it's more powerful and gives you more leverage."
[08:12] Harrison Chase
Reflecting on the AI agent hype cycle, Harrison recounts the initial excitement sparked by projects like AutoGPT in early 2023, followed by a period of tempered expectations. He notes that recent developments have focused on more specialized and reliable agents, moving away from the overly general architectures that initially captivated the public.
Key Points:
Notable Quote:
"AutoGPT was very general and very unconstrained... but in practice, what people wanted was much more specific."
[09:46] Harrison Chase
Harrison introduces the concept of cognitive architectures as the system architecture underlying LLM applications. These architectures define how LLMs interact with various components, facilitating planning, action-taking, and reflection within AI agents.
Key Points:
Notable Quote:
"Cognitive architecture is just a fancy way of saying, like from the user input to the user output. What's the flow of data and information."
[12:22] Harrison Chase
The discussion transitions to the critical role of UX in AI agents. Harrison emphasizes that while foundational architectures are essential, the user interface profoundly impacts the effectiveness and usability of AI agents. Innovative UX designs, such as transparent action logs and interactive debugging tools, are vital for managing the non-deterministic nature of LLMs.
Key Points:
Notable Quote:
"Chat has clearly emerged as the dominant UX at the moment... how do you balance these two things?"
[32:14] Harrison Chase
Addressing the unique challenges posed by LLMs, Harrison discusses the necessity of robust observability and testing frameworks. Traditional software testing methods fall short due to the non-deterministic outputs of LLMs, necessitating new approaches that incorporate human oversight and continuous evaluation.
Key Points:
Notable Quote:
"LLMs are non-deterministic... observability matters a lot more."
[43:32] Harrison Chase
Concluding the episode, Harrison shares his vision for the future of AI agents, highlighting areas like customer support and coding where agents are already making significant inroads. He underscores the transformative potential of AI in automating routine tasks, thereby enabling humans to focus on higher-level strategic and creative endeavors.
Key Points:
Notable Quote:
"I just think it's more powerful and gives you more leverage... balancing the risk is going to be really, really interesting."
[21:57] Harrison Chase
Advice for Aspiring AI Founders:
"Just build. And just try building stuff. It's so early on that like, it's so early on there's so much to be built... the more that you learn about it, the better."
[49:06] Harrison Chase
This episode of Crucible Moments serves as a comprehensive introduction to Training Data and provides invaluable insights into the current and future state of AI agents. Through Harrison Chase's expert commentary, listeners gain a deep understanding of the complexities, challenges, and immense potential that AI agents hold in transforming various industries.
Disclaimer: The content discussed in this podcast episode is intended for informational purposes only and does not constitute investment advice or an offer to provide investment advisory services.