In short
Podcast Notes: LangChain’s Harrison Chase on Building the Orchestration Layer for AI Agents
Podcast Overview Podcast Title: Training Data Hosts: Sonya Huang and Pat Grady, Sequoia Capital Guest: Harrison Chase, Founder and CEO of LangChain Episode Release: [Transcript Available Here](https://www.sequoiacap.com/podcast/training-data-harrison-chase/)
Episode Description In this episode, Harrison Chase discusses the developments in AI agents since the initial hype surrounding AutoGPT and Baby AGI. He explains the advancements in agent technology and the role of LangChain as an orchestration layer for these AI agents.
Key Themes and Discussions
Introduction to Agents
- Definition of Agents:
- Agents are defined as AI systems where a language model (LLM) decides the control flow of an application. This differs from traditional fixed sequences, allowing for more adaptive responses.
- Agents incorporate elements of tool usage and memory, allowing for dynamic decision-making.
LangChain's Role in the AI Ecosystem
- Orchestration Layer:
- LangChain's primary focus is to facilitate the creation of flexible AI agents that fall between fully autonomous systems and rigid chains, addressing the need for more nuanced control.
- Evolving Needs:
- The demand for customizable agents has led to the development of LangGraph, which supports more complex workflows.
Cognitive Architectures
- Concept of Cognitive Architectures:
- Cognitive architecture refers to the system architecture of LLM applications, detailing how data flows from user input to output.
- Different architectures can offer specific benefits depending on their design, with complexity often tailored to domain-specific needs.
Trends and Traction for AI Agents
- Current State of AI Agents:
- While past tools like AutoGPT generated initial excitement, practical applications have emerged that focus on specific functionalities, such as customer support and software engineering.
- User Experience (UX):
- Effective UX is crucial for agent success, as it determines how users interact with AI systems and can significantly influence overall performance.
Challenges and Future Directions
- Long-Term Planning and Reflection:
- The discussion highlights two core challenges: planning and reflection. Agents must be able to devise long-term strategies and assess the effectiveness of their actions.
- The Role of Human Interaction:
- Balancing human oversight and autonomy in AI interactions is vital to ensuring reliability and effectiveness.
Insights on Development and Future Applications
- Impact of AI on Work:
- If agents become fully functional, they could automate routine tasks, allowing humans to focus on higher-level strategic roles.
- Example Applications:
- Current uses include coding assistants and customer support bots, with ongoing developments aimed at further improving their capabilities.
Observations on Testing and Observability
- Need for New Tools:
- Traditional software testing methods may not suffice for LLM applications due to their inherent unpredictability. New frameworks for testing and observability are being developed to address these unique challenges.
Key Takeaways
- Continuous Learning:
- The landscape of AI agents is rapidly evolving, with ongoing experimentation required to fully realize their potential.
- Advice for Founders:
- Aspiring founders are encouraged to engage in building and experimenting with AI technologies, even amidst uncertainties and evolving standards.
Closing Remarks
- The conversation underscores the dynamic nature of AI development, emphasizing the importance of adaptability, user-centered design, and continual learning in the face of rapid technological advancements. Harrison Chase's insights provide a forward-looking perspective on the potential future of AI agents and their implications for business and society.
Written by AI. May contain mistakes. Listen to the episode to check what was said.
Transcript
Automatic transcript. May contain errors.0:00It's so early on that like it's so early on there's so much to be built. Yeah, like, you know, GPT -5 is going to come out and it will probably make some of the things you did not relevant, but you're going to learn so much along the way. And this is a strongly, strongly believed like a transformative technology and so the more that you learn about it, the better.
0:38Hi, and welcome to Training Data. We have with us today Harrison Chase, founder and CEO of Langechain. Harrison is a legend in the agent ecosystem as the product visionary who first connected LLMs with tools and action. And Langechain is the most popular agent building framework in the AI space today. We're excited to ask Harrison about the current state of the future potential and the path ahead. Harrison, thank you so much for joining us and welcome to the show. Of course, thank you for having me. 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.
1:18And so maybe first just to set the table. What exactly are agents? 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 retrieve logmented 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.
2:01And it's a very fixed sequence of events. And I think when I think about things that start to get agentec, 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 result, 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 buzz wordy things that fit into this. So like tool usage is often associated with agents.
2:37And 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 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 loosely associated. But to me, when I think of an agent, it's really having an LLM decide the control flow of your application. And here's said a lot of what I just heard from you is around decision making.
3:15And I've always thought about agents as sort of action taking. Do those two things go hand in hand as agent behavior more about one versus the other? How do you think about that? 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 on tens and purposes. And I think the big 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.
3:58So I think that in, yes, so I do think they go kind of hand in hand. 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 that next what action to take next as opposed to these things being hard code Is that like a fairway to distinguish an agent's? 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 LOMs still deciding like what to do, but it's a very simplistic way of deciding what to do.
4:36And you know, at the other extreme, you've got these autonomous agent type things, and that 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 in gray area as there is with most things in the LOM space these days. Got it. It's like a spectrum from control to like fully autonomous decision making and logic. Well, those are kind of a lot of respect to my agents. Interesting. What role do you see Langchain playing in the Aging ecosystem? I think right now we're really focused on making it easy for people to create something in the middle of that spectrum.
5:13And 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 of 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 the being this orchestration layer that enables the creation of these agents, particularly these things in the middle between chains and autonomous agents.
5:53And I can dive into a lot more about what exactly we're doing there, but at a high level, that's the being that piece of orchestration framework is kind of where we imagine length chain city. Got it. So there's chains, there's autonomous agents, there's a spectrum in between and secret sweet spot is somewhere in the middle, enabling people at all agents. Yeah, and obviously that's changed over time. So it's fun to like reflect on the evolution of lane chain. So you know, I think when lane chain 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.
6:30And 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 length graph, which is an extension of length chain that's really aimed at like customizable agents that sit somewhere in the middle. And so kind of like our focus, you know, has evolved over time as the space has as well. Fascinating. Maybe maybe one more final kind of setting the stage question. And one of our core beliefs is that agents of an ex -big wave in AI and that we're moving as an industry from co -pilots to agents.
7:10I'm curious if you agree with that take and where, why not? 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 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 in 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.
7:57I 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. I remember back and I think it was March -ish of 2023. There were few of these autonomous Miss agents that really captured everyone's imaginations, like BabyAGI, audit GPD, a few of these. And I just remember Twitter was very, very excited about it. And it seems like that first iteration of an Asian architecture hasn't quite met people's expectations.
8:43I think why do you think that is, and where do you think we are in the Asian hype cycle now? Yeah, I think maybe thinking about the agent hype cycle first, I think the auto GPT was definitely the start and then I mean it's one of the most popular GitHub projects ever. So one of the peaks of the hype cycle. I think and I'd say that started in the spring 2023 to summer of 2023, Then I personally feel like there was a bit of kind of like a law 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.
9:35I had point out some of the work that we've done at Lengcheng with Elastic for example. They have kind of like an elastic assistant and elastic agent in production. And so we're seeing that. We saw kind of like the Clarna 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.
10:27And 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 know, you would you would just code it. But it's a very like 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.
10:58and 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, you know, that's why that didn't exist a year ago or something like that. Since you mentioned cognitive architectures, I love the way that you think about them. Maybe can you just explain like what is not what is a cognitive architecture and like is there a good mental framework for how we should be thinking about them? Yeah, so the the way that I think about cognitive architecture is basically what's the system architecture of your LLM application.
11:34And 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? Do you have 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 loop. Would you basically run this LLM in a loop? These are all kind of like different variants of cognitive architectures. And kind of architectures is just a fancy way of saying like from the user input to the user output, what's the flow of data of information of L, I'm called, that happens along the way.
12:20And 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 substeps. And so we see these more like, if you think about it as a graph that you're drying 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.
12:59The reason I call it cognitive architectures is just, you know, I think a lot of the power of LLMs is around reasoning and thinking about what to do. And so, you know, I would maybe have like a commutive mental model for how to do a task. And I'm basically just encoding that mental model into some kind of like software system, some architecture that way. Do you think that's the direction the world is going? Because I kind of heard two things from me 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?
13:35Or 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? That is a really, really good question. And when 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.
14:18I 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 not deterministic things. We're talking about, especially in enterprise settings, you probably want a little bit more comfort that if 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.
14:57I think it will get easier to create these things. Like I think they'll maybe start to become a little bit less and less complex. But actually this is maybe a hot take or interesting take that it has. 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.
15:45And 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. I guess you can almost think about it as like the LLM does the kind of like general, the very general all, um, agentic reasoning, um, but then you need domain specific reasoning.
16:22Uh, and, and that's the sort of stuff that, that you can't really build into one general model. 100 % like I think, I think a way of thinking about like the custom cognitive architectures is you're basically taking, you're 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, and, 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 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.
17:19So 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, right? 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 five nines reliability, but are they getting to kind of like the thresholds they need to kind of deploy these agents out to actually kind of customer facing deployments? Yeah, so the sweet agent is, I would say a relatively general list agent in that it is expected to work across a bunch of different GitHub repos.
17:59I think if you look at something at like V0 by Versailles, that's probably much more reliable than and 12 .5 % right? And so I think that speaks to like, yeah, there are definitely custom agents that not five, nine, several liability, 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 a RSA, and I think they're announcing something new at RSA that's an agent. And yeah, those are, I don't know if the exact numbers on reliability, but they're all able enough to be shipped into production.
18:38General agents are still tough. Yeah, this is where kind of like longer context windows, better planning, better reasoning will help those general agents. You shared with me this great Jeff Bezos quotes. They're just like focus on what makes your beer better. And I think it's referring to the fact that at the time of the 20th century, breweries were trying to make their own electricity, generator 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 see control of that to the model and just build UI and product?
19:21I 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 bottle 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 that you know to kind of like develop code or develop this particular type of code or this particular type of application.
20:00Yeah, I think that absolutely makes your your beard tastes better, especially if we're going towards a place where these applications are are doing work, then like the logic, the bespoke kind of like business logic or mental models for anthropomorphizing these alums a lot right now, but like the models for these things to to do the best work possible, 100%, like I think that's the key thing that you're selling in some class and I think UX, then UI and distribution and everything absolutely still plays a part, but like yeah, I draw this distinction between general versus custom. Harrison, before we get into some of the details on how people are building these things, can we pop up a level real quick?
20:43So our founder, Don Valentine was famous for asking the questions, 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? How is life different if and when that occurs? 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, like, wrote, repeated kind of 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 like 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.
21:34And so I think you know you could imagine bootstrapping a 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 in an agent for marketing, an agent for sales, something like that. And I'll 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. I mean, 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.
22:19And are you seeing any interesting examples of this today, sort of live and in production? I mean, I think the biggest, there's two kind of 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 Lengcheng. 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.
23:09There'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 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 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.
23:45Your code on coding is interesting because I think this is one of the things that has as very optimistic about AI. It's this idea sort of closing the gap from idea to execution or closing the gap from, you know, 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 be able to put it into reality and AI seems like it's all suited for that. I think Dylan had figured out talks about this a lot too. Yeah, I think it goes back to this idea of like automating away the things that get in the way of making, like the phrasing of idea to reality.
24:19It automates away kind of like 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 gender to AI and in the age of agents? So what it means to be a, you know, a builder of software today means, you know, you, 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 gender say, I just allows people to build a way larger set of things than they could build today.
25:05Because 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 this, 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 You mentioned reflection and and chance odds and other techniques like maybe can you just say word on like what we've learned so far about what some of these I guess cognitive of architectures are capable of doing for a genetic performance and maybe just I'm curious what you think are the most promising cognitive architectures?
25:55Yeah, I think there's maybe it's worth talking a little bit about why kind of like the auto GPT 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 what they should do as the first step. 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 what they should do for a specific kind of single step.
26:39Then that actually started to get trained into the models more and more and that kind of did that by default. As that kind of like is basically everyone wanted the models to do that anyways. And so yeah, you should trade that into the models. I think then there was a great paper by Shenu 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.
27:20He 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's that that like explicit reasoning step has actually Become less and less necessary as the models have that trained into them Like just like they have kind of like the chain of thought trained into them that explicit reasoning step has become 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.
Read the full transcript
27:52But it's still just like loop that has kind of become synonymous with the react paper. So that's a lot of the difficulties initially with agents. And I wouldn't entirely describe those as kind of 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 gonna do the steps in and then I kind of like go and do each steps and basically models struggle with that.
28:32They struggle with long term planning. They struggle with coming up with a good long -term plan. And then if you're running it in the 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 the 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 L to generate a plan.
29:06Then, let's go step by step in that plan and we'll make sure that we do each step. That's just a way of enforcing that the model generates a long -term plan and actually does each step before going on. 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. Then, I think a separate but kind of related thing is this idea of reflection, which is basically like has the 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.
29:45I shouldn't just return that answer, right? I should kind of like think about whether I got the right answer and 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 coming up 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 like cognitive architectures.
30:20There's a lot of like custom cognitive architectures, but that's all super tied to like business logic and things like that. So, 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. Here's said, one of the things that you talked about at AI Ascent was UX, which we'd normally think about is 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.
30:55But 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 a Devon to rewind to the point in the planning process where things started to go off track Can you can you just say a couple words about UX and the importance of it in in agents or LMS more generally and maybe some interesting things that you've seen there? Yeah, I'm super fascinated by UX and 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 alums still aren't perfect and still aren't kind of like reliable and 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.
31:41It 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. 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.
32:23So how do you balance these two things? I think some of the interesting ideas that we've seen talking about Devon 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 messed up step three, you can maybe rewind there, give it some new instructions, or even just like edit it's kind of like decision manually and go from there. I think other like interesting UX patterns besides this rewind and edit, one is like the idea of kind of like a inbox where the agent can reach out to the human as needed.
33:15So you've maybe got like, like 10 agents running in parallel in the background and every now and again it maybe needs to ask the human for clarification. So you've got an email inbox where the agent is sending you 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. So I think this is really powerful for, we've seen a lot of agents for writing different types of things, doing research, research style agents. There's a great project, SHIPPT researcher, which has some really interesting kind of like architectures around agents.
33:51And I think that's a great place for this type of like review, all 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 I can actually happen. So, you know, 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 human in 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 Um, and I 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?
34:54We're talking about a human 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. That would suck. 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 I think all of these are... 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. 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.
35:45So there are the problems that Langshane 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. Yeah, I mean, I think two of the obvious areas are like at the model layer and at kind of like the database layer.
36:17So like we're not building a vector database. I think it's really interesting to think about what the right storage is, but you know, 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 the immediate infrill air in terms of what people are running into at this moment. I do think there's a second question, they are a second thought process there, which is like if agents do become kind of like the future, like what are other infer problems that are going to emerge because of that?
37:12And so like, you know, two, and I think it's way too early for us to say like, 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 economy of agents emerge, but I think 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 that's really interesting to think about. If agents do become prevalent, what is the toy that is going to be needed for that?
37:47Which I think is a little bit separate than 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. So I think it's just different levels of maturity for these types of companies. Eres, and 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 like going to the architectures and fine tuning are almost substitutes for each other. However, how do you think about the current states of how people should be using prompting versus fine tuning?
38:23And how do you think that plays out? Yeah, I don't think that fine tuning and cognitive architectures are substitutes for each other. And the reason they 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 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?
39:00I'm curious, what problems are you solving? And as it relates to all the problems with agents that we were talking about earlier, the things that you were doing to make managing state more more manageable to make, you know, the agents more kind of controllable, so to speak. Like, how do your products help people with that? Yeah, so maybe even backing up a little bit and talking about Leng chain when it first came out. I think the Leng chain open source project really solves and tackled a few problems there. I think one of the ones is basically standardizing the interfaces for all these different components.
39:40So 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 of chain and why people use chain. In chain, there also is a bunch of higher level interfaces for easily getting started off the shelf with like rag or or SQL Q &A 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, directed flows. And I think that distinction is important because when we talk about lane graph and why lane graph exists is to solve a slightly different orchestration problem, which is you want these customizable and controllable things that have loops.
40:29Both 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 Lang graph, 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, persistent layer so that you can resume, so that you can kind of like have them running in the background in kind of like an async manner. And so we're starting to think more and more around on deployment of these long running cyclical human and the loop type applications. And so we'll start to tackle that more and more.
41:06And then the piece that kind of spans across all of this is Ling Smith, which we've been working on basically since the start of the company. And that's kind of like observability and testing for LLLM applications. And so basically from the start, we noticed that you're putting an LLM at the center of your system. LLLMs are not deterministic. like you got to 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 Langshane. 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 this it's important to ask like, so what's actually new here?
41:54And 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 not 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. Then you want them to review like a software test or something like that. And so a lot of the tooling rad in linksmith kind of helps that. Actually, I'm not Harrison Dubat, But, surestic for where existing, observability, existing, testing, 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 or you need a new approach.
42:35Yeah, I think I've thought about this a bunch on the testing side. From the observability side, I feel like it's almost more obvious that there's something knew that's needed here. And I think that's maybe that's just cut because of these multi -step applications. You just need a level of observability to get these insights. And I think a lot of the like data dog I think is really aimed at. These dog 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 Ling Smith, 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 not determinism that happens when you use an LLM.
43:26And so observability has always kind of felt like 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 like new unique things about testing. And one is basically this idea of like pairwise comparisons. So when I run software tests, I don't generally like compare the results of, like it's either pass or fail for the most part. And if I am comparing them, maybe I'm like comparing like the latency spikes or something, but it's not like necessarily pairwise of two individual unit tests. But if we look at like some of the evals for LLMs, the main, the main evil that's trusted by people is this LLM cysts, kind of like a arena, a chatbot arena style thing, where you literally judge two things side by side.
44:22And so I think this pairwise thing is pretty important and pretty distinctive from kind of like traditional software testing. I think another component is basically depending on how you set up evals, you might not have kind of like 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 like passing. And then the third bit is just a human and the loop component. So I think you still want humans to be looking at the results of like, I don't want maybe the wrong word because there's a lot of downsides to it.
45:11Like it takes a lot of human time to look at these things. But like those are generally more reliable than having some automated system. If you compare that to software testing, like software can test whether two equals two just as well as I can tell that two equals two 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 very general questions for you. Well, I love general questions.
45:43Who do you admire most in the world of AI? 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, has, has, have a lot of admiration for the way they do things. I think Logan, when he was there did a fantastic job that 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. Lessor 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 in Langchain and And he's been like, he's been incredibly just influential in the way that I think is about things.
46:42And so I have a lot of admiration for the way that he does things. Separately, you know, I'm touching all different possible answers for this. But I think like Zuckerberg and Facebook, I think they're crushing it with Lama 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. So I have a lot of admiration for that. 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? It's a good question.
47:20I think I definitely think of myself as more of a product -centric kind of CEO. And so I think Zuckerberg has been interesting to watch there. Brian Chesky, I saw him talk, or listen to him talk at the Sequoia Base Camp last year, and really admired the way that he thought about product and thought about company building. And so, that Brian's usually my go -to answer for that, but I can't say I've gone incredibly into the depths of everything that he did. If you have one piece of advice for current or aspiring founders trying to build an AI, what would your one piece of advice would then be? Just build and just try building stuff.
48:12It's so early on that like it's so early on there's so much to be built. Yeah, like you know, GPT -5 is going to come out and it will probably make some of the things you did not relevant, but you're going to learn so much along the way. And this is strongly strongly believed like a transformative technology and so the more that you learn about it. Better. One quick anecdote on that just because I got a kick out of that answer. I remember at our first AI SENS in early 2023 when we were just starting to get to know you better. I remember you you were sitting there pushing code the entire day. People were up on stage speaking and you were listening.
48:54We were saying they're pushing code the entire day. And so when the advice is just billed, you're clearly somebody who takes your own advice. I think, well, that was the day opening. I released plugins or something. And so there was a lot of scramble to be done. And I don't think I did that at this year's Sequoia sense. So I'm sorry to disappoint you and the regress of that capacity.
49:17Thank you for joining us. We really appreciate it.
From the publisher
Last year, AutoGPT and Baby AGI captured our imaginations—agents quickly became the buzzword of the day…and then things went quiet. AutoGPT and Baby AGI may have marked a peak in the hype cycle, but this year has seen a wave of agentic breakouts on the product side, from Klarna’s customer support AI to Cognition’s Devin, etc.
Harrison Chase of LangChain is focused on enabling the orchestration layer for agents. In this conversation, he explains what’s changed that’s allowing agents to improve performance and find traction.
Harrison shares what he’s optimistic about, where he sees promise for agents vs. what he thinks will be trained into models themselves, and discusses novel kinds of UX that he imagines might transform how we experience agents in the future.
Hosted by: Sonya Huang and Pat Grady, Sequoia Capital
Mentioned:
ReAct: Synergizing Reasoning and Acting in Language Models, the first cognitive architecture for agents
SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering, small-model open-source software engineering agent from researchers at Princeton
Devin, autonomous software engineering from Cognition
V0: Generative UI agent from Vercel
GPT Researcher, a research agent
Language Model Cascades: 2022 paper by Google Brain and now OpenAI researcher David Dohan that was influential for Harrison in developing LangChain
Transcript: https://www.sequoiacap.com/podcast/training-data-harrison-chase/
00:00 Introduction
01:21 What are agents?
05:00 What is LangChain’s role in the agent ecosystem?
11:13 What is a cognitive architecture?
13:20 Is bespoke and hard coded the way the world is going, or a stop gap?
18:48 Focus on what makes your beer taste better
20:37 So what?
22:20 Where are agents getting traction?
25:35 Reflection, chain of thought, other techniques?
30:42 UX can influence the effectiveness of the architecture
35:30 What’s out of scope?
38:04 Fine tuning vs prompting?
42:17 Existing observability tools for LLMs vs needing a new architecture/approach
45:38 Lightning round




