podcasts / No Priors: Artificial Intelligence | Technology | Startups / episode
No Priors: Artificial Intelligence | Technology | Startups cover art
podcast
📅 ⏱ 27 min episode · summary ~2 min read 📝 Transcript · 5,319 words 🎙 Harrison Chase

Harrison Chase: No Priors: Artificial Intelligence transcript

No Priors: Artificial Intelligence | Technology | Startups · Transcript & summary by WhipScribe

Harrison Chase, who built LangChain from a 2022 side project, explains why agents, memory and few-shot examples matter more than bigger context windows.

Read the transcript
🔔 Get every new No Priors: Artificial Intelligence transcript by emailOne email per new episode. Unsubscribe in every message.
One email per new episode, unsubscribe in every message. Not shared with the publisher.
In this episodeLangChainLangSmithLangGraphDSPyAutoGPTSierraCognitionKlarnaGeminiMistral

▸Chapters

Tap a chapter to play it from that moment in the show's own player.

▸Key takeaways

01Harrison Chase started LangChain as a side project in late 2022, and it struck a chord when ChatGPT launched about a month later.
02LangChain now lists about 700 integrations, and its LangGraph runtime adds the cycles LLM agents need, which plain sequential chains cannot do.
03Chase says open-source models still lag GPT-4 and Claude 3 on reasoning, so many LangChain apps fall short of the hype around them.
04Chase says fine-tuning stays rare because collecting datasets is hard and a tuned model is much harder to change than a prompt or few-shot examples.
05Chase's bet for the next year is continual learning from few-shot examples, which he says is faster and cheaper than fine-tuning models.

▸Notable quotes

“I think the most exciting stuff is at the application and UX layer right now.” Harrison Chase · at 23:00 — ▶ hear it from here
“I think the main thing is that the prompts still need to be different for each model.” Harrison Chase · at 14:46 — ▶ hear it from here

▸What this episode covers

LangChain began in late 2022 as a side project by Harrison Chase, who had worked in ML and MLOps and noticed common patterns among people experimenting with LLMs at hackathons. ChatGPT launched about a month later, and the project took off. The company now sells two things: the open-source framework and LangSmith, a platform for testing, evaluation and monitoring. Chase says the integrations and high-level chains have stayed fairly steady, while the fastest churn has been in how developers combine them, moving from simple chains to autonomous agents and now to controlled state machines built with LangGraph.

On what is still missing, Chase points to agent UX, where apps must show users what an agent is good at and let them correct it mid-run, and to the planning ability of underlying models, which teams currently work around by splitting tasks into smaller steps. On memory he separates procedural memory, which teaches the right way to use a tool, from personalization memory, which remembers a user's preferences. For the first he favors few-shot examples gathered from monitored applications. For the second he is intrigued by background processes that extract insights from past conversations. He calls the whole field nascent.

Practical questions come next. Switching model providers is harder than it sounds, because prompts still differ by model, though function calling is spreading across providers. Long context windows make single-pass jobs easier but do not replace agents that must interact with an environment. Fine-tuning remains rare because datasets are hard to collect and tuned models are slow to iterate on. Chase doubts that open-source models match frontier reasoning yet, and his bet is on continual learning from few-shot examples and on application-layer products built around long-term memory.

Have a recording of your own? Paste a link or upload it.

WhipScribe sends back a timestamped transcript, like the one on this page.

Every recording starts with a free preview. Full transcripts come in packs from $4 for 300 minutes. Uploads up to 10 hours or 5 GB.

▸Harrison Chase on No Priors: Artificial Intelligence: the answers

Who is Harrison Chase?

Harrison Chase is the CEO and co-founder of LangChain, the open-source framework for building LLM applications. He came from ML and MLOps work and says LangChain started as a side project in late 2022.

What did Harrison Chase say about LangChain?

Harrison Chase said LangChain started in late 2022 as a side project built from common patterns he saw among people experimenting with LLMs at hackathons and meetups. He said it struck a chord and the timing was fantastic, because ChatGPT launched about a month later. The company now offers the open-source packages and the LangSmith platform for testing, evaluation and monitoring.

“Turned out to strike a chord, be fantastic timing”Harrison Chase · 0:44

What did Harrison Chase say about LangGraph?

Harrison Chase said LangGraph is a protocol aimed at graphs that are not DAGs, because agents run an LLM in a loop and need cycles. He said the company invested in this lower-level runtime after seeing that users who moved from prototype to production wanted to customize the underlying pieces. He described it as something the company is really excited about.

“So all these agents are basically running an LLM in a loop. You need cycles.”Harrison Chase · 2:43

What did Harrison Chase say about Cognition?

Harrison Chase called the Cognition demo a surprisingly amazing agent that was very impressive. He said the company did a lot of things right, especially a really interesting user experience. He pointed to coding as an area where agents work well because executing code gives a fast feedback loop and the builders are developers who can test it themselves.

“I think, yeah, the cognition demo was very impressive.”Harrison Chase · 12:17

What did Harrison Chase say about fine-tuning?

Harrison Chase said people talk about fine-tuning far more than they do it, and that the real use is at very critical scale. He named three hurdles: gathering the dataset, evaluating the fine-tuned model, and iterating quickly, since a fine-tuned model is much harder to change than a prompt or few-shot examples.

“It's much harder to change a fine-tuned model than it is to a prompt, or even change few shot examples.”Harrison Chase · 20:44

What is Harrison Chase's main argument on No Priors?

Harrison Chase argues that LangChain's lasting value is its lower-level runtime for joining LLM calls, while the most rapid churn is in the patterns developers use to combine them. He says the most exciting near-term work is at the application and UX layer, especially personalized long-term memory and continual learning from few-shot examples.

Mentioned in this episode

  • CompanyLangChain
  • ProductLangSmith
  • ProductLangGraph
  • ProductDSPy
  • ProductAutoGPT
  • PersonNat Friedman
  • ProductNatBot
  • CompanyCognition
  • CompanySierra
  • CompanyKlarna
  • ProductGemini
  • CompanyMistral
  • OtherStanford

Episode facts

Released
March 28, 2024
Length
27 minutes

▸Questions this episode answers

Q1What did Harrison Chase say about agent memory on No Priors?

Harrison Chase splits agent memory into two types. System-level procedural memory teaches the right way to use a tool, and he favors few-shot examples gathered from monitored applications for it. Personalization memory remembers facts about a user, such as their interests. For that he is bullish on passive background processes that extract insights from conversations. He calls the field very nascent and says no single approach is clearly best yet.

Q2What did Harrison Chase say about few-shot examples versus fine-tuning?

Harrison Chase said few-shot prompting is the most effective way to teach agents how to use tools. He described a data flywheel in which monitoring an application produces good examples that get fed back into prompts, a workflow LangSmith supports. He said fine-tuning is rare because gathering the dataset is hard, evaluation is a pain point, and a fine-tuned model is much harder to iterate on than a prompt.

Q3Does Harrison Chase think open-source models can match GPT-4 for agents?

Harrison Chase said open-source models are attracting more interest from LangChain users, but their reasoning abilities still lag behind Claude 3 and GPT-4. He said that reasoning matters a lot for many LangChain applications, so open-source models do not yet live up to the Twitter hype for those apps. He called this one of his hot takes.

Q4What did Harrison Chase say about LangChain's architecture and LangGraph?

Harrison Chase said LangChain launched with three high-level implementations, two based on research papers and one based on Nat Friedman's NatBot web agent, plus integrations with OpenAI, Cohere and Hugging Face. He said LangChain now has about 700 integrations and has invested in a lower-level runtime, including LangChain Expression Language and LangGraph, because agents run an LLM in a loop and need cycles that a DAG cannot express.

Q5What is Harrison Chase's view on long context windows versus RAG?

Harrison Chase said long context windows make single-shot jobs realistic, such as extracting elements from one long PDF or running RAG over five long PDFs in one pass. Work at scale and tasks that need back-and-forth with an environment still require chaining and agents. He argued the needle-in-a-haystack test, which models now pass, does not reflect RAG, because RAG usually means reasoning over several facts, and performance drops as more needles are added.

Q6Why does Harrison Chase say switching LLM providers is harder than it looks?

Harrison Chase said switching between providers such as Anthropic, Mistral and OpenAI is not as easy as it seems, because prompts still need to differ for each model. He expects prompts to converge as models get more capable and as providers add shared features such as function calling. He said the most pressing reason to switch comes when a team moves from prototype to scale, where cost and latency become decisive.

▸Transcript

Our own transcript of the public episode, with a timestamp about every 90 seconds. Tap a timestamp to play the episode from there in the show's own player; the link button on a paragraph copies a link that opens this page there.

0:00Introducing LangChain and Harrison Chase's background

0:00Hi, listeners, and welcome to another episode of No Priors. Today, we're talking to Harrison Chase, the CEO and co-founder of LanqChain, a popular open source framework and developer toolkit that helps people build LLM applications. We're excited to talk to Harrison about the state of AI application development, the open source ecosystem, and its open questions. Welcome, Harrison. Thanks for having me. I'm excited to be here. Langchain is a really unique story, and it started actually as a personal project for you. Can you talk a little bit about what Langchain is and what it was originally? Yeah, absolutely. So how I would answer the question, what Langchain is, has kind of evolved over time, as has the entire landscape.

0:44Starting LangChain as a side project in 2022

0:44Langchain, the open source package, started, yeah, as a side project. So my background is in ML and MLOps. I was at my previous company. I knew I was going to leave. I didn't know what I was going to do. This was in September, October of 2022. And so I went to a bunch of hackathons, went to a bunch of meetups, chatted with folks that were playing around with LLMs and saw some common abstractions, put it in a Python project as a just fun side project. Turned out to strike a chord, be fantastic timing, you know, ChatGPT came out like a month later. And it's kind of evolved from there. So right now, Langchain, the company, there's really two main products that we have. One is the Langchain open source packages.

1:27I'm happy to dive into that more. And then the other is Langsmith platform for testing, evaluation, monitoring, and all of those types of things. And so, you know, what Langchain is has evolved over time as the company grow. One thing that we talked about the last time we saw each other in person was just how quickly the AI ecosystem and research field is evolving and what it means to manage an open source project through that. Can you talk a little bit about what you decide to keep stable and change when you both have big ecosystem of users now and very rapidly changing environment of applications and technology? That's been a fun exercise. you both have like big ecosystem of users now and like very rapidly changing environment of

2:05Keeping LangChain stable while the ecosystem shifts

2:05applications and technology. That's been a fun exercise. So I mean, if we go back to the original version of Langchain, what it was when it came out was essentially three kind of like high level implementations. Two were based on research papers, and then one was based on Nat Friedman's like NatBot type of agent web crawler thing. And so there was some high level kind of like abstractions. And then there was a few like integrations. So we had integrations with, I think, like OpenAI, Cohere, and HuggingFace to start or something like that. And those two layers have kind of like remained. So we have, you know, 700 different integrations. We have a bunch of kind of like higher level chains and agents for doing particular things. I think the thing that

2:43we've put a lot of emphasis in, to your point around kind of like what's remained constant and what's changed, is like a lower level kind of like abstraction and runtime for joining these things together. One of the things that we pretty quickly saw was that as people wanted to improve the performance, go from prototype to production, they wanted to customize a lot of these bits. And so we've invested a lot in a lower level kind of like chaining protocol, so lane chain expression language, and then in different protocol, lane graph, which is something we're really excited about. And that's more aimed at basically graphs that are not DAGs. So all these agents are basically running an LLM in a loop. You need cycles. And so

3:25LaneGraph helps with that. And so I think what we've kind of seen is the underlying bits of, there's all these different integrations and like, you know, there's LLMs, vector stores, and sometimes they change, right? When chat models came out, like that was a, that's a very big change in the API interface. And so we had to add a new abstraction for that. But those have, especially over the past few months, remained relatively stable. We've invested a lot in this underlying runtime, which emphasizes a few things, streaming, structured outputs, and the importance of those has remained relatively stable. But then the way that you put things together and the kind of like patterns for building things has definitely evolved over time from like simple chains to complex chains to then

4:11Why agent UX and planning remain unsolved

4:11these kind of like autonomous agents to now something maybe in the middle of like complex state machines or graphs or something. And so it's really that upper layer, which is like the common ways to put things together that I think we've seen the most rapid kind of like churn. What do you think is still missing from really getting to performant agents? There's a number of companies that have been started recently that are really focused on sort of the agentic world and pushing that whole thread in certain types of automation forward. What do you view as the big components that you all don't have or that maybe the industry more generally doesn't have that still needs to come into place to help drive those things

4:43ahead? Yeah, that's a really good question. I think there's a few things. One, I think like figuring out the right UX for a lot of these things is still an open question in my mind. And, you know, that's not necessarily something we can help with. I think there's a lot of exploration that applications need to do to figure out how to, you know, communicate what these agents are good at and bad at to end users and expose ways to maybe let them course correct and see what's going on. And so, you know, I think we try to emphasize a lot of this observability of intermediate steps and even correcting intermediate steps. But there's a lot of experimentation around UX that I think needs to happen. Another big part, I think, is basically the planning ability of the underlying

5:27LLMs. I think that's probably the biggest, I think when we see people building agents that work right now, it's often breaking it down into a bunch of smaller components and kind of like imparting their domain knowledge about how information should flow through these components. Because I think the LLMs by themselves still aren't able to reason fully about how that should happen. And I think we see a few kind of like, a lot of research is actually around this, I would say, in the academic space. Specifically, I think there are two different types of research papers around agents that we see. We see some around like planning for agents. So there's a bunch of papers that do kind of like an explicit planning step up front.

6:09And then there are other research papers that do a bunch around reflection. So like after it, after an agent does something, is this actually right? How can I kind of like, you know, improve upon that? And I think both of those are basically trying to get around the shortcomings of LLMs in that in theory, they should do that automatically, right? Like you shouldn't have to ask an LLM to plan or to think about whether what it's done is correct. It should know to do that, and then it can kind of like run in a cycle. But we see a lot of shortcomings there. And so I think planning the ability of LLMs is a big one, and that'll get better over time. The last one is maybe a little bit more vague, but I think even just as builders, we're still figuring out the right ways how to make all these

6:49things work. What's the right information flow between all the different nodes in order to get those nodes, which are typically an LLM call, to work? Do you want to do few-shot prompting? Do you want to fine-tune models? Do you want to just work on improving the instructions and the prompt? And so I think there's a lot of how do you test those nodes? That's a big thing as well. How do you get confidence in your LLM systems and LLM agents? And so I think there's a lot of workflow around that to kind of like be discovered and figured out. One thing that's sort of come up repeatedly relative to agents has just been like memory. And so I wasn't sure how you think about memory and implementing that and what that should look like.

7:29Two kinds of agent memory explained

7:29And because it seems like there's a few different notions that people have been putting forward. And I think it's super interesting. So I was just curious about your thinking on that. I also think it's super interesting. I have a few thoughts here. So I think there's maybe two types of memory and they're related, but I'll draw some distinction between kind of like system level procedural memory and then like personalization type memory. So system level memory, I mean more like what's the right way to use a tool? What's the right way to accomplish this objective independent of who exactly the person is and how I'm different than Sarah or something like that. And then for the personalization bit, I think it's like, okay, you know, Harrison likes soccer

8:11and he likes basketball. And I should remember that when he asked questions. And so I think there's maybe slightly different ways that we see teams thinking about both of these. So on the procedural side, I think the main thing that we see people doing and that we think is pretty effective is few-shot prompting and maybe fine-tuning for how to use tools, because that's basically what it comes down to. What's the right way to use tools? What's the right way to plan? And we see few-shot examples being really, really impactful for that. And so that's something where, and so I think there's this really interesting data flywheel of like monitoring your application, gathering good examples, and then plugging those

8:52back into your application in the form of few shot examples that we're pushing really heavily with Lang Smith right now. And then the other side of it is just like personalization level memory. And I think there's a few different ways to do this. Like I think OpenAI implemented it in their chat GPT, where in the way I think it does it under the hood is it basically has functions that it can call to say like, remember this fact or delete this fact. And so that's a really interesting like active loop that the agent is engaging in where it explicitly decides what it wants to remember, what it doesn't want to to remember i also think one thing that i'm bullish on is a more kind of like uh passive background uh process that kind of looks at conversations and almost like extracts

9:35insights um and then you can use those insights in kind of like future conversations and i think there's pros and cons to each and i think it speaks to the memory in general, I feel is like a field that's just like super, super nascent. Like I actually am underwhelmed at the amount of like really interesting stuff that's going on there. And so I think, you know, a bunch of different approaches, no kind of like overwhelmingly best solution. Has the sophistication shape type of application that you see people building with Langchain or just generally in the ecosystem dramatically changed over the last few months? I do think that there are more examples, kind of as Elad mentioned, of agentic applications that are much more productive and more sophisticated, like multi-step RAG systems with much more useful ranking.

10:24Are sophisticated multi-step apps actually new?

10:24Like, does that match with the patterns you're seeing? Or like, what are you seeing that excites you the most that you think is most useful? That does generally match. I think Langchain from the beginning has always been focused on those types of applications. And not only the open source, but also Langsmith, the platform. So I think, you know, a lot of the emphasis that we put into like the testing and the observability is really focused on these multi-step things. We've always been focused on those. Probably it's generally true in the market that there's been more of a trend towards those. But from our perspective, we've always been focused on those. And so I think that hasn't been as dramatic.

10:58I think there has been interesting things within that that have emerged. Just calling out a few things. Within RAG, I think we've seen really interesting and advanced query analysis start to come into play. So, you know, you're not just passing the user question directly to an embedding model. You're maybe doing some analysis on it to figure out which retriever should I send it to? Or like, what is the bit that I should search? Is there kind of like a explicit metadata filter? So some, and then, so now retrieval is like a multi-step process and more there. And it's specifically around query analysis. Few-shot prompting and that whole data flywheel, I think we're starting to see come into play more on the agent side. I kind of alluded to this

11:39Chains, state machines and the AutoGPT lesson

11:39earlier, but I think, you know, the way that we've kind of thought about things is there's kind of like chains, which are sequential steps. You're going to do this and then you're going to do this and then you're going to do this and you're always going to do those in the exact sequence. And then, you know, last March or April or whenever, AutoGPT came out and it was like, we're literally just going to run this in a for loop and it's going to be, you know, this autonomous agent. And I think the things that we see making it into production and informed a lot of the development of laying graph is something in the middle where it's like this controlled state machine type thing. And so we've seen a lot of that come out recently. And so I'd

12:17maybe call out that as like one thing that we've really updated a lot of our beliefs on over the past few months. Yeah, I think a combination of that and tree search and just like trying to be efficient with like your sampling at every step has shown like a lot of really interesting, effective applications recently. And I think the like cognition as one example of like a surprisingly amazing agent has come out. Like where else do you think agentic applications will begin to work or that you've already seen? I think on the customer support side, that's a pretty obvious use case. I think Sierra, you know, has emerged there and is doing is doing quite well there. I think, yeah, the cognition demo was very impressive.

12:59Coding and customer support as agent winners

12:59I think they did a lot of things right. I think they really nailed a really interesting UX. And that was maybe one of the things that I was most excited about. And then obviously it seems to work very well. And so I don't know exactly what they're doing under the hood. But those type like coding problems in general, we see a lot of people working on. I think there's a really nice feedback loop that you can get by just like executing the code and seeing if it works. And, you know, as well as the fact that the people building it are developers and so they can test it. Coding, customer support. There's some interesting stuff around like recommendation chatbots almost. So I'd draw a distinction between that and customer support, where with

13:43customer support, you're maybe trying to explicitly kind of like resolve a ticket or something like that. And the recommendation bit is a bit more focused on like a user's preferences and what they like. And I think we've seen a few things emerge there. But I'd say customer support and coding are the two. Klarna as well, you know, they came out and had a pretty good release. LLM models, right, whether it's a, you know, self-hosted, like dedicated inference, you know, instance for them, or if it's an actual API provider. But for any given application, take your prompts and go from, you know, Anthropic to Mistral to OpenAI to something else. In reality, it feels like, you know, the way an application

14:46Why switching between model providers is hard

14:46response is probably going to be sensitive to the fact that these LLMs are actually going to predict differently. Like, what do you think about this? Can you switch? Is that a real pattern? It's not as easy as it seems like it should be. And I think the main thing is that the prompts still need to be different for each model. I do think the prompts will probably start to converge in the sense that if you think the models are getting more and more intelligent, then hopefully these small idiosyncrasies don't matter as much. And as more and more model providers start supporting the same things, then that will make it easier. And what I mean by that is so many prompts for Open, you know, the leading and most used one, use function

15:29calling. And, you know, up until some period ago, like no other models did. And so you just like couldn't use those prompts at all. But now like Mistral has function calling and Google has function calling. And so I think they're a little bit more transferable there. What else is on that list? There's function calling, there's visual input. Like what else is going to differentiate these model APIs? Context windows one as well. So I think this gets to like, yeah, what's the right context that you can be passing? If it's longer, you know, if that changes, then that changes, that doesn't, like that changes the whole architecture of your application. Modalities one. Prompt injection for safety. Yeah, I think that's interesting. I think that's a real enterprise

16:14concern. I think a lot of the agents are still just figuring out how to make agents work. This is a different axis almost, but to the point around like switching models, I do think we see a desire for this, especially when you start going to scale. So I think it's like make something work with GPT-4, but then, okay, you're rolling it out. Are you really, is that like, you know, are you really going to eat that much cost with GPT-4? Can you use GPT-3.5? Do you want to fine tune? And so I think that's that like that transition is where we really start to see people thinking about switching models. There's definitely some switching models at the beginning, like if you just want to play around with different models and see their capabilities.

16:53But I think the most pressing need to switch models happens when you go from prototype to scale. Cost and latency would be differentiators there as well. One thing you mentioned that I thought was really interesting is just context windows. And obviously, Gemini launched with a million token context window. And I was just curious how you think about context window versus RAG versus other aspects of the model and how all those things tie together. And once we get to very long context windows and the tens of millions of tokens, does that really shift things radically? Or how does that change functionality? And so I was just curious, since you've thought about how all these things piece together, I was just curious how you think about those different

17:32Context windows versus RAG and long documents

17:32factors and what they mean. Very good question that a lot of people are thinking about who are a lot smarter than me. I think, I mean, a few thoughts. I think like longer context windows definitely make like single shot things much more realistic. Like extraction of elements in a long PDF, you can do that one shot. RAG over a single long PDF or like five long PDFs. Okay, cool. You can do that. You can do that one shot. There are, I think there are definitely things at scale that don't fit into a single context window. There are also things where it requires iterations. You need to decide what to do, interact with the environment, get that back. So this whole idea of chaining and agents, that's less around context windows and more

18:19around interacting with the environment and getting feedback. And so I don't think that's going anywhere. I think with respects to RAG in particular, because I think that's going anywhere. I think with respects to RAG in particular, because I think that's where it often comes up, like, you know, did this kill RAG? I think there's a few things. Actually, just today, one of our team members, Lance Martin, there's that, like, everyone's doing the needle in the haystack thing. And now all these models are like green across the board for whatever reason. They've all figured it out. But I think like that actually really doesn't reflect a lot of RAG use cases, in my opinion, because the needle in the haystack is like, okay, given

18:50this long context, can I find a single information point? But oftentimes RAG is about seeing multiple information points and then reasoning over them. And so I think the benchmark he released is exactly that. As you increase the number of needles, performance goes down, as you might expect. And then also when you ask it to reason rather than just retrieve, the performance drops as well. And so I think there's more work to be done there. And then I think another thing is just around the ingestion for RAG in the indexing process. A lot of attention has been paid to text splitting and chunking and all of that. And I don't know exactly how that will change. Like, will you still do that, but you now just

19:31retrieve the whole document? Like we have a concept in link chain of like a parent document retriever, which basically creates multiple vectors for each document. So maybe you just do that. Maybe you still, maybe you chunk it up into larger chunks and just retrieve those larger chunks. Maybe use a traditional search engine like Elasticsearch or something. I'm not sure. That's probably the place I have the least confidence in. The one other area that I see a lot of people talking about and I see fewer people actually doing is fine-tuning. And to some extent, I think that's because with fine-tunes, you lose generalizability. And so people just start focusing on prompt engineering or other ways to effectively get the same performance without the actual fine-tune.

20:09Why few-shot examples beat fine-tuning today

20:09But it's something that feels very awkward on and people talk about it a lot and people talk about doing it a lot. You probably have a great perspective since you see so many different types of customers. Are you seeing a lot of fine-tuning happening in the wild? And if so, are there specific common applications or use cases for it? We see people experimenting with it. I think the only real place where they're doing it is when they've reached really critical scale, which I still don't think is that many applications to date. I think there's a lot of difficulties with it. One's gathering the data set for it. And so I think a lot of the things we have in LingSmith tackle a lot of these issues,

20:44but gathering the data set for it. So having I think a lot of the things we have in LingSmith tackle a lot of these issues, but like gathering the data set for it. So like having that data visibility and starting to curate that data set, evaluating the fine-tuned model. So like evaluation and testing is a huge pain point there that we're trying to tackle in a few ways. The third is just like, yeah, back to this point of people are still just like experimenting so rapidly. It's much harder to change a fine-tuned model than it is to a prompt, or even change few shot examples. And so I think we're seeing more and more people use few shot examples, but not a ton graduating to the fine tuning, just because, yeah, I think much harder to just like iterate quickly on.

21:21In terms of other major changes in the landscape, it's been a big year. The first commit to Langchain, I think was in October of 22, which is like when I launched Conviction as a fund as well. At that time, we didn't have Lama2, we didn't have Mistral. There were not nearly as many open source models with what people would consider to be more useful reasoning ability. Has that changed in terms of like what you see application developers do with link chain? Gemini too. Oh, and Gemini, yeah. Fun story about that. The original models that we launched with OpenAI actually deprecated like a month ago. So the like actual original link chain, you can't run because the models don't exist anymore. But yeah, like, there's, I think we see increasingly interest in open source,

22:20but the reasoning abilities are still just like lagging behind cloud three or GPT-4. And I think like for a lot of the applications that, it probably depends on the types of applications that you're building, but a lot of the applications that LinkedIn is focused on with this kind of like reasoning aspect, those are just so crucial. And I don't think we see super compelling, I still don't think we see super compelling reasoning abilities in the open source models. And maybe that's one of my hot takes. But I think for a lot of the lane chain apps, the open source models maybe don't live up to a lot of kind of like the Twitter hype or Twitter excitement, at least not yet. Zooming out, like you have a really broad view.

23:00Application layer and memory as opportunities

23:00Like, what do you feel like that no one is working on that's going to enable better applications that should be? I think the most exciting stuff is at the application and UX layer right now. I think that's where the most exciting stuff is there. One of the, I don't know if this is, this is maybe, this isn't more the capabilities side-ish, but like memory, I think is super interesting, especially like personalized long-term memory. Um, I don't know if, I don't know if it's necessarily tooling so much that needs to be built there as it's just like an application in a UX that's really focused on that. Um, and, and you know, if I, if I wasn't doing link chain, if I was starting a company right now, I'd probably start something at the application layer.

23:41And it would probably be something that really takes advantage of like long-term memory. I guess at the high level similarly is there anything that you view as like a major prediction or things that will change over the next year that nobody's really paying as much attention to? Memory is a big interest of ours and so I hope that we'll have some kind of like breakthroughs there. I think a lot of the specifically around yeah learning from interactions incorporating that back in at a user level. In a similar vein, also this type of more like system level memory, I think is really interesting and building up, building towards this idea of almost like continual learning. So there's, you know, like, can you learn from your interactions? And

24:20you can do that in a variety of different ways. This may just be where we sit in the ecosystem, but one exciting and probably under-talked about way is this just idea of building up few-shot example data sets and really using those. I think it's much faster and cheaper than fine-tuning models. It's easier to do than trying to programmatically change the prompt in some way. That's still kind of like a bit of an art. And so, yeah, continual, towards continual learning with few shot examples is maybe one like really interesting area that we're excited about. Can you help our listeners like just imagine like a little bit more viscerally, like what type of application experience that would enable like, you know, a consumer application or a business application of what that type of application experience that would enable like, you know, a consumer application or a

25:05Continuous learning and DSPy-style optimization

25:05business application of what that type of continuous learning would allow you to do? Yeah, absolutely. I think at a high level, it would basically allow the application to automatically get better over time. And it could get better in the sense that it's just more accurate. So, you know, it's it maybe, you know, it first does a mistake, you then like tell it that it made a mistake, and it automatically kind of like incorporates that either as a few shot example or update to a prompt, but it starts learning from its mistakes and its successes as well, right? There's a really cool project called DSPY, or DSPY, I don't know how to pronounce it, but it's out of Stanford. I say DISPY. Oh, no, there's three ways now. I say the OSPA. No, I'm just kidding.

25:47So and I think that actually tackles like I actually see a lot of similarities between that and laying chain laying Smith in some way. And I think it's all towards this idea of like so so so DSPY or DISP or whatever. It's basically this idea of like optimization. You have kind of like inputs, outputs. You then have your application, which they similarly think is as like multiple steps. And you basically optimize your application through a variety of different ways. The main one of which I would say is probably few shot examples, although we'll probably do a webinar with Omar and he can correct me if I'm wrong. And I think the idea of like continual learning is basically doing that optimization, but in an online manner where you don't have like ground truth necessarily, but you get feedback from the

26:34environment, thumbs up, thumbs down if things are good. And so I think, yeah, that kind of like optimization loop, whether offline or online is really, really exciting. And I think a similar thing could maybe, I think you can think of like personalization also as like what this would look like to end users and maybe like consumer facing apps. So you start with like a generic application that does the same thing for everyone, but then it maybe learns to search the web differently for me and Elad or something like that. And so I think that's like concretely how it could manifest. Cool. Thanks so much for doing this. It's obviously a pleasure to have you on. No, thank you guys. Good to see you.

27:12Find us on Twitter at NoPriorsPod. Subscribe to our YouTube channel if you want to see our faces. Follow the show on Apple Podcasts, Spotify, or wherever you listen. That way you get a new episode every week. And sign up for emails or find transcripts for every episode at no-priors.com.

Have a recording of your own? Paste a link or upload it.

WhipScribe sends back a timestamped transcript, like the one on this page.

Every recording starts with a free preview. Full transcripts come in packs from $4 for 300 minutes. Uploads up to 10 hours or 5 GB.

▸More from No Priors: Artificial Intelligence | Technology | Startups

No Priors: Artificial Intelligence | Technology | Startups cover art
The argument for humanoid AI robots with Brett Adcock from Figure2024-04-04 · 38 min
No Priors: Artificial Intelligence | Technology | Startups cover art
Speed will win the AI computing battle with Tuhin Srivastava from Baseten2024-03-21 · 38 min
No Priors: Artificial Intelligence | Technology | Startups cover art
Hyperscaler strategy in AI, the application landscape heats up, and what we know now about agents with Sarah and Elad2024-04-11 · 26 min
No Priors: Artificial Intelligence | Technology | Startups cover art
Designing the Future: Dylan Field on AI, Collaboration, and Independence2024-03-14 · 36 min
No Priors: Artificial Intelligence | Technology | Startups cover art
The Future of AI Artistry with Suhail Doshi from Playground AI2024-04-18 · 24 min
No Priors: Artificial Intelligence | Technology | Startups cover art
Big tech earnings and the current AI debates, with Sarah Guo and Elad Gil2024-03-07 · 42 min
New No Priors: Artificial Intelligence | Technology | Startups transcripts by email
One email per new episode, unsubscribe in every message. Not shared with the publisher.