Latest / The Every Podcast / How to Win With Prompt Engineering - Ep. 38 with Jared Zoneraich
Transcript
- 0:00I really don't like these research papers about prompting.
- 0:02People love sharing them, oh, this research paper came out of this new prompting strategy.
- 0:06Prompting doesn't feel like that sort of science.
- 0:09It's more of, I'm trying a bunch of stuff, and as long as I have a good data set and a good framework to iterate and see if it worked, that's what I should be focusing on.
- 0:17What's the gnarliest prompt you've run into?
- 0:19I'm going to be honest, it's the ChatGPT or Anthropic System prompts.
- 0:23Those are bad.
- 0:24Wow, hot take.
- 0:25Wow.
- 0:26You're not going to build defensibility through machine learning for most companies.
- 0:31You're going to win by working with the domain experts who can write down that problem, as we were talking about earlier, who could define the specs of what you're solving.
- 0:38The best prompt engineer is create it as a black box and say, the LM is getting more complicated, not less.
- 0:44Let's not think about how it works.
- 0:45All I want to think about is how do I map the inputs to the outputs I want?
- 0:48And if you're not getting the outputs you want, that's a skill issue.
- 1:05Jared, welcome to the show.
- 1:06Thanks for having me.
- 1:08So for people who don't know, you are the co-founder and CEO of PromptLayer.
- 1:12And how do you describe PromptLayer these days?
- 1:14Yeah, we are a prompt engineering platform.
- 1:17We came out about a year ago, a year and a half ago, actually.
- 1:20Whenever ChattyPT came out, not too long ago.
- 1:21I remember that.
- 1:25It was an internal tool originally.
- 1:26We just put it on Twitter and people liked it.
- 1:28And we're like, maybe we'll do this.
- 1:31Kind of like early Slack vibes a little bit.
- 1:34Yeah, exactly.
- 1:36Exactly.
- 1:37So I guess like you've been around for a year and a half.
- 1:39So the prompt engineer is not dead yet.
- 1:41Have reports of the death of the prompt engineer been exaggerated or where are we in the timeline?
- 1:46I think so.
- 1:47I think so.
- 1:48This is a common question we hear a lot.
- 1:51Is the prompt engineering going to be automated?
- 1:54What's going to happen here?
- 1:55I'll tell you my take on it.
- 1:59So we're focused on building the prompt engineering workflow.
- 2:02How do you iterate on these things?
- 2:04How do you make the source code of the LLM application better?
- 2:07There's three primitives we see here.
- 2:09The prompt, the eval, and the dataset.
- 2:14You can automate the prompt, but you still have to build the eval dataset.
- 2:17You can automate the dataset.
- 2:18You need the eval prompt.
- 2:20You can take out one of these elements from the triangle.
- 2:23But at the end of the day, our core...
- 2:27thesis, our core theory is that prompt engineering is just about putting domain knowledge into your LLM system.
- 2:34And whether you have to say please and thank you to the AI, that'll probably go away.
- 2:39But you still need to iterate on this core source code, we can call it.
- 2:43Okay, so you're basically like, probably you're not going to have to be like, hey, like I'll tip you $5,000.
- 2:48And like, in a couple years, like that thing is going to go away.
- 2:51But like the sort of core primitives that you're talking about.
- 2:53So the prompt, the eval and the data set, can you make that concrete for me?
- 2:57Like, what do you mean by those things?
- 2:58Give me a specific example.
- 2:59Yeah, yeah, let's talk about an example.
- 3:01So let's say I'm building a AI math tutor.
- 3:07Yeah.
- 3:11Pre-AI, there's a lot of math tutors you can go to.
- 3:13Some are good, some are bad.
- 3:15There's almost infinite solutions to this problem.
- 3:18So there's never going to be one prompt that rules at all where you say, build an AI math tutor and it makes you the only solution.
- 3:26You can imagine 30 companies competing for this.
- 3:30So when I was talking about those primitives, when you're building this, you have the prompt or multiple prompts on how you respond to each question the student asks.
- 3:40You have the ways to test that and the sample data you're testing that on.
- 3:44But all those are a different, like kind of a more technical way to say you have the actual knowledge the math tutor has.
- 3:54That's interesting.
- 3:55You're making me think about like...
- 4:00I love the kind of like, there's no one prompt to roll them all.
- 4:03There's no one data set to roll them all.
- 4:05And even in a particular domain.
- 4:07And the thing it made me think of is, do you know the philosopher Leibniz?
- 4:14I'm sorry to take it to Leibniz.
- 4:16No.
- 4:16No.
- 4:17Okay.
- 4:18So he's like around Newton's time.
- 4:20He also invented calculus.
- 4:23They fought over that.
- 4:24But one of the things that Leibniz was really into is the idea of creating a language where you could only say true things.
- 4:35So the syntax of the language made it so that you could only say factual true things.
- 4:39And so if people had a difference of opinion,
- 4:42They would just say, write it in the language and then calculate and get the answer.
- 4:47Just like if you have a question about how far is the cannonball going to travel, you can use calculus to figure that out.
- 4:53Same thing for statements of fact or statements about the world with this hypothetical language.
- 4:58And obviously he never figured it out.
- 5:00Yeah.
- 5:02And the reason is because when you try to produce something that's so all-encompassing or totalizing of truth, it gets really brittle, it gets really hard.
- 5:14A lot of early AI attempts were sort of like that.
- 5:17And I think there's a thinking error in a lot of what people think of when they think of, okay, what's the future of AI?
- 5:23Like, oh, I'm just going to tell it to be a math tutor.
- 5:24It's going to be the best possible math tutor.
- 5:26It's the same kind of thing.
- 5:27It's like, it's going to be... And it's like...
- 5:30what that means is incredibly different in many different contexts.
- 5:35And so there's a lot of room for many different attempts at finding the truth or representing the truth of what is best in any given scenario.
- 5:46And I think you're getting at that with the answer of like, yeah, we're going to have to do prompt engineering because there's going to be 30 different ways to make a good math tutor and who knows which one's going to be the right one for which person.
- 5:59Yeah.
- 6:00No, I mean, forget about the prompt.
- 6:02In this world of we have the best AGI possible, I like that reference a lot because it's the left.
- 6:09How do you even define the problem to solve?
- 6:11That's the hard part.
- 6:12Let's assume you had...
- 6:14Millions of dollars.
- 6:15You just got a big VC round to start a new company.
- 6:19And what would you build knowing AGI is going to come?
- 6:23The hard part is the problem.
- 6:25You would start working on what problem are you going to solve?
- 6:27Because even with the best tool, you need to define the exact scope of the problem.
- 6:32And that's kind of the irreducible part.
- 6:35That's really interesting.
- 6:35Yeah.
- 6:36And I think we're so used to building things being expensive that finding the problem is like this invisible thing that like everyone has.
- 6:45Like, I don't know if this is your first company.
- 6:47I assume it's not like every is not my first company.
- 6:49You spend like freaking years trying to figure out what to solve and the building is expensive and hard, but like...
- 6:56finding the right problem is quite a bit harder.
- 6:58And I guess you could sort of like posit, OK, the AGI is going to figure out the problem for you to solve.
- 7:05But I don't know.
- 7:07That requires a lot of real world interaction and
- 7:12creativity and a viewpoint.
- 7:14Like there's, I don't know, that feels quite a bit more complicated than building software.
- 7:19Well, this is my first company, actually.
- 7:21Oh, it is?
- 7:21Oh, congratulations.
- 7:23You're doing great.
- 7:24We had a slight product before this that probably was, you know, it was like our pivot.
- 7:29But yeah, I like this simple example.
- 7:32I like to think about if I wanted to build an AI secretary that booked me flights and I have a conference in Japan
- 7:40there's a lot of different possible solutions.
- 7:42Do I want an aisle seat?
- 7:43Do I want a window seat?
- 7:44Do I rather a non-stop over a business class with a stop?
- 7:49And these are the differences that mean there's no one solution.
- 7:53These are the, I love the word irreducible here, and I stole it from a,
- 7:59if like Stephen Wolfram wrote a few articles on ChatGPT.
- 8:02Like computational irreducibility?
- 8:04Yeah, yeah.
- 8:05I love that.
- 8:05I love that theory.
- 8:06And I think the irreducible part.
- 8:08Can you define that for people who are listening and haven't heard that before?
- 8:11Totally.
- 8:11So, and I'm not going to do as good of a job at defining it.
- 8:15So I encourage everyone to look it up and read the original.
- 8:17Use ChatGPT to look it up if you're listening to this or watching this.
- 8:23So I would define computational irreducibility as there's...
- 8:29when you're solving a problem, you can collapse a lot of parts and speed up a lot of parts of solving the problem.
- 8:37But there's one part that you'll never be able to collapse.
- 8:40I like to think of when in school, in math class, you're, what was it, factoring, right?
- 8:46When you're kind of taking things out into the parentheses.
- 8:50But there's always that,
- 8:51irreducible part that you can't factorize or you can't simplify.
- 8:55And in this case, we're saying if you have an amazing AGI that can solve any problem, the hard part is what do you even tell it to solve?
- 9:04Yeah.
- 9:05I think another way to think about computational irreducibility is if you imagine the world to be like a big computer or the universe to be a big computer, there are certain operations that like you actually have to run the computer to find out what happens.
- 9:18You have to run out the reality of the system in order to know.
- 9:22You don't have calculus to be like, okay, I know where it's going to be in 10 steps because the universe doesn't know yet.
- 9:27And I think that's super cool.
- 9:29Yeah, halting problem-esque.
- 9:31Yeah.
- 9:31Okay, so you kind of have this like pluralistic framework of the future of AI.
- 9:35How did you come to that?
- 9:36Well, it depends.
- 9:37I guess what are you referring to as pluralistic?
- 9:39Like multiple models or multiple stakeholders?
- 9:43Multiple approaches to any given problem.
- 9:45Yeah, I think it just...
- 9:49Just observation, honestly, I'm a hacker.
- 9:51That's my background.
- 9:52I'm not necessarily a researcher and not necessarily, to be honest, and this might be a controversial thing, AGI kind of doesn't interest me, whether AI is gonna take over.
- 10:04I love that.
- 10:04You're the first person to say that on this show.
- 10:07Hot take alert.
- 10:10It is.
- 10:10And I get into, you know, we have a lot of debates in it.
- 10:13We actually, when we interview someone, we usually take them to lunch and ask them what they think about AGI.
- 10:18Just curiously, if you'd get their takes.
- 10:20What's the bad response?
- 10:22There is no bad response.
- 10:23There's no bad response.
- 10:24So why do you ask it?
- 10:25Curious what they think.
- 10:28We have a whole different lot of different ideas.
- 10:31But
- 10:34is AI going to take over the world?
- 10:36Is it going to kill us all?
- 10:38How do you build with it?
- 10:40I think it's just a really cool technology.
- 10:42And we are, as a hacker, I am like, my mental model of AI is not
- 10:50the reasoning part as much as it solved language to data and data to language.
- 10:55And how much does that open for us?
- 10:58So that's how I get here.
- 11:00It's just, it's a tool in the toolbox.
- 11:02We have a lot of tools in the toolbox.
- 11:04And what can you solve in the same way that like my non-tech friends will ask me, why does Facebook have engineers?
- 11:11The site works for me, right?
- 11:12Why do you have to hire more engineers?
- 11:14I think it's the same thing.
- 11:15I look at AI the same way.
- 11:17You're going to always be iterating.
- 11:18There's so many degrees of flexibility in these things.
- 11:21Yeah.
- 11:22You said earlier before we started recording that one of the things you're kind of excited about or thinking about a lot is the non-technical prompt engineer.
- 11:31Can you just open it up for me?
- 11:33Like, what does that mean?
- 11:34And how did you start knowing that that was a thing you wanted to pay attention to?
- 11:39Yeah, yeah.
- 11:41So when we launched PromLayer, as I was saying, it was kind of an internal tool we built for ourselves and people started liking it.
- 11:49So we didn't have this idea when we started.
- 11:51But I'll tell you, there was kind of a light bulb moment I look back on.
- 11:55It's this team parent lab.
- 11:56They're building a very cool app.
- 11:57It's basically an AI parenting coach to help you be a better parent.
- 12:03We got on a call with them, just feedback on our product about a year ago and asked them.
- 12:09How do you like PromptLayer?
- 12:10What can you improve?
- 12:11But the most interesting thing is someone on the call, one of their prompt engineers was a teacher, 15 years as a teacher, not technical at all.
- 12:20And we're like, what are you doing?
- 12:22Why are you using PromptLayer?
- 12:23What's going on?
- 12:24And she had explained to us that the engineers had set it up for her
- 12:28She would go onto PromptLayer, edit the prompts, and then pull up the app on her phone, and it would pull down the latest version of the prompt.
- 12:35And from there, kind of the gears started turning.
- 12:37And where we're at now is the core thesis of what we're building.
- 12:41And PromptLayer itself is that you're not going to win in the age of Gen AI by hiring the best ML engineers.
- 12:48You're not going to build defensibility through machine learning.
- 12:52for most companies, you're going to win by working with the domain experts who can write down that problem, as we were talking about earlier, who could define the specs of what you're solving.
- 13:01And in cases like building AI teachers, AI therapists, AI doctors, lawyers, I'm an engineer.
- 13:11I don't know how a therapist should respond to someone who's depressed, right?
- 13:14Like, I'm not the right person to be in the driver's seat of the
- 13:17building that.
- 13:18Does that make sense?
- 13:19Yeah, I think it makes sense.
- 13:20Can you give me like a concrete example of like what this teacher was prompting?
- 13:23Like, I don't really understand like what she's going in to change and then what changes she's like able to see in the app.
- 13:30Yeah.
- 13:30So she's, when I say she's prompting, she's editing the prompt that powers the app.
- 13:36So maybe they're opening the app and it's
- 13:44a user could be saying, how do I discipline my child?
- 13:47The AI needs to respond very specifically to that.
- 13:49And maybe it was saying, I'm a language model trained by OpenAI.
- 13:53I don't support any discipline.
- 13:55And then she needs to go into it and say, okay, in that use case, let me make sure the AI responds.
- 14:01I don't have children, so maybe I'm not the best one to say how it should respond.
- 14:04But she makes it respond in the right way.
- 14:07Smack them.
- 14:07Yeah, hit them with a belt.
- 14:10And...
- 14:11You don't want to ruin all the other cases, though, where they're asking about what I should feed them.
- 14:16You shouldn't also hit them with the belt.
- 14:19So it's kind of that systematic process.
- 14:22And it's just an iteration.
- 14:23We really believe prompt engineering is just how do you close the feedback loop?
- 14:28How do you iterate as quick as possible?
- 14:30Yeah.
- 14:32Okay.
- 14:32Let me just play devil's advocate for a second.
- 14:34So like, I think, I think I agree with you.
- 14:37I really, I really liked this and it resonates a lot with some of the things that we've been building internally at every, which I'll tell you about in a second.
- 14:42But, um,
- 14:44I think a like a GI pill response would be like, sure, you can have like the teacher do that.
- 14:49Or you can just like put the AI in the loop and have it measure like, you know, parents who say thumbs up or thumbs down on, you know, a response.
- 14:59And then it can just try new things until it like learns what responses to give.
- 15:06And so you don't really even need like human prompt engineers anymore.
- 15:10Like what do you say to that?
- 15:11Yeah.
- 15:12So let's switch gears to AI therapy, because I think that's an even better example.
- 15:17Great.
- 15:18Do you want the therapist that just gives the responses that you want to hear and people are giving thumbs up to?
- 15:24Maybe that's not the best metric.
- 15:27Maybe there's a better metric that you can find.
- 15:28Maybe the metric is how long people, maybe there's an exit survey or something like that.
- 15:33Yeah.
- 15:33It's like long-term well-being or whatever, something like that.
- 15:37Yeah.
- 15:37I think the data-driven approaches need to be used as well.
- 15:40But
- 15:42At the end of the day, I think you're going to reach a local minimum.
- 15:45You're not going to, when there's 20 other teams working on this exact problem and you're facing off in the market against them, the differentiation is everyone's going to do this data-driven approach.
- 15:56The differentiation is what, going back again, what is that problem you can write?
- 16:02What is that domain expertise you can bake into the application?
- 16:06And as you have more and more users using it, you have them using it different ways.
- 16:10What edge cases can you find?
- 16:12What is the trade-off you're willing to take between latency and quality?
- 16:17And there's no one answer to that.
- 16:19Every company has to decide that themselves.
- 16:21And that's the job that prompts engineering, in my opinion.
- 16:24Yeah, I think people forget with the data-driven stuff that having a perspective is really important.
- 16:33And...
- 16:34the way that you're collecting data and the way that you're doing the loop of like, you know, response to like, you know, changing the prompt or whatever, like, yeah,
- 16:44that's not neutral.
- 16:45Like that embodies a perspective on the world, even if it's like, um, implicit or you haven't thought about it too much and having a different loop that embodies a different perspective will get much different results.
- 16:58Um, and we'll create behaviors in people and all that kind of, that, that are just different.
- 17:02And what's really interesting is if you're a human with domain expert expertise, like
- 17:11You've developed a perspective over many, many thousands and thousands of data gathering things.
- 17:18loops that maybe you could get with an AI, but it would take a while.
- 17:24We're back to the computational irreducibility thing.
- 17:26You can't just be a super intelligent sitting on a server and theorizing about what might make people react well in a therapy situation.
- 17:36You probably have to try it.
- 17:37There's maybe some weirdness there where if you have enough...
- 17:41simulated data.
- 17:42If you have enough data, you can simulate different things and do self-play or whatever.
- 17:46But I don't know.
- 17:46We can just put that to the side for a second.
- 17:49It's much harder to do that.
- 17:51It's much harder and it's much easier and better probably to take people who are smart and have a lot of domain expertise.
- 17:56Also, who sets up the loop, like you were saying?
- 18:01Even the supercomputer setting up the loop to learn?
- 18:04It's super intelligence all the way down, Jared.
- 18:07all right so the super intelligence all the way down it's still like you said it's still taking an opinion uh there's still the i i think it's the same i think also to go back steven wolfram also talked about this in that article of uh
- 18:26You have a computational irreducibility, and then you have the, because of that, there's not going to be one model that rules them all because there's multiple answers.
- 18:37It's irreducible how to find it.
- 18:39And because of that, there is no one way to gather data and come to the conclusion.
- 18:44And by setting up these data-driven approaches, Instagram is different than TikTok.
- 18:48They're both data-driven, but the users are different.
- 18:51How they make decisions are different.
- 18:53Totally.
- 18:54I think that's totally right.
- 18:55And so the thing that you're making me think of is this product that we have.
- 18:59And I think this product, it's a pattern that we're replicating across a lot of different products.
- 19:05So I think it actually, it's a general thing in AI and it relates to what you're doing, but it's a sort of slightly different take on the same idea, which is...
- 19:14We have this product called Spiral, and it helps you automate a lot of repetitive creative work.
- 19:19So let's say for this podcast, I'm constantly taking the podcast transcript and turning it into a tweet.
- 19:26And Claude, with a few-shot prompt, is really good at...
- 19:31If I have historical examples of podcasts that I've turned into tweets, getting me to 80% on my tweets.
- 19:37So I just throw it into Claude and...
- 19:39whatever but the prompt is like kind of hard to construct and it like you know it's just it's kind of messy to do it in clods so we built spiral
- 19:46And in Spiral, you can just create a spiral that converts podcast transcripts to tweets.
- 19:52And then you give it examples, it writes a little guidebook for itself.
- 19:55And then you have a little form where you can just paste in your podcast transcripts and it makes tweets in your voice and with your examples or whatever.
- 20:02And there's no one podcast transcript to tweet converter.
- 20:05You can make many different spirals with many different tones or voices or styles.
- 20:09And you can share it with your team, you can make them public, whatever.
- 20:13We launched that like three or four months ago.
- 20:14And I think it has that same flavor of not having one single answer to a problem and sort of there's some differentiation in having like this diversity or pluralistic like approach to like what prompt is best for a given situation.
- 20:29But one interesting difference that I'd be curious to pull apart with you is, I think in the prompt layer example, you've got a teacher who is the expert for everyone else who's using the app.
- 20:41She's the expert for the parents, more or less.
- 20:45And then in a spiral example, each user is their own expert to some degree because they're all either constructing their own prompts or taking a spiral that exists and cloning it and maybe changing it.
- 20:59It seems like there's two places to prompt engineer.
- 21:02One is to turn your users into prompt engineers without them really knowing it.
- 21:05And the other is to have domain experts that have crafted something that users are using.
- 21:12Or both.
- 21:14Or both.
- 21:14That's also, yeah, I mean, for sure.
- 21:16Like, yeah.
- 21:17I mean, there's probably a skeleton prompt that you guys are using, right?
- 21:20Yeah.
- 21:22Yeah, I guess my take on this is that at the core, what Spiral is doing, what PromptLayer is doing, what these end-user applications are doing, is taking a knowledge expert and distributing their knowledge.
- 21:36Whether it's distributing it across a workflow and across data and distributing it by writing tweets from a...
- 21:45podcast transcript, or whether it's taking someone's knowledge of parenting and distributing it to the user base of their app.
- 21:53So I actually see them as the same problem.
- 21:56And it's less about how much degrees of flexibility do I want my user to have first?
- 22:02What workflows can I provide?
- 22:06What workflows can I kind of scale on my own?
- 22:10Can I hire a team of salespeople and build a sales AI application that does what they're doing?
- 22:16Same thing, I think.
- 22:17What have you learned about the most effective ways to make good prompts?
- 22:23So you talked about the primitives of prompting data evals.
- 22:29When you think about the people who are most effective at making good prompts and improving them over time without backsliding, especially dealing with new models and all this kind of stuff, what are the characteristics of good prompting?
- 22:42Yeah, I have a really annoying answer here, which is it's just the scientific method, just trying and fixing it.
- 22:49I'll give another AGI style hot take, which is I really don't like these research papers about prompting.
- 22:57I think people love sharing them.
- 22:59Oh, this research paper came out of this new prompting strategy.
- 23:02Prompting doesn't feel like that sort of science.
- 23:05It's more of, I'm trying a bunch of stuff, and as long as I have a good data set and a good framework to iterate and see if it worked, that's what I should be focusing on.
- 23:16How can I edit my prompts in an operational way, as opposed to, how do I discover the correct prompt for me?
- 23:25And do you have a sense about why it's not that kind of science?
- 23:32That's a good question.
- 23:33Maybe it has to do with it being a language.
- 23:35I mean, listen, I took machine learning in school.
- 23:38I understand how it works under behind the scenes, but I actually think the best prompt engineers kind of treat it as a black box and say, the LM is getting more complicated, more hard to understand, not less.
- 23:50Let's not think about how it works.
- 23:51All I want to think about is how do I map the inputs to the outputs I want?
- 23:55And if you're not getting the outputs you want, that's a skill issue.
- 23:58That's not something else.
- 24:01And I think there's another degree here besides just the prompt is what is the combination of prompts you're using?
- 24:08Now you have exponentially more...
- 24:12ways to improve it?
- 24:13Are you breaking down the problems?
- 24:15We have a lot of opinions we've learned about the right architecture to use to build it with a team, but that's more about how do you actually ship a product that works in practice as opposed to these are the right ways to prompt.
- 24:31Yeah, I think that makes sense.
- 24:32I mean, if I had to guess, it's like, it's sort of the same things
- 24:42you have to define what better is, which, you know, depending on how you define better, you're going to get different results.
- 24:48And also, so it's very dependent on that.
- 24:51And then it's also dependent on the data set.
- 24:54And so like you can kind of find some hand wavy things, but like it's...
- 24:59It's so contextual that like it's probably I mean, maybe you start with some of the things that are like best practices or whatever, but you're probably just going to like discover stuff for your particular use case where group level statistics don't really apply.
- 25:12Which, you know, I love that kind of that kind of stuff.
- 25:15I'm a huge nerd for that.
- 25:17Yeah.
- 25:18And there's like, can you speak the language of a certain model family?
- 25:23Obviously, I mean, the popular ones is Claude, it's better XML, GPT, it's better Markdown.
- 25:29And those are kind of model level things that you can learn.
- 25:32But I look at it as like, what idioms does the AI understand?
- 25:37And can you speak that?
- 25:38But I think the best example here is tool calling and function calling, whereas
- 25:44Personally, I love using function calling when I can, even for things that are not functions, because implicitly, that's the language that it knows.
- 25:52And you're actually, by having the AI return or interpret a tool call, you're conveying much more information, at least in my mental model, than you would be as writing, this is the data I got back, if that makes sense.
- 26:09Yeah, I think so.
- 26:11But I don't want to let you off the hook.
- 26:12I agree that it is scientific method, but I just think that as someone who spends all their time thinking about how to help people do this, you must have some opinions on what do you see that works and how do you think about it and all that kind of stuff that goes deeper than try it and see what happens.
- 26:30Sure, sure, sure.
- 26:31Yeah, the first thing I always start with, try and see what happens, then make your iteration loop as quick as possible so you can try as much.
- 26:37Then we can go to kind of best practices that we recommend.
- 26:42The biggest one, I think, is this, we call it prompt router approach, but there's a lot of different words and it's kind of overloaded.
- 26:52So I think there's the naive approach to prompting is you just stack messages.
- 26:57So I just have one prompt that does everything and the user sends a message and I stack another one and I stack, stack, stack.
- 27:04I think the better approach is to kind of build a workflow, a DAG, a graph, and route them to the right prompt.
- 27:10Because if you can make your prompts do one thing and do one thing really well, it's going to be easier to test, easier to collaborate, and it's just going to work better.
- 27:22As you...
- 27:23try to make the prompt do more and more things.
- 27:26It's going to be more likely to fail and more likely to actually build unit tests on it.
- 27:31So it's around operationalizing and then kind of structuring your prompts in this discreet way.
- 27:38Although, I'll argue with myself here a little bit, that as models get better, you'll have to do that less probably, but there's always a trade-off because...
- 27:49If you're building individual prompts to do one and only one thing, it's going to work much more of the time and have much less failure cases, but it's also going to have less degrees of flexibility.
- 28:01So you might get new user messages you're not expecting.
- 28:04And then the opposite is also true.
- 28:05If everything's one prompt, you're going to be able to answer any message the user sends, but might not always be right.
- 28:12Yeah, that's interesting.
- 28:15That makes a lot of sense.
- 28:16And it also sounds like maybe towards the beginning of the life cycle of a prompt, when it's less known what the distribution of questions you're going to get or messages from a user you're going to get, the better it is to start with a single prompt so that you can iterate more quickly and cover the whole variety of cases.
- 28:39And then as you're maturing, you're probably learning...
- 28:43okay, these are the kinds of things I typically get.
- 28:45And then you can build that directed graph of prompts.
- 28:48And then you can start to tune each individual prompt.
- 28:51Um, once, once things are a little bit more set, does that sound right?
- 28:55Totally.
- 28:56It's also a solution to jailbreaking, right?
- 28:58Uh, if each prompt does one thing, say I'm making a sales bot, uh, to issue, uh, so users can place orders and refunds and that sort of thing.
- 29:09Yeah.
- 29:09Um, I can, uh,
- 29:12make individual prompts to do a refund or to do a new sale or whatever.
- 29:18And if I route to the right prompt, if the user asks me to refund a million dollars and I'm in the sales prompt, there's no risk of it kind of breaking out.
- 29:29But then you can ask for both.
- 29:32What about best practices for evals?
- 29:34There's a lot of ways you can go here, I think.
- 29:37Yeah.
- 29:38And I have a very similar answer, which is starting easy.
- 29:41The easiest thing and the 80% case for evals is just backtest on your old data and see how it's changing.
- 29:47Because the most information-dense thing you can learn from an eval is that it changed everything.
- 29:57That's what you don't want to do.
- 29:58So what we have a lot of our users do is they just...
- 30:02create a backtest based on like, all right, our last thousand or our last 10,000 prompt responses, let's just run the new prompt using that data.
- 30:11See how much it changes.
- 30:12Maybe you want to do a cosine similarity or maybe you just want to scroll through and eyeball the diffs.
- 30:17Once you do that, then you can kind of
- 30:20get a little bit more fancy.
- 30:22And it depends on the use case.
- 30:23Again, if you have a ground truth.
- 30:25So if you can plug into thumbs up, thumbs down, you can plug into did the sale, was the sale made?
- 30:32Did the ticket close?
- 30:33That sort of thing.
- 30:35Then you can really throw some A-B testing in there and anchor it on real metrics or build an eval that gives you a real score.
- 30:44Unfortunately, if you're doing something like
- 30:48AI summarizing or summarizing calls or something like that, where there isn't a ground truth, then it gets a little more complicated.
- 30:55And what we recommend is either if you're having human graders read it, you could do that.
- 31:03Or you have your prompt engineer, you need to sit down and say, what are the heuristics when you're looking at the output yourself and trying to decide if it's real?
- 31:12And then trying to mimic each and every heuristic and build metrics based on that.
- 31:17Hmm.
- 31:18Interesting.
- 31:19And then what about data sets?
- 31:21The three primitives, like we said, you can skip one of them.
- 31:24So if you care a lot about evals, you care a lot about problems, you could just build back tests and those could be your data sets.
- 31:31But if you don't have the back test data, you're going to want to focus a lot on building ground truth data sets.
- 31:37And if you can really get that ground truth,
- 31:41then you're sailing.
- 31:41Then prompt engineering is kind of easy because it's do you get 100% or do you not?
- 31:47So data sets, I think there's a lot of room of synthetically generating them as well.
- 31:52I've done that to kind of bootstrap data sets myself.
- 31:55Yeah.
- 31:55What about situations where you don't have ground truth?
- 31:58That's just something I'm thinking about personally is like how do you eval on that?
- 32:02Yeah.
- 32:03And it's funny because I think a lot of the AI labs are like going hard only on problems that have ground truth.
- 32:09So like O1, for example, like they're doing reasoning and the reasoning chains, like they can validate the reasoning chains because it's all math problems.
- 32:18Something about that seems like kind of fishy to me.
- 32:20And it feels like important to also be able to like eval on things without ground truth.
- 32:25Like, yeah, talk about that.
- 32:27Yeah.
- 32:28Well, first of all, my O1 take is that it's just prompt engineering.
- 32:32And that's the cool part of it.
- 32:34Everything is prompt engineering.
- 32:36You heard it here first.
- 32:37I really think O1 is just a bunch of different, just feeding it into it a few times.
- 32:42And maybe they do some low-level stuff there to make it a little bit better.
- 32:45But I think the core of that innovation is prompt engineering.
- 32:49But to answer your question of...
- 32:53What if you don't have the ground truth?
- 32:56They don't eval ground truth because they don't eval problems without ground truth because you can't really do that in a generic way.
- 33:03It's kind of hard.
- 33:05That's why I don't trust these kind of eval benchmarks that people come out with.
- 33:10They're a little bit useful.
- 33:12Yeah.
- 33:14Yeah, maybe we'll talk about an example because I think it is very example-based.
- 33:17So let's go back to this transcript summaries.
- 33:20Because I was thinking about that in depth the other week.
- 33:25What I would do is if I'm building, let's say it's an email summarizer, every day it sends me a summary of all my emails.
- 33:33We're building that internally right now.
- 33:34Are you reading my mind?
- 33:37No, but that sounds good.
- 33:39It'll probably be out in a couple weeks.
- 33:41So let's talk about how you eval it.
- 33:42I'll tell you what I would do and you tell me what you're doing.
- 33:47If I was building that, I would just make something quick and then look at a few summaries and say, what do I like?
- 33:53What do I not like?
- 33:55And start to generate individual test cases based on that.
- 33:58So maybe the first test case is...
- 34:02and I'm sure you've experienced this in this case, sometimes the AI will give you a little excerpt at the bottom.
- 34:07This summary is about blah, blah, blah.
- 34:09That would be my first check.
- 34:11Does it have that excerpt?
- 34:12I don't want it to have that excerpt.
- 34:14Second check, does it use markdown?
- 34:17Maybe it's too indented.
- 34:19Does it only have one level of indents?
- 34:21And then these really simple...
- 34:23The hard part of this is understanding what your brain does when you eyeball a summary to see if it's good or not, and then breaking that down to individual heuristics.
- 34:32That's really interesting.
- 34:33So I'm not close enough to the actual engineering happening on this to know exactly the evals.
- 34:39The person building it is one of our entrepreneurs in residence, Kieran.
- 34:43And...
- 34:45I know we have an eval set for... Another component of the product is drafting.
- 34:50So I know we have an eval set for that.
- 34:52And that's basically just labeled email responses.
- 34:55So it's email responses that we wished we had gotten.
- 34:58And then it checks.
- 34:59There's a couple of different similarity scores between what actually got sent and what got drafted.
- 35:06So it's like...
- 35:07It checks to see if the prompt is generating an email that is close to the email that I actually generated or someone else in the data set actually generated.
- 35:17For the summary, email summaries, I can tell you the way that we approached it is I literally just sat down, looked at my inbox and wrote in a Google document the summary of my inbox that I wished I'd gotten.
- 35:35And that's how we started, like handwriting it.
- 35:38And then from there, you can pull out all these little principles like the summary should not be passive voice.
- 35:46It should be active voice or whatever.
- 35:49And I don't actually know if there's evals yet for that.
- 35:51But we'll have that eventually.
- 35:54In the next couple of weeks, I'm sure we'll have something.
- 35:57But yeah, it required one person, I guess me, just to write it out.
- 36:02And then from there, you can pull out principles and stuff.
- 36:06Yeah.
- 36:07It's like when you build these applications, you really want to skip the hard work, but the hard work just changes from writing the code to figuring out how it'll actually be correct or not.
- 36:22And in that case, it's like you said, you have to create the summaries and read it.
- 36:26And yeah, I'm a little skeptical of that similarity thing you were talking about.
- 36:32I mean,
- 36:34I think it's good as an approximation, but in the email, maybe, I think there's a lot of...
- 36:40I use, I mean, the superhuman command J response thing
- 36:46I click retry like six times when I'm doing that.
- 36:48I'm not trying to hate on the team.
- 36:51I'm sure they've done a great job.
- 36:53But I click retry a lot.
- 36:54And the retries are all very similar to each other, but very different if I were to send it in terms of wording.
- 37:03That's interesting.
- 37:05Yeah, it's not one similarity score.
- 37:07It's like five different ones.
- 37:08And we are eyeballing it too and using it every day.
- 37:13So that's one of the things that I think is really great, which I think goes to your point, is we're building all this stuff internally.
- 37:21We've launched three apps so far.
- 37:23We have a bunch of other ones that we're in the process of.
- 37:26And what's really cool is we're all building stuff that we want to use.
- 37:30And we're all kind of similar because everyone's a fan of every and sort of like came in from every.
- 37:36And so someone makes something and then we're all using this email summarizer.
- 37:42And so like every day there's like feedback in the channel being like, hey, like this thing didn't work or I want this or like blah, blah, blah, whatever.
- 37:49So it creates this like really...
- 37:52rich feedback loop.
- 37:54Because not only are you using it yourself, but everyone else around you is using it too.
- 37:59And I think that's sort of unique.
- 38:00I mean, there's something unique about it to every, I think right now, but I think what's really unique is just the time right now is one where
- 38:11the low-hanging fruit hasn't been picked, so you can build something for yourself.
- 38:16I assume Prompt Player, to some degree, is an internal tool, so it came out of something that you just needed.
- 38:24And we're early enough in the kind of AI wave that...
- 38:29You can still do that.
- 38:30And it's not like 15 other people have tried it over the last 10 years or whatever.
- 38:33And I think that's so special to be in a place where you can just make stuff for yourself.
- 38:38I love it so much.
- 38:40The hacker energy is back.
- 38:44We don't have to buy a fleet of cars to build a startup in the weekend anymore.
- 38:49But I actually think it also...
- 38:56is another phenomenon that's going on, which is LMs unlock a new type of kind of software you can build where, for example, one of the internal tools I have that I use all the time is a very simple natural language to SQL, specifically for our schema.
- 39:14So I have a lot of information on like, this is a request lock, whatever.
- 39:18Yeah.
- 39:20I don't know if I, maybe I would pay for a tool like that if it was really good.
- 39:23But this also might just exist in that subset of software, like people call it the single use software that you're not really going to sell to other people, but it's easy enough to make.
- 39:35It's one prompt, pretty simple.
- 39:37I mean, I could really spend months and make it really good.
- 39:40But for my use case, that's as good as I need it.
- 39:43Yeah, I love that.
- 39:44I think there's this single-use thing.
- 39:46And I think that that extends even further away from software than people realize.
- 39:50There's a lot of consternation right now about AI replacing writing or art or podcasting or whatever.
- 39:59And it certainly is lowering the cost of telling stories.
- 40:05But my experience thus far is what that actually does, rather than crowd out people who are telling professional storytellers, it allows you to tell stories about things that it used to cost too much to tell stories about.
- 40:22So a good example is just Notebook LM.
- 40:25The thing that's so compelling about that...
- 40:27is you can get an NPR-style talk show about something that NPR would never cover.
- 40:33And I think that that's so cool because there are so many stories that are happening all the time in our lives that maybe they don't deserve a Netflix special, but...
- 40:45they certainly deserve better storytelling than we have.
- 40:48And I think that's sort of the promise of these things.
- 40:51And I think that's kind of beautiful.
- 40:53Yeah.
- 40:53My friend made a, in the software side, my friend made like a website that helps you just make a button with sliders for the button radius and the color.
- 41:01And she just made that for herself.
- 41:03Nobody's ever going to spend the time to set up the server and pay for the hosting for that.
- 41:08But if you can make it with one cloud command, why not?
- 41:12But I don't know.
- 41:14I also like,
- 41:16not to get too in the clouds here a little bit, but I, I look at it as like a junk food analogy where, uh,
- 41:26So about like AI music, for example.
- 41:27I think we'll have a lot of AI music and a lot will be junk food, meaning a lot of people will consume it and will love it and it'll be great.
- 41:37But there'll still be the organic farm to table musicians where a human makes it and it's just gonna be different.
- 41:45It's gonna solve different things.
- 41:47Yeah, I definitely agree with that.
- 41:50What's the gnarliest prompt you've run into?
- 41:54um i'm gonna be honest it's the chat gpt or anthropic system prompts those are bad wow hot take yeah i mean this is actually i like this because this is uh connects to the other stuff we were talking about they don't if you're building chat gpt or claude and i encourage everyone to check out that people leak their system problems you should be able to find it with a quick google search uh
- 42:21What are they evaluating on?
- 42:23They don't have a specific use case they're evaling or tying their prompt into.
- 42:28So you see these prompts are long and just run on, I call it prompt debt.
- 42:34And it's just they're accumulating all this debt of, oh, do this.
- 42:39If they say this, don't say this.
- 42:41You know, the classic...
- 42:43the Google, make sure every historical figure is diverse, all that stuff.
- 42:47And it just, you keep adding it to your prompt.
- 42:50And I don't think that's a good prompt.
- 42:51I think that's a, you're not clear and concise with the problem you're solving.
- 42:56You're just tacking on more stuff.
- 42:58And maybe that's overfitting, in my opinion.
- 43:01Yeah.
- 43:02Well, how would you solve for that?
- 43:03Because like, they really need to build a general purpose tool that hundreds of millions of people can use.
- 43:09So like, how do you, how would you do it differently?
- 43:10Yeah.
- 43:11I don't know.
- 43:12But I think the fact that they're building a general purpose tool shows you why your prompt shouldn't look like that.
- 43:23Because you should have a better way than them to evaluate if your prompt works and then be able to trim it down.
- 43:28If...
- 43:31I don't think they should do this because this is not their business model.
- 43:34But if I started a company to build a general purpose AI tool, I would probably have different prompts for different types of thing and try to route it.
- 43:41But then you have the latency concern.
- 43:44I spoke with someone from the Snap...
- 43:47AI team.
- 43:48And I think there's, you don't hear about it a lot, but it's one of the most popular AI chatbots, the Snapchat AI.
- 43:55And yeah, because all the kids who don't know about ChatGPT or aren't old enough to sign up, I think use it.
- 44:00And they have tons of models.
- 44:03From last I spoke to someone there, maybe it's different now, but they're constantly trying to understand, do I send it to this model?
- 44:09Do I send it to this prompt?
- 44:11And they have a lot of thought that went into making that good, I think.
- 44:17So do you think that's sort of like the future of this?
- 44:19Like, do you think even these kinds of general purpose ones are going to do explicit routing?
- 44:27Or is like, because there's another way to do this, which is like it's sort of implicit or internal in the model.
- 44:32Like the models are mixtures of experts where it's like it is sort of routing your request to a certain part of the model, depending on what it is.
- 44:38Like there are tradeoffs between the explicit and implicit versions of this kind of thing.
- 44:43Like which one do you think the explicit one is...
- 44:46part of the future?
- 44:48I think to the end user, probably.
- 44:51I mean, that's a UX problem, but look at ChatGPT's evolution.
- 44:54You had to select which tools you wanted and which plugins you wanted, and that was just a horrible experience.
- 45:01And I think...
- 45:02They quickly move to this world where ChatGPT will choose whatever tool they want you to use and will let you use the code interpreter.
- 45:11You don't have to use the code interpreter style ChatGPT.
- 45:15From the technical perspective of someone building these applications, bad answer, but it's very use case dependent.
- 45:22It's very, what are you building?
- 45:24What are your trade-offs?
- 45:25What's your latency?
- 45:25What's your cost trade-offs?
- 45:27Hard to say.
- 45:29Hmm.
- 45:29What are like, what's on your mind right now?
- 45:31Like, what are you thinking about currently in the evolution of the business?
- 45:34And like, what's, you know, what does the next couple months look like?
- 45:38I think we're shifting into the next phase of this company where we spent the last year and a
- 45:45trying to understand where we fit in, what the prompt layer is, what layer of the stack is this, and what the value prop is.
- 45:55And I think now we have a really strong thesis of kind of what we were talking about earlier, bringing these domain experts, these non-technical subject matter experts, and putting them in the driver's seat of prompt engineering.
- 46:09And our product does that, but I think a lot of the next few months is...
- 46:13making kind of the happy path a little bit easier, encouraging that and kind of scaling it up from this point, running after that.
- 46:24Like, how do you make that happen?
- 46:25Like, this is not a...
- 46:30role that I think a lot of people are hiring for right now or that people haven't realized it yet.
- 46:37So if you're kind of pushing the company in that direction and you're sort of skating to where you think the puck is going to be, how do you make sure the puck gets there?
- 46:48Are you doing anything in particular?
- 46:49Is it just about building the right tools and people will figure it out?
- 46:52Or like, yeah, how do you think about it?
- 46:54So we have a lot of people doing this today already.
- 46:58But you're right.
- 46:59People haven't realized this.
- 47:00Wait, actually, before you tell me that, what are the characteristics of people who figured out that this is a thing that they're doing?
- 47:07Like your early adopter crowd.
- 47:09So there's two things that bring people to the thesis of non-technical prompt engineers.
- 47:15The first thing is they just are kind of...
- 47:20not a visionary, but they understand it.
- 47:22They're just smart.
- 47:26They have this like, they come in with this as a preconceived notion.
- 47:30The second thing, and this is the thing we're kind of locking into more because the first, you get a few of those, but you can't count on that.
- 47:37Second is companies that are
- 47:41actually building something revenue generated, building something that you're going to put a team behind.
- 47:45Because when you put a team behind something, collaboration becomes a big issue.
- 47:50They're going to almost always, especially in non-technical domains, if you're building cursor, might be different because your experts are software engineers.
- 47:58But in these other cases...
- 48:01they're ending up having a lot of handoffs with QA testers who are asking a lot of legal questions or whatever, and then they have to keep coming back and telling the engineers to fix something.
- 48:12So they experienced the handoff, and then they're also trying to hire.
- 48:16But I think at the core, the interesting thing here and the big bet is that we don't have to convince anybody this.
- 48:24The market is going to do the convincing for us because the winners are going to be the ones who do this, and then everyone's going to say, oh,
- 48:31They're winning.
- 48:32I got to do that.
- 48:35And so if you're building the tools to connect domain experts to companies, and one way to do that is to kind of rope them into the loop of prompts, is part of this also like recruiting domain experts and the sort of marketplace thing where it's like, if you're building a teacher app, you'll hook me up with a teacher?
- 48:54Is that the user's job?
- 48:55Today it's the user's job.
- 48:57But I have heard from a lot of teams
- 49:00that that's hard for them to, because it's not just data labelers.
- 49:04You're not just MTurking it.
- 49:06It's expert data labelers in a specific category.
- 49:10And people do hire out for this.
- 49:12I've heard of legal AI teams doing this, but you have to find the right person.
- 49:17So maybe, well, I don't think we're going to become a marketplace for that, but maybe we'll help people.
- 49:22Maybe we'll help connect them.
- 49:25That's always been kind of a pet thing of mine is like,
- 49:30Language models, their summaries are all RLHFed on human feedback from data labelers that are not professional writers.
- 49:40And even among professional writers, the level of skill and quality is highly variable.
- 49:47And then there's no one good metric for what is a good summary or a good writer.
- 49:53But like in my in my ideal world, like I would be so curious to see a model that was like trained like or RLHF just on like, you know, my favorite couple of my favorite writers like doing data labeling.
- 50:05I feel like it would be different.
- 50:08Would they argue with each other, though?
- 50:10Because maybe it's the nature of them being your favorite writer that they're a little unique.
- 50:14in their own thing.
- 50:15And LLF's not going to do that.
- 50:16It's possible, but it would definitely be, even if they argued and didn't agree, like, and maybe that makes the final output, like, a little more, like, unreliable.
- 50:25I feel like that's, I'm fine with it.
- 50:27It's better than the bland, like, whatever the bland thing is now, you know?
- 50:32Um, cause I think there's this thing happening with language model summaries where they're very adept at saying a lot without saying anything, um, which is a specific kind of bad summary, you know, that a data labeler, cause I know this because, um,
- 50:49I edit a lot of articles at every, and I mean, I don't edit as much anymore, but like I used to.
- 50:54And there's such a big difference.
- 50:55Like you can glance at an article and be like, yeah, this is pretty much, pretty much right.
- 51:00Um, and I would just like give it the, give it the check mark and just be like, yep.
- 51:04Um, approved human approved.
- 51:06Um, and then you actually like sit down with the article and you're really like pulling it apart to be like, does this really make sense?
- 51:13And then you just see all the stuff that you would not have seen before.
- 51:16Um, and I can imagine that that's happening with these labelers, you know, it's like, you're, you're sort of like tuned out at some point and you're just like, yeah, this isn't like garbage.
- 51:28And then you just get the sort of milk toast thing, especially with all the, like, they want it to be like not controversial and whatever.
- 51:34I don't know.
- 51:35Um, interesting, interesting.
- 51:36Maybe, uh, maybe you do that with prompt engineering.
- 51:39Maybe you don't need a,
- 51:40train your own model maybe i mean i can get claude to do some of this but like not it's still not amazing it it depends on the thing it depends on the task um it's hard yeah it's hard to know will it ever i'm sure it'll be it'll get better i when i summarize with ai like i have i almost always say use bullets don't use complete sentences and like it helps it a little bit but i i totally see what you're saying yeah i don't can't
- 52:08That's an interesting one.
- 52:09That's an interesting one.
- 52:10Because it's, what is the core that makes the writing good?
- 52:15Is it that it's concise?
- 52:16Or is it something a little bit more to piss off the AGI crowd?
- 52:21Or again, a little more human that you can't really codify.
- 52:26And that's not just logic.
- 52:28I don't know.
- 52:28Maybe not.
- 52:29I think that you can, but it's...
- 52:32If you said it, it would just be like a high-level thing.
- 52:37A good summary has to be concrete, and it has to tell you the most important thing that you need to know and leave out everything else in a concise way.
- 52:45But what's the most important thing is incredibly dependent on the situation and the person.
- 52:51And language models are... One of the beauties of language models is they're super sensitive to context, so they should be able to pick that up.
- 52:59But yeah, they're like...
- 53:02There's no generically best summary.
- 53:04There's just like, there's a principle, but the way that that principle plays out operationally is very different depending on the context.
- 53:16So what you said sounds like multiple tasks to me.
- 53:21And maybe that's the solution.
- 53:25When I was in, I remember when I was in high school, in some classes I tried a little too hard.
- 53:30Then I learned it doesn't really help.
- 53:31But I would make summaries of my notes and then make summaries of that to learn.
- 53:37And it is hard to figure out what the most important thing is, right?
- 53:42So maybe that needs to be the preprocessing task.
- 53:45Maybe the fact that the LLM doesn't generate
- 53:48what to you is a good summary is because its task is just to condense the data, but not to make the reader understand the important thing.
- 54:00Yeah.
- 54:01This is really interesting.
- 54:02I just spent...
- 54:03I was in SF like twice over the last like three weeks.
- 54:05And so I got like super AGI pilled because you just like...
- 54:09you just see enough of the thousand-yard stare of the internal researcher at the AI labs, and you're just like, oh, fuck.
- 54:17And you're just like, no, this is going to be fine.
- 54:20Maybe not.
- 54:23I mean...
- 54:24Maybe you're not saying it's all going to be fine, but I think that you have a different perspective, at least on the fundamental limits of whatever, at least near-term AGI might look like or more advanced AI might look like.
- 54:39I'm getting that vibe from you.
- 54:41And I actually...
- 54:44I'm swinging back a little bit.
- 54:45And I always sort of swing.
- 54:47Come back to the dark side.
- 54:50I think it's... No, I think that there's something...
- 54:55It's really important to realize that people have been predicting the end of the world because of the latest new technology since the world started, basically.
- 55:04And so if you're going to place bets...
- 55:07you got to bet against those people probably, is my thought.
- 55:12And there are way more limits.
- 55:14Until they're right.
- 55:15Until they're right.
- 55:16Well, you know, but yeah.
- 55:17So you never know when you're the turkey and it's Thanksgiving.
- 55:19But like, and if they are right, like the bet is, you know, it's like a Pascal's Wager type thing.
- 55:24Like if they are right, then the bet doesn't matter because you're dead anyway.
- 55:27So you might as well believe that.
- 55:30Yeah, yeah.
- 55:31It's also, how do you define AGI?
- 55:33Because when I kind of, when I like to rail on AGI, I don't know if, I'm using kind of the hypothetical, oh, it's this human-like AI that takes everything over definition.
- 55:46But I think the real definition is that it's just like an AI that can do most tasks humans can do.
- 55:54And I think we're there already.
- 55:57I think you could do that with,
- 55:59enough prompt engineering.
- 56:01And you can kind of build systems using that toolbox.
- 56:05But does that matter?
- 56:07Yeah, it matters for the economy for a little bit.
- 56:09Maybe it'll correct after that.
- 56:10But I think by the time you're talking about prompt engineering, though, that's already you're eliminating the AGI thing.
- 56:17What about O1 or Sora?
- 56:19O1 doesn't even know modus ponens.
- 56:21I don't know what that is either.
- 56:24Exactly.
- 56:25You do know what it is.
- 56:26Basically...
- 56:28For example, with O1, you can be like, who is John Mayer's mother?
- 56:33It'll know the name.
- 56:34It'll think it through and it'll know the name.
- 56:35I don't remember what her name is.
- 56:36Let's say it's Cynthia Mayer.
- 56:38And then if you ask, you just start a new thing and you're like, who is Cynthia Mayer?
- 56:43It won't know.
- 56:44And you can even be like, I want you to think about other famous people who have the last name Mare.
- 56:50So it gets in its thought process and it still doesn't get it all the time.
- 56:54And that's something that like, yeah, like a human just knows, basically.
- 56:58We don't know her name, though.
- 57:01I don't know her name both ways, but if I knew it one way, I would know it the other.
- 57:06I see, I see, I see.
- 57:07Well, yeah, I mean, this is why I know this is not a complete way to think about it, but I think the simplest way to think about LLMs is just, again, solving language.
- 57:21And language doesn't know who John Mayer's mom is, but if you give language the repository of information, it can tell you that.
- 57:30I don't know what it means to solve language.
- 57:32Like, what do you mean?
- 57:35So, I mean, a big part of computer science for many years is processing natural language or language and turning it into data.
- 57:45LLMs are really good at that and basically have solved the problem of going from human speech or human text to information that a computer can understand and vice versa.
- 57:58Before that, that was crazy.
- 58:00completely, at least going from data to language, it's basically impossible to do it well.
- 58:06That's solved.
- 58:08I think anything with regard to bringing in
- 58:12real-world data, John Mayer's mob, that sort of stuff, is just what you hook this box up to, what you hook this technology up to.
- 58:22I think how you get to the...
- 58:25I think what you're saying is you could probably take the same architecture that we have now and with a different training method or data set or whatever, you could get it to answer both ways, and I totally think that that's right.
- 58:39but what I'm trying, I guess what I'm trying to point to is like, that's why I'm like it, I think it's possible we're going to get there.
- 58:48I just don't think we're there right now.
- 58:49Oh, one is like clearly, the thing that people miss is like, in my opinion is, Oh, they're like, Oh yeah.
- 58:56Oh one can do physics problems better than I can.
- 58:58And it's like, yeah, but like it gets all this other basic stuff wrong.
- 59:01So, um,
- 59:03So I'm not ready to call AGI.
- 59:06It's smart in certain domains, and I think that's really important.
- 59:10That shouldn't be overlooked.
- 59:12I'm not being Gary Marcus here where I'm like, they suck or whatever.
- 59:18I think that they're truly incredible, but I also think there's a lot of work.
- 59:22I wouldn't call it AGI.
- 59:23Yeah.
- 59:26So hypothetically, say we all we needed to do is train the LM on 100x or 1000x the data size.
- 59:36Probably not, but let's say that was the way to do it.
- 59:41What's the difference between having an O2 model that can answer John Mayer's mom both directions versus having O1 that's plugged into the data set and the kind of end user application that lets you ask it both ways?
- 59:56You have to predefine the data set.
- 1:00:00So you have to have an explicit knowledge store that has all the knowledge in it.
- 1:00:06So you're kind of cheating.
- 1:00:07And also having that predefined knowledge store is an impossible problem.
- 1:00:16You can't have all of that in a database.
- 1:00:19And that's why it took so long to...
- 1:00:21get even the models we have now.
- 1:00:24Because you have to have, for a knowledge store like that to work, you have to have a more bounded problem, a less general problem.
- 1:00:30A lot of hypothetical.
- 1:00:31I mean, the weights are technically a data set.
- 1:00:34They are, but it's inexplicit.
- 1:00:36It's a totally different thing.
- 1:00:37It's not the same thing as a database.
- 1:00:40It's much more flexible.
- 1:00:41Right.
- 1:00:41I like where this is going.
- 1:00:42I think this is a very fun conversation.
- 1:00:44We are at time.
- 1:00:47I really, really appreciate you coming on the show.
- 1:00:49For people who want to try out PromptLayer or find you, where can they find you?
- 1:00:53Yeah, you can find me on Twitter on X at IamJarredZ.
- 1:00:57I-M-J-A-R-E-D-Z.
- 1:00:59Also, check out PromptLayer, PromptLayer.com.
- 1:01:03free to sign up and use for hackers and hobbyists and small teams.
- 1:01:07And then not so expensive for startups either.
- 1:01:10And it's a great way to build AGI.
- 1:01:15Sweet.
- 1:01:15Thanks, Jared.
- 1:01:16Thank you.
- 1:01:25folks.
- 1:01:26You absolutely positively have to smash that like button and subscribe to AI and I.
- 1:01:30Why?
- 1:01:31Because this show is the epitome of awesomeness.
- 1:01:33It's like finding a treasure chest in your backyard, but instead of gold, it's filled with pure unadulterated knowledge bombs about chat GPT.
- 1:01:42Every episode is a roller coaster of emotions, insights, and laughter that will leave you on the edge of your seat craving for more.
- 1:01:50It's not just a show.
- 1:01:51It's a journey into the future
- 1:01:56so do yourself a favor hit like smash subscribe and strap in for the ride of your life and now without any further ado let me just say dan i'm absolutely hopelessly in love with you