Latest / The Every Podcast / How an AI Researcher Uses ChatGPT and Notion AI - Ep. 3 with Linus Lee
Transcript
- 0:00I also think when you look at models this way, language models start to feel less like Asians that have their own kind of agency and more just like, oh, this is like a calculator.
- 0:08The more context the model has about why you're doing what you're doing or what your goals are, the better suggestions you're generally going to be.
- 0:15Do you have custom instructions set for this?
- 0:18I don't, actually.
- 0:18Oh my god.
- 0:20Okay, so I have a bunch of books in front of me and I want to see if it can recommend books.
- 0:23The Brothers Karamazov.
- 0:25Medieval technology and social change.
- 0:27Exhalation, Ted Chiang.
- 0:29The essential Kabbalah.
- 0:31Synthesize the vibes below into a single paragraph.
- 0:35Holy .
- 0:37Synthesize more.
- 0:43Wait, wait, wait, wait.
- 0:44So you said synthesize more and then all caps compress.
- 0:47I love it.
- 0:48Compress.
- 0:49AI researcher uses AI.
- 1:04Welcome to the show.
- 1:05Thanks.
- 1:05Thanks for having me.
- 1:06Excited to be here.
- 1:07Yeah, I'm excited to have you.
- 1:09We've been friends for a while.
- 1:10I interviewed you, I think, about a year, year and a half ago, and it was when I was first starting to write about AI, and that interview went super viral.
- 1:20And hoping we can replicate some of that magic here today, but...
- 1:25I love getting to talk to you.
- 1:28You're a researcher, you're a tinkerer, you're a really, really deep thinker and a great writer.
- 1:34For folks that are listening that don't know, in addition to doing a bunch of side research and side projects and tinkering in LLMs, you also work for Notion on their AI team, prototyping new interfaces for AI.
- 1:48So we'll get into that.
- 1:50We'll get into some of your thinking about LLMs and how LLMs fit into creative work and creative thinking.
- 1:56We'll get into some prototypes you're building, maybe demos you have.
- 2:00We'll talk about Notion stuff.
- 2:01And then, of course, we will talk about how you use ChatGPT.
- 2:04Yeah, I think that interview that you talked about
- 2:07I think it came out almost exactly a year ago, if not exactly a year ago.
- 2:10And I think it was, I think, safe to say, pivotal for both of us, at least certainly for me.
- 2:16That interview is a big part of how I ended up at Notion, which I've spent the last year at.
- 2:21And it's been very fascinating to a great place to be for the last year as lots of things have happened in AI.
- 2:26So, yeah, kind of timely.
- 2:29I love it.
- 2:30I love that it's a year ago.
- 2:32I think it would be great to maybe make this an annual thing.
- 2:35And I don't know what the next step is after helping you get a job at Notion.
- 2:40Like what's the next level thing?
- 2:41Like meeting Taylor Swift or something, but like maybe we could make it work.
- 2:45That would be something.
- 2:46Yeah.
- 2:47So here's where I want to start.
- 2:48So basically, I've said before on this show, and I've written a lot about it, that I think ChatGPT is one of the most or the most important creative tools of the decade.
- 2:57And I really think that people sort of misunderstand how important ChatGPT in specific and a lot of the AI tools that are being built right now in general are going to be for creative thinking and creative work.
- 3:10And I really think that you're one of the people on the forefront of thinking about that
- 3:15There are a lot of people out there
- 3:18who are just really afraid of AI right now and really feel like, oh, it'll replace everything that we do and it creates this inhuman future.
- 3:26And I find you to be one of the deep thinkers and builders in the space that is trying to think about how to make AI into a human future where it sort of augments us and helps us live fuller lives.
- 3:38And I think that's really, really incredible.
- 3:40When I was researching this episode, I came across this quote that you wrote recently where you said,
- 3:46I want to build interfaces that lets the AI gesture us into a better future without infringing on our agency.
- 3:53I love that.
- 3:54I think it like really captures the spirit of your philosophy.
- 3:57And I just wanted to start there.
- 3:58Like, tell us about that quote, tell us why you wrote it and how that fits into the larger way you think about AI.
- 4:06Yeah, I think agency is really interesting.
- 4:10I think a lot of the way that I think about language models in particular,
- 4:15I think what we're starting to see that models for all different modalities all kind of have, when you take a 10,000 foot view, similar kind of emerging capabilities, but language is sort of the thing that seems most human-like to us.
- 4:26And so we talk about it a lot.
- 4:28And I think the way that I look at language models personally has been colored by the fact that while I work, like a lot of other people, I work with language models at that like sampled output level of just like,
- 4:41telling it things and then it tells me things back.
- 4:43I also work with it at like a numbers level.
- 4:46And so, and like looking at embeddings and so on.
- 4:50And I think, and some of that we'll get to in a bit, but I think because of that, I personally, when I look at a language model, it is really just like a function that predicts a probability distribution.
- 5:03While you can wrap it in very anthropomorphic packaging that makes it seem like it has kind of its own will and its own kind of intent.
- 5:12And it might project kind of people like properties to it and say it wants things.
- 5:17Ultimately, it's like a it's a statistical model of probability distribution, just like a very complex one.
- 5:21And so I think that colors a lot of my own thinking about how I view the technology.
- 5:27But just because it's like a pure function that models of probability distribution doesn't mean that we may accident doesn't prevent us from accidentally building things with a technology that take away agency from the things we want to do.
- 5:43I think an interesting example is a coworker and a friend of mine.
- 5:48at Ocean and I were, we were talking about making, this is kind of a silly example, we were talking about making a cover image for a party that she was organizing.
- 5:58And she had this very particular aesthetic in mind of a cover image, which was kind of like a very, this is basically a very ugly painting on parchment, not something you would consider aesthetic.
- 6:11And she's like, I want this very specific aesthetic.
- 6:13Here's some like images I got off of Twitter that follow this aesthetic.
- 6:15Can you make one in this aesthetic of like, like a girl sipping wine or something?
- 6:20I don't remember the exact example.
- 6:21And I tried so hard to use all of the image generation tools at my disposal, like Stable Diffusion, Excel, Dolly 2, Dolly 3, all these tools, even some of my own kind of image-to-image tools, to make an ugly image.
- 6:36And it's just very difficult to get Dolly to make an ugly image.
- 6:40It's...
- 6:43I think that's interesting to me because, and this is something I've talked to with, something I've talked to some folks that mid-journey about also, about how the tool kind of constrains the search space of possible images you can generate so that normally it's kind of closer to what you want because normally you want something aesthetic, but in the process, it may actually sort of take away, in the design of the tool, if not necessarily the capability of the model, it takes away some agency from the user.
- 7:10And so I think the underlying,
- 7:12Technology, I think, is kind of just like a tool, a function, whatever, a mathematical object.
- 7:18But then we don't want to wrap it accidentally in packaging that disempowers us.
- 7:22That's really interesting.
- 7:23I want to back up because you said a lot of different things there, and I think they're really interesting and really important to unpack.
- 7:29So what I heard you say is sort of...
- 7:32AI, or at least the current generation of AI models, is a function that models a statistical probability distribution.
- 7:41And when we experience that ourselves, we have all these reactions to it that we anthropomorphize it.
- 7:50We project out what it might be able to do from what it can do today in ways that are maybe unrealistic or maybe don't fully understand how it currently works.
- 7:57And...
- 8:03And depending on the probability distribution that you select, so like, for example, the probability distribution that you create from the training set of images that you use to train your model or the training set of texts that you use, for example, depending on those things,
- 8:25you're going to create a certain set of possibility space of outputs that sort of constrains the user.
- 8:35And I think in your view, basically, like how that is selected and communicated is maybe important because...
- 8:44But like you said, like Dolly, you can't get it to make an ugly image.
- 8:47It's not built for that.
- 8:48So it kind of like takes away agency from you because it's doing some stuff for you in a way that like, I don't know, maybe like Photoshop, for example, you can just manipulate the pixel.
- 8:58So there's no agency taken away in that experience.
- 9:02Is that kind of what you're getting at?
- 9:04Yeah, yeah.
- 9:05I think there are a lot of different pretty subtle ways that either intentionally or unintentionally shapes the kind of agency...
- 9:14landscape of a tool.
- 9:16One very explicit example is a tool like Dali3 where the model is through training made so that it has a, it's sort of fundamentally unlikely to output bad looking images.
- 9:31I think there are other examples.
- 9:33So like Photoshop is actually an interesting example because even if in theory you could kind of make everything by just like moving the raw pixels around, I think the specific,
- 9:44the specific features that are easy to access tends to also shape the kind of style of output.
- 9:49And so like, if you look at popular image editing tools, like you can tell when an image is made in Instagram stories, or you can tell when an image has its background masked out by like Keynote or something.
- 10:00And so all of these tools, even in pretty subtle ways, kind of tend to shape the output style.
- 10:05And I mean, I feel like that's part of what makes
- 10:10what makes art in general, like, you know, if you think about the music styles that are popular, it's like based on what the sound boards can do and all the weird effects are like the, you know, the electric guitar and the weird effects that like Jimi Hendrix discovered, like those are in some ways they're like limiting our agent, limiting the artist agency, but they also create this unique set of constraints that creates a unique vibe and sound that that represents a genre or a generation.
- 10:38Yeah, you touched on something really interesting there.
- 10:41Imagining the output space as a very concretely spatial kind of thing.
- 10:47This is, for me, very concrete because I think a lot about embeddings, and embeddings exist in a very concretely kind of spatial space.
- 10:56space.
- 10:57An embedding is a list of numbers that try to summarize quantitatively what some piece of text or what some piece of image semantically contains.
- 11:07An example use case of an embedding, so you have an embedding model which is kind of like a language model with its
- 11:13last part of it chopped off so that we can read out the raw numbers.
- 11:18And you can have an embedding model and you might feed an embedding model sentences like the Eiffel tower is in Paris and the president of France is blah.
- 11:26And, um, and like notion is a tools for thought company.
- 11:30And two of those sentences are much closer in meeting than the third one.
- 11:33And so when you feed them into an embedding model, the embedding model will spit out for each of these sentences, a list of numbers.
- 11:39And when you view the list of numbers as kind of a coordinate or points in space, you know, high dimensional kind of coordinate space, those numbers are going to be closer together for sentences that are closer together.
- 11:51And so the way that I think about it sometimes is like you can take text and then assign pieces of text like a latitude and longitude coordinate and that's an embedding.
- 12:01And then you can map the text and then see which pieces of text are closer to each other.
- 12:05And the ones that are closer on the map, the ones that have a latitude and a longitude that are closer, are going to be similar in meeting.
- 12:10And I think that that, like, yeah, that sort of clicked for me, where I was like, oh, that's what it is.
- 12:14Yeah, yeah.
- 12:15Another metaphor that I sometimes use is like a color picker.
- 12:21So if you use
- 12:23any kind of image editing tool, one of the ways you can pick colors is like a 2D grid or like a color circle where you have two dimensions, you can move things around and then you move the data around and you're changing kind of the RGB values.
- 12:34There are a couple of different ways to describe a color.
- 12:36One way is by RGB value, which is kind of like a coordinate or latitude lines for a color.
- 12:40Another way you could describe a color is by just saying like orange or like very dark blue or crimson.
- 12:48In my head, the dark blue or crimson word description is the input, and then conceptually the RGB value is the embedding.
- 12:56I think that's really interesting because it hints at this possibility that embeddings, with these numerical representations, might encode
- 13:09kind of pretty fundamental semantic insights about the, the thing that you're encoding color or text in a way that lets us kind of mathematically manipulate it to do interesting things.
- 13:19Like, um, if you have the word crimson, you can't really like, you can't manipulate it in ways like making it lighter or making it more blue or whatever.
- 13:28But if you have the RGB value, there are very, um,
- 13:32concrete algorithms that you can use, like number crunching to do, to make the color a lighter shade of crimson or like a more blue or more purple.
- 13:39Right.
- 13:40No, I love that.
- 13:41I mean, that's sort of very central to, I think some of your thinking around this, which is like the current generation of AI tools are awesome.
- 13:47Chat is great, but
- 13:50You know, manipulating images or text via chat is, it's a very coarse grained tool and it's a lot harder to get the exact thing that you want.
- 14:01And I think you've thought about a lot like
- 14:04AI interfaces that allow you to be more precise about how you move through different ways that you want to modify an image or a text using using AI.
- 14:16Yeah.
- 14:17Yeah.
- 14:18And I think thinking in that way, the spatial way of thinking about.
- 14:23Possibly the possibility space outputs of these models, the spatial view, I think, is.
- 14:30kind of behind the way that I think about how to add more precision to these kinds of tools.
- 14:36One kind of, I don't know if, should I just pop into a demo?
- 14:38Yeah, let's do it.
- 14:39So the interface for this is very bad because it's just.
- 14:43Wait, so let me just back up.
- 14:44So this is a tool called Varna, and you built this yourself.
- 14:48Yes, this is one of a string of experiments.
- 14:51I'll make sure some other ones later.
- 14:53But this is actually half built.
- 14:56I was in the process of building something different, and then it started being useful, and I didn't really feel like putting more effort into it.
- 15:04And so it's in a very half finished form, but it's good for demonstrating this particular thing that I'm about to walk you through.
- 15:09So what is the general thing that you wanted to build it for?
- 15:12What was the original idea really quick?
- 15:16The original idea was,
- 15:17to try to let you describe an image that you want to create by adding and subtracting images and text.
- 15:29There's a model called Clip by OpenAI.
- 15:31This is actually a model that's been around for a while.
- 15:34If you use any kind of multimodal, like use text to semantically search images, kind of search engine tool, Clip is likely to be one of the models behind that kind of thing.
- 15:44The special thing about Clip is that it tries to describe both text inputs and image inputs in the same embedding space, in the same coordinate space.
- 15:53So that if you put in a word like Eiffel Tower and a French flag,
- 15:57the model is going to understand the meaning behind both of those things and try to cluster them together because they're similar.
- 16:05A slightly newer thing that happened after Clip came out is that people came up with a way of generating images conditioned on a specific point in this Clip embedding space, so that you could put in an image or you can put in a text and then try to generate an image that is kind of conceptually the image that corresponds to that point in the space.
- 16:27If you put in a bunch of images of butterflies,
- 16:31they all cluster around the same point in this embedding space, in this coordinate space.
- 16:35And if you pick one of those points in that cluster and then generate an image back out corresponding to that point, you would get some image of a butterfly.
- 16:41And so given this ability to both take an image or text and encode it into the space,
- 16:48pick a point in this space and decode it back out into its corresponding original image form, maybe you can generate an image not by just typing a text prompt, but by mixing a bunch of concepts together in this space.
- 16:58So if you want a butterfly that has the colors of the French flag, maybe you can mix the image that is of the French flag and an image of a butterfly just
- 17:10pick a point in between these two concepts in the embedding space and then decode it out, and maybe it'll mix those concepts together.
- 17:15So that's the kind of idea I was trying to explore with this little hack.
- 17:20The thing that I'll show you now is here, I'll pick...
- 17:26This is a selfie of myself.
- 17:30For dumb demo reasons, I have to put myself in twice.
- 17:34And then this is an illustration.
- 17:36This is my... actually, this is a PNG.
- 17:38Let's do something different.
- 17:40This is a clip art illustration of a human face.
- 17:46And I'm going to, so what this tool is going to do is embed both of these images.
- 17:52They correspond to slightly different points in the clip models embedding space.
- 17:55And then I'm going to use this tool to pick eight different points along the line between these two images, and then decode each of them out
- 18:07into its own image.
- 18:09And so we're basically sampling the distance between these two images in this embedding space and then trying to look inside the model and see kind of what the model sees at each of these points.
- 18:20That's very cool.
- 18:21Yeah, like a way that I would think about this is like, if you're used to Photoshop or something or Instagram or any of these, any photo editing capability,
- 18:32they have all these like sliders that you can do for like make it brighter and you can on the left it's like you know uh it's very very bright and on the right it's very very dark and you can just slide in between and what you're building here is a slider between almost like concepts or ideas for images so like one on the on the left side is like your headshot and on the right side is like a sort of vectorized drawing cartoon drawing that is in a style that you like and you're just sort of seeing
- 19:00if you slowly turn your headshot into that, like what are the different points along that space?
- 19:07Right.
- 19:07You could also, speaking of sliders, you could also not just slide along this kind of stylistic scale, but you could start to do fun things like slide along an emotion scale.
- 19:18So one thing that I've done before here is I'll try to go from an image of a young man who is happy,
- 19:30to an image of a young man who is very, very angry.
- 19:37And,
- 19:39There we go.
- 19:39Now you get progressively more and more mad.
- 19:43You can see the effect is really intense.
- 19:44So at the end, it kind of destroys the image.
- 19:46So sometimes I turn down the text effect.
- 19:49So the way that I arrived at, so this is one of many experiments that I've done to try to build interfaces around exploring embedding spaces and latent spaces of,
- 20:01of generative models instead of talking to the model directly.
- 20:03The reason this is interesting to me is kind of twofold.
- 20:06One I think it's just intellectually really interesting that in the process of learning how to predict the next token or in the process of trying to model probability distributions of language, the model internally learns and learns to pull out kind of human recognizable semantically useful concepts like.
- 20:27motions.
- 20:28And I think learning how models do that and understanding it to improve models or make them more controllable, I think, is useful.
- 20:34And just the fact that the models do that, I think, is interesting.
- 20:37So I want to understand it better.
- 20:39I also think when you look at models this way, as a thing that gives you dials and as a thing that gives you numbers that you can manipulate, language models start to feel less like agents that have their own kind of agency, and more just like, oh, this is like a calculator.
- 20:54Simon Willison, who's one of the prominent bloggers in the space, actually has a really great blog post about language models as a thought calculator, where he talks about a similar idea.
- 21:10One way to look at this demo is a kind of a calculator for images and concepts in text.
- 21:16And unlike the experience of asking Dali3 through Chatubiti to generate an image, which feels like asking this entity, this agent for requests.
- 21:25Here, it's like, okay, there's very concretely like a thing that does math.
- 21:29And you can use it to get dials and control.
- 21:32And that feels more like a tool.
- 21:33And it feels like perhaps there's a direction here that lets you retain more agency as a person.
- 21:37I feel like one of the things I'm getting from this is...
- 21:42When people use these AI tools, this generation of AI tools for the first time, there's this like, whoa factor.
- 21:47Like I was using it the other day.
- 21:50I had like done a lot of journaling.
- 21:52I've been going through some like stuff in my personal life.
- 21:54I've been doing a lot of journaling about it.
- 21:56And I fed like, I don't know, 4,000 words of journals into Claude.
- 22:01I did Claude and ChatGPT, but I find Claude to be like slightly better for this.
- 22:06And it, I'll put it a bunch of, you know, I ask it like, what am I not seeing?
- 22:11What are the patterns that you, you're observing my psychology or the psychology people around me, like all that kind of stuff.
- 22:16And I'll put all this stuff.
- 22:17And I screenshotted that and I sent it to my therapist and he was like, that's totally wild.
- 22:24And I was like, cool.
- 22:24Like he must think this is awesome.
- 22:26And he's like, it's so good.
- 22:27And I was like, this is amazing.
- 22:28And then he was like, I thought we would have at least a couple of years until it would be this good.
- 22:31And then he was like, do you think there's, do you think that there's room for like human therapists anymore?
- 22:36And I was like, Oh no, like now I have to be like comforting my therapist because he's afraid of the AI and like, yeah,
- 22:44My feeling is like he had that immediate moment that everyone has.
- 22:48But if you really dig into these tools, they do amazing stuff, but like they're not even close to, in my opinion, like, for example, replacing a therapist.
- 22:57And I think part of the reason why people have that, which is what you're, I think what you're referring to here is we just respond to things that feel really intelligent.
- 23:07And if the same thing was performed in a slightly different way, like with a slider like this, it would still be cool, but it would feel more familiar, like a tool that we would, that we might use anyway, like a calculator that is in itself sort of mind blowing, but isn't threatening or,
- 23:23sort of, it's not like a replacement in the same way that like a fully intelligent thing is.
- 23:28Is that like a fair way to describe what you're saying?
- 23:32Yeah, I think so.
- 23:33I think so.
- 23:34Yeah, when you train a model, there are fundamental capabilities you bake into it and the packaging that you wrap it in really dramatically influences how people receive it and they use it, yeah.
- 23:44You know, if you took some like human neurons and just like laid them out in the right way and wrapped them in like an interface,
- 23:52it might look like a tool too.
- 23:54Certainly.
- 23:55And, and if you just get enough of those, if you just get enough of those neurons together, you get a brain that's like conscious and can do things and think like, how does, how do your, how do these two things like fit together?
- 24:09That's an interesting question.
- 24:10I haven't thought about that.
- 24:11I think off the cuff, my kind of intuitive reaction is, uh,
- 24:22I think it's an interesting, it would be an interesting intellectual and societal endeavor to try to build a thing that is like a simulacrum of humans in every way, um, including having some kind of, uh, goals and agency and so forth, so, and so forth.
- 24:42And I think if that was the goal of like building a simulacrum of everything that, that at least intellectually makes us human, um, you would want to build an, uh,
- 24:51elements that these current tools don't have.
- 24:54Like trying different things in exploration.
- 24:56I think exploration, intentional exploration, is actually a huge part of intelligence that humans have that these models currently don't exhibit.
- 25:03However, I think when companies like Google and OpenAI and even Notion try to build kind of language model-based tools that help you do your work, there are a lot of parts of...
- 25:20a human intelligence that actually are kind of annoying when you're just trying to like get some work done.
- 25:26the fact that humans like sometimes just sit at their desk and daydream is like probably not that useful if you're trying to just like hire an entity to like, you know, read thousands of papers and try to summarize them.
- 25:36And so I, my gut feeling is that a lot of these kind of corporations and teams that are building AI to be useful.
- 25:43And especially in a professional context, their goal is not to build a simulacrum of humans.
- 25:47Their goal is just like build a thing that is like an intelligence kind of engine, um, steam engine.
- 25:52And then, uh,
- 25:53I could imagine some other research groups or some other groups of people whose goals would be to build a similar spectrum of humans.
- 25:58But I think there's, in the beginning, I think they tend to look similar.
- 26:00But I think as we get further down this road, we're going to see a kind of divergence between people who really want to build a similar spectrum of humans versus people who just want an intelligent thought calculator.
- 26:12I went to OpenAI Dev Day and...
- 26:16they did this whole presentation on how they fine-tuned GPT-4 using Slack messages.
- 26:22Right.
- 26:22And did you see this?
- 26:24And basically, like, they asked this fine-tuned version to do something, and it was like, no, I'll do it later.
- 26:29And then it was like, do it, or you're fired.
- 26:31And it was like, okay, I'll do it.
- 26:32Yeah.
- 26:33And, like, you're right.
- 26:34There's all these, like, parts of being human that, like, maybe we don't necessarily want to model for the AI as we build, and there's some divergence there in terms of, like, is it a tool, or is it something that has agency and all that kind of stuff?
- 26:47Yeah, I think I've run into something actually very similar where I was when I have a personal chatbot that is sometimes used for like, kind of brainstorming kind of entertainment purposes.
- 26:55Can we see it?
- 26:56I can.
- 27:02Here, I'll open it up.
- 27:04You have a personal chat bot.
- 27:06I have a personal chat bot.
- 27:07It's an iMessage bot because I like having it in iMessage because it's accessible kind of from all my devices.
- 27:12Apple does all the syncing for me and it looks nice and I can react to things.
- 27:16I haven't used it in a while, but I could ask it something like... Well, it looks like you asked it, like, what makes Notting Hill particularly picturesque compared to other neighborhood areas like Westminster?
- 27:26Tell me about that.
- 27:28I was visiting London and I was trying to look for...
- 27:31Neighborhood statistics.
- 27:32Actually, we can ask something about London.
- 27:33We could say, what do you think about London versus New York?
- 27:40And why would you ask this versus asking ChatGPT?
- 27:43How is this built?
- 27:44What is it trained on?
- 27:46Why is its answer better?
- 27:48Where would you rather live as a 25-year-old?
- 27:54There's lots of interesting things about this.
- 27:56So first, sometimes it's kind of unreliable, but usually when it receives a message, yeah, it'll say red.
- 28:03And then sometimes it'll have a typing indicator, which is kind of...
- 28:07The way this works behind the scenes is just when my server receives the message and starts generating the output, it sends a red reply.
- 28:14But conceptually, it's like, oh, the AI read my message.
- 28:18Which, like, I know that doesn't actually mean anything because it's just like a bag of numbers, but this is interesting.
- 28:24It's just conceptually interesting.
- 28:26It's one of those same things that makes it feel human, you know?
- 28:30Right.
- 28:30And then, like, sometimes I'll send a message, I'll lock my phone, and then I get a notification that it sent me a message.
- 28:35I'm like, whoa.
- 28:37Like computers don't normally just like send me notifications for things that it's thinking about.
- 28:41It's really weird.
- 28:42So the packaging, again, very important.
- 28:46So the reason I brought this up is because the model that backs this is actually not a fine-tuned or RLHF model.
- 28:54It is the raw base model of, I think, LAMA2 13 billion parameter model.
- 29:00Mm-hmm.
- 29:00And Llama is Meta's open source model.
- 29:03Llama is Meta's open source model.
- 29:04One of the things that make that model special compared to things like GPT-4 is that it's open source.
- 29:10Obviously, I can host it on my own, which is what I'm doing here.
- 29:14But another thing that makes it special is that they released a version of the model before they did all of the fine tuning and RLHF to make it chatty.
- 29:24to have it follow this kind of chat form.
- 29:26And so the base model is purely a text continuation model.
- 29:31So if you ask it for something like, if you just ask the base model something like, where would you rather live, New York or London?
- 29:38It would interpret that, it wouldn't really interpret anything.
- 29:40The model's task is to predict the next token in internet text, so it would probably interpret that you're in the middle of like a blog post about the best place to live.
- 29:47And it would just continue writing like a blog post or something instead of asking the question.
- 29:51I had to add a bunch of prompts in front of it.
- 29:55So I'm prompting a base model, which is in the ye olden days of 2020, what we used to do before all these like instruction following models existed, people would just ship base models and then prompt them.
- 30:06So you're prompting a base model here, but like, why are you asking this model versus ChatGPT?
- 30:12Like, what is it, how is it more like you or more interesting to you?
- 30:18Right.
- 30:20Here I've asked it, what do you think about London and New York?
- 30:22Where would you rather live?
- 30:24If you asked this question to Chachapiti or Claude, I haven't done that before, but I would guess that probably with high likelihood, the model would probably say something like,
- 30:36oh, I'm an AI language model and I don't actually live anywhere.
- 30:40So I don't actually have any preferences on which cities I would live in.
- 30:43But here are some things that you could know about London and New York.
- 30:45And I'm like, that's not really what I'm looking for.
- 30:47I'm looking for a kind of a personal take.
- 30:49And it doesn't really even matter if that take is correct or not.
- 30:52I just want vibes, you know?
- 30:54And because this model hasn't gone through any kind of fine tuning about the fact that it's an AI language model, it's just going to generate text as if I'm talking to a rando on the Internet.
- 31:06And I've done some prompting so it's not just a complete rando, it's like a fairly intelligent cogent rando.
- 31:11But it's gonna say things as if it's like a human on the internet because the base model is just trained on text that is like mostly humans on the internet.
- 31:19So it says here, both London and New York cities, New York's number or whatever.
- 31:23Ultimately, the choice of where to live would depend on the new person's preferences, but like it gave me some opinions.
- 31:28It's still a little bit kind of professory because in the prompt, I tell it, it's like an assistant.
- 31:35But I could have just prompted the model to be like, hey, you're like Mickey Mouse and you live in New York.
- 31:39And it would probably have to follow that.
- 31:43And so you can prompt the base model to be much more just like friendly.
- 31:47Got it.
- 31:48When I used to use a dumber based model for this, which was GPT-J, which was a 6 billion parameter model that's trained on way less data, it was even dumber.
- 31:58And so sometimes when I asked it questions like this, that model would say something like, hmm, I'm not sure, but I have lunch.
- 32:05I'll get back to you after lunch.
- 32:08It like emulates human conversation, but it's not really useful.
- 32:11I think I found the 13-billion-lama model to be like a good balance of sometimes it gives creative answers that are kind of unexpected, and sometimes it gives cogent answers.
- 32:19That's funny.
- 32:19I love it.
- 32:20I think that's really cool.
- 32:21I want one.
- 32:22Sign me up.
- 32:23Yeah, I'll send you that.
- 32:24There's a private number you can talk to.
- 32:26Perfect.
- 32:28Cool.
- 32:29I want to get back to some of the things you wanted to share.
- 32:32I know you had a couple of ideas.
- 32:34I love that you came with a whole Notion doc prepared for what you wanted to talk about.
- 32:40I know you had a couple ideas you wanted to talk through.
- 32:42I want to make sure we get to those things.
- 32:44I want to jump into specific ChatGPT chats and all that kind of stuff.
- 32:48Cool.
- 32:48Let's do it.
- 32:49We've already talked about AI as a tool.
- 32:54Before we get into specific chat transcripts, I thought ...
- 32:59I was thinking about what we're going to talk about today in the shower in the morning.
- 33:02And one kind of shower thought that I had is that, so when I use ChatGPT, the way I think about prompting is actually quite different than when I do prompt engineering at my day job at Notion, writing prompts, which I do a lot of.
- 33:15Prompt engineering is sometimes like the part of my job as an engineer that makes me kind of feel...
- 33:22the dumbest because sometimes my changes to the code base will just be like adding a must to some English instruction or like changing the instructions that it sounds like even more desperate.
- 33:34But that's like a useful product change.
- 33:36So some days I just like spent the entire day prompt engineering.
- 33:40It's like, what am I doing?
- 33:41Like, why did I go to school for computer science?
- 33:43It's like, this is what I'm doing.
- 33:44But the mode that my brain is in for- The revenge of the English major is happening right now.
- 33:49I love it.
- 33:51um the the mode that my brain is in for prompting when i'm prompt engineering a prompt that's built into a product like notion is very different than the the kind of prompting brain that i have on when i'm talking to chat gpt and i kind of compare this to um like scripting versus software engineering and and in programming so let me explain that unravel that a little bit
- 34:16Programming is like, I would say programming is like this super set of activities that just involves any kind of writing computer programs.
- 34:25Sometimes you write computer programs and you ship it to millions of users and this thing runs on hundreds of thousands of computers and they have to run very reliably.
- 34:34They have to accept lots of diverse kinds of input and always generate the right answer.
- 34:39So it's like a very robust, resilient kind of well tested.
- 34:43piece of machinery.
- 34:44And when you build a product like Notion, you're kind of doing software engineering where you're writing programs to be robust and reliable.
- 34:51Other times, you write programs, but you're writing programs just to accomplish something quick and easy.
- 34:56You might write a simple little command line
- 35:00command line command or script to like search your folder for a keyword or like list of files that you have just so you can look at them or maybe even a slightly more complex one might be like iterate through all of the files that you have and delete any file that is older than six months.
- 35:14Like that's like a quick and easy thing, but that's not going to, you don't ship that to like millions of users.
- 35:19You just have to run it that one time.
- 35:21And if you make a mistake accidentally, you'll realize it and you'll like rerun the command.
- 35:25And so these two categories of activities, I would both call programming, but one I would call like software engineering and the other I would just call like scripting, like writing scripts or like writing commands.
- 35:38Equivalently, I think when you're writing...
- 35:40prompts for language models.
- 35:42There's a broad category of things that I would call prompt programming.
- 35:46And then some kind of prompts you write, like the kinds of prompts that I write at work are prompts that we write and we iterate on and we test and evaluate very heavily.
- 35:55And then we ship to millions of users and they put in all kinds of input to this thing.
- 35:59And so they have to be very robust and well tested.
- 36:01And they have to accept like lots of different languages and so on and so forth.
- 36:04And so that's what I would call more like prompt engineering, where you
- 36:08you write prompts and evaluate them robustly and things like that.
- 36:11When I'm talking to ChatGPT, though, I don't have to be as robust.
- 36:15I also have opportunities to make revisions if the first time the prompt runs, it doesn't do the right thing.
- 36:21And so when I talk to ChatGPT or other kinds of tools like that, or Notion AI and SetNotion, I would say that's much closer to like the scripting part of the metaphor, where I'm just trying something.
- 36:30And if it doesn't work, I'll just like fix something and try it again and kind of iterate my way towards the final result that I want.
- 36:37And it's not this thing that I want to make like a robust piece of machinery.
- 36:41And so I made that distinction because when you're doing like hardcore kind of prompt engineering, all those techniques around evaluations and few-shot prompting and using kind of structured outputs, they apply and they're very useful.
- 36:54When I'm just talking to ChatChuckBT though,
- 36:57good few-shot prompts are really hard to write.
- 36:59Like the specific examples that you pick influence your output quite a lot.
- 37:03And so I actually almost never write few-shot prompts when I'm just talking to ChatGPT.
- 37:07I just write zero-shot, and then if the output isn't exactly what I want, I'll usually ask a follow-up question to like revise the output.
- 37:14And so I think that distinction was interesting.
- 37:16I love that distinction and I feel like that just mirrors something that people kind of miss about Chachapiti when they use it at first, which is they ask, oh, how do I use it?
- 37:29And they try to use it perfectly instead of just being like, I could just bang away at this thing and try everything possible, you know?
- 37:37And I think that second one is way better because...
- 37:42It's such a broad tool.
- 37:43It has so many different things it can do.
- 37:44And we actually don't, as human beings, don't even know all of the things it can do yet.
- 37:50And the best thing that you can do is start with something simple and then just keep banging away until you get something that you want.
- 37:55So you can sort of like learn the limits of what it can do.
- 37:58And I think people are like way too reluctant, for example, to ask it to redo its response or revise something in the history of messages and just be like, let me try it again, or just start a new chat.
- 38:10There's something, and sometimes it almost feels like impolite to do it or something like that.
- 38:16But I think the best users of Chat Chibi teachers know how to just not accept anything until it's working and just keep iterating until they find something that is great.
- 38:26There was a fun example here where I had to look through a JSON file of some data.
- 38:33And I didn't really feel like constructing an elaborate prompt to try to ask it exactly what to do.
- 38:38So I just uploaded the CSV to Chachputi.
- 38:40And I was like, I think I literally just asked it, what's the vibe of this file?
- 38:45And I was trying to find it because I think the answer was actually really good.
- 38:48Try to find it.
- 38:48We can take a little time.
- 38:49You don't have to rush.
- 38:50I love that.
- 38:51I just think...
- 38:53It's one of those things that it's so funny because before ChatGPT came out, before GBT3, before GBT2, all that stuff, there are all these people, like these intellectuals who are like constructing scenarios for how AI could kill us.
- 39:08And a lot of them hinged on AI basically like misunderstanding what we said and doing something different.
- 39:14So if you say like, oh yeah, like...
- 39:16you know, make paperclips.
- 39:17It will just like misunderstand that you, you, you meant like maximally make paperclips and just turn the entire world into paperclips.
- 39:25And so that was the AI that we're afraid of.
- 39:27And the AI that we got was what's the vibe of this file.
- 39:32And it just like, quite a cogent answer.
- 39:34Yeah.
- 39:34I think, I think there was some theoretical, um,
- 39:38theoretical ways and concerns that still take that form.
- 39:44But certainly in the way of instruction following, I think we're making a lot of progress in aligning what the model wants to do with what we want to do.
- 39:52Yeah, I mean, the model read through all the columns, and it was like, here's generally what the file is about.
- 39:56Here are the different columns, and let me know what you want to do.
- 39:58So that was fun.
- 40:01I can walk through some other examples, though.
- 40:04Yeah, let's talk about it.
- 40:05Yeah, so probably the most common use case that I have for ChatGPT is actually just programming help.
- 40:13So you don't use, like, Copilot for that?
- 40:17I do use Copilot.
- 40:18I use Copilot heavily.
- 40:19And I think learning to use Copilot is kind of a different learning curve than learning to use ChatGPT.
- 40:25Copilot is very... Copilot's great because it has...
- 40:29all of the context of the file that you're actually in.
- 40:31And I think as a general rule, AI tools are better when they have that full, as much context.
- 40:37AI tools can give you better suggestions when they have more context about what you're trying to do.
- 40:40And so one of the philosophies behind Notion AI is that it has more context about the work that you're trying to do inside your workspace in Notion.
- 40:46And so it tries to be better.
- 40:48Same with Copilot.
- 40:48It has all of the kind of types and definitions and functions that I'm using inside my code editor.
- 40:53And so it can provide better suggestions, but the suggestions that it provides are kind of micro level.
- 40:58It's like add some lines here, add some lines there.
- 40:59So compare that to, let's take a couple examples.
- 41:03So like earlier this month, I was trying to write a bunch of like data processing scripts for, these are Python scripts that take millions of pieces of text and try to process them in some way.
- 41:15And so I had to learn how to write a bunch of data processing scripts.
- 41:19do this in kind of a streaming way because I didn't have enough memory to fill all of the data in my computer.
- 41:23And I had never used a streaming kind of dataset library before.
- 41:25So I learned about a library called Arrow and I was trying to use it.
- 41:30This is the kind of thing that you'd be able to use Copilot for because it's not... Copilot's great if you have like a file with some content already in it and you mostly know what you're doing.
- 41:39You're just trying to figure out like the right method to call or the right function to use or the right variable to use.
- 41:44But here I was asking a very open ended question of like,
- 41:48Like, here's a library that I'm using.
- 41:51How do I make it faster?
- 41:52Or, like, how do I even approach this kind of problem?
- 41:57One example that I linked here is, like, this isn't about the data set thing, but this is about...
- 42:04I was building a library for processing UTF-16 encoded characters.
- 42:10And I was just trying to understand how these things are represented, and then maybe get some help writing a basic implementation of how to parse this format.
- 42:19And this isn't, again, the kind of thing that Copilot is useful for, because I didn't even have a basic template for this thing.
- 42:23I was just trying to understand how we should approach this problem.
- 42:26And so I asked it, how is it encoded at the byte level?
- 42:30Just trying to get an understanding of what this format is.
- 42:33And then I asked it, was there a simple algorithm?
- 42:35Because I thought if there's an algorithm I can understand, I'll just write it in the language I was using.
- 42:42And then when I asked it for the algorithm, it even gave me like a Python implementation, which I based my implementation on.
- 42:48But then I asked it follow-up questions to kind of explain parts of the code that it didn't initially explain.
- 42:55And this was kind of a high-level problem in breaking it down that it was useful for.
- 43:00Another example might be like this, which is a very long conversation.
- 43:05This is, I think, a whole programming session that was a single chat where...
- 43:13I began again with a very high level problem of like, what's a good way to like read this very, very large file of data incrementally in a streaming way so that I didn't have to use up all of my computer's memory.
- 43:22And it initially gave me some approaches.
- 43:25And then I start steering it to like, okay, I don't just want to use PyTorch.
- 43:30I actually want to like use a different format because it's right.
- 43:33And over time, I try to converge onto like a solution.
- 43:36I think that's a really smart one is in addition to the like, okay, start with something quick and iterate from there.
- 43:43It's also start with something broad.
- 43:46and ask ChatGPT to help you understand how to prompt it or what it thinks the best solution to a particular kind of broad question is going to be, and then gradually narrow in, rather than starting with the narrow, maybe something more narrow that you just wanted to answer.
- 44:05Is that a good summary?
- 44:07Yeah.
- 44:08Another way that I've thought about that is the more context the model has about
- 44:13why you're doing what you're doing or what your goals are, the better suggestions you're generally going to be.
- 44:17And so instead of asking it, how do you read an arrow formatted file?
- 44:22You could ask it, I'm trying to read a data set that's 80 gigabytes large into a computer with 40 gigabytes memory.
- 44:27I'm on Linux.
- 44:27I'm running this version of Python.
- 44:30How should I approach the problem?
- 44:31And it'll give you a few approaches.
- 44:33Do you have custom instructions set for this?
- 44:35I don't actually.
- 44:37Oh my God.
- 44:37We're going to have to revoke your chat GBT.
- 44:39Oh, I know.
- 44:40I know.
- 44:42Um,
- 44:42I think I haven't found it.
- 44:43If I used it, I would probably use it to make the outputs a little more concise, but I actually haven't.
- 44:47I haven't found the normal tone too offensive.
- 44:49Okay, cool.
- 44:50Well, let's go back to your example.
- 44:52So you had something to show first about Seoul neighborhoods.
- 44:55Yeah, so this is, I did some traveling recently.
- 44:57I was in Seoul, I was in Thailand for a bit.
- 45:00And I thought this example was interesting because from the outset, it looks like I just asked a question, what are the major neighborhoods to see when playing a trip to Seoul?
- 45:08And then what is it known for?
- 45:09And then I just have a single output.
- 45:11But actually, if you look closer, there are four outputs.
- 45:15Or this one's kind of borked, but there are three outputs.
- 45:18So I thought this was worth noting because language models are non-deterministic, if you ask a very broad kind of recommend me something to do kind of question like this, every time you call it, the results are going to be slightly different.
- 45:32And what I want to know really is like, what are the best neighborhoods to visit?
- 45:36And so I asked a question like this, one of the most interesting neighborhoods, and then I ran it three times.
- 45:41And each time the results were a little bit different, but there was like the overlapping set and the overlapping kind of descriptions and focus.
- 45:46And so I read through all three
- 45:49and then just try to pick the ones that seemed like they were mentioned the most.
- 45:53Some of these I think also involve searches.
- 45:57So here I did a Bing search and then gave you some results.
- 46:00And so- That's brilliant.
- 46:01By looking at multiple samples, I'm able to get a better sense.
- 46:05So I did something similar with Bangkok as well here.
- 46:07Wait, so, okay, let me just see if I get it.
- 46:10So basically, you're going on a trip, you want to know what the best places are to go.
- 46:15But rather than saying what's the best place to go, you're asking something like, you're asking a broad version of that rather than having it filter for you.
- 46:26You're asking like, the broadest thing, which is where could I go in Bangkok or where could I go in Seoul?
- 46:32And then every time it's, when it responds to you, you're just clicking that little redo button.
- 46:38Can you click it for us?
- 46:38I wanna see if it does another one.
- 46:40Yeah, I see here at all.
- 46:41You're clicking the redo button and then it's re-outputting it.
- 46:46And basically, for a broad question, it's going to be slightly different every time.
- 46:50And then you're being like, okay, I'm just gonna read through the things.
- 46:52And the most commonly mentioned things are probably the top things.
- 46:58Yeah.
- 46:58Yeah, exactly.
- 47:00Why not just ask for the top things?
- 47:05What's the difference in your mind?
- 47:06I think this is, again, the agency thing.
- 47:08Like...
- 47:11Sometimes in my life, if I really, really trust the person that's giving me a recommendation, he's a best friend, I've known him for six years, he knows both the city really well and me really well.
- 47:22If he says, if you have an hour, this is the only place you should go to, I'd be like, okay, Alex, this is probably good, he knows me really well.
- 47:27But Chachamiji doesn't really know me well.
- 47:29I think even if I had a 5,000 word custom instruction, it would be very difficult to describe everything about me in that description.
- 47:35And so instead I'm asking it for like, give me some options.
- 47:38And then I knowing myself can then now be a little more sure that instead of having to judge its filtering and trust its filtering, I can do kind of last mile filtering.
- 47:49That's really interesting.
- 47:51I feel the exact opposite.
- 47:54I have a very long custom instruction and I really find that it helps it know who I am and what I might want.
- 48:04And then I also find that it's really, it's very cool for being like, I'm in Bangkok and I have these requirements.
- 48:13I don't eat XYZ and I have this amount of time and I was just at like five temples yesterday so I don't want to do any temples.
- 48:20Um, and, uh, I'm an, I'm a nerdy tech guy that like, you know, whatever.
- 48:25And what should I, what should I see?
- 48:26It's like very good for that.
- 48:28Like pushing it into the, pushing it into, into a space that you like, I still think it's really useful to do the, um, just do the redo thing a bunch and then see what comes up.
- 48:38Um, but I, I, I personally find the, the filtering and telling it more about you is, is really nice.
- 48:44And I think that that's, there's probably just a personality thing, which is like, you just want agency.
- 48:50And I'm like, give me the best answer.
- 48:52I don't care.
- 48:53I think there's also, I'm also, whenever I depend on a language model to do any kind of like filtering judgment, I'm always slightly concerned in the back of my mind about specific things that I put into the prompt that might like really bias the output.
- 49:09So...
- 49:10This prompt is actually interesting because first I tried to give it as much context as possible.
- 49:14And so like I said, I'm here for one morning and afternoon.
- 49:16It's a Thursday.
- 49:18I said it's a Thursday because maybe some things are closed on Thursdays near Queen's Park because maybe it would.
- 49:22But because I said Queen's Park, which is a particular park in like a part of Bangkok, a lot of the suggestions that the model generates are like, oh, you can spend the morning at like Queen's Park.
- 49:35It's a nice park, but it's not the biggest park in the city.
- 49:40It's a park.
- 49:41But because I put this specific string into the prompt, I think given the kind of early shift tuning that the model has had, the model is like, oh, like...
- 49:51the human rater will think the output is better if it's like more aligned with the instruction.
- 49:55And so I'm gonna really mention all of the aspects that were in the instruction.
- 49:57And so I'm always a little bit afraid of any kind of instructions over steering the model.
- 50:01And I think very heavily customized custom instruction would sometimes give me the same worry as well.
- 50:08Maybe it's too, it's biasing a little more than I would want on like what I specifically want.
- 50:12I think you're right.
- 50:13Maybe I don't want that.
- 50:14It does do that.
- 50:15It's like, it's such a yes man.
- 50:17Like, and so it connects everything back to my custom instructions sometimes.
- 50:20And I'm just like, that's, that's not relevant.
- 50:22Like, don't, don't do that.
- 50:24Yeah.
- 50:24Yeah.
- 50:25I want to be like a generic human.
- 50:26I think I'm willing to put up with the annoyance of that because every 10 things it says, it says something totally brilliant.
- 50:34And I'm like, I cannot believe you just did that.
- 50:36And so I assume it'll get better over time, but there's definitely a cost to it.
- 50:42Yeah.
- 50:43I have a couple other kind of use cases and things that I do when I'm prompting that I don't have specific examples for, but we could try one that I think are interesting or worth noting.
- 50:53One is,
- 50:56continue writing.
- 50:57So continue writing.
- 50:58This doesn't really apply to if you're using chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat, chat,
- 51:23I think it's interesting because there's kind of, first of all, it's a very kind of brain dead thing to try.
- 51:28And so this is kind of a weird doc to try to do this in.
- 51:31But if I have like a doc, I don't have any that I can go to immediately.
- 51:37But if I have, if I'm writing about like writing about HCI or like writing a blog or making a list of something, sometimes I want to kind of a brain dead.
- 51:47like just give me more ideas like this button and the continue writing prompt is kind of like a, give me more ideas like this button or like continue on my thoughts without like any- Let's make a list.
- 51:57What I wanna do, okay.
- 51:58So I have a bunch of books in front of me and I wanna see if it can recommend books based on the books I have in front of me.
- 52:04Okay.
- 52:04So I want to, I've read and liked.
- 52:09Okay.
- 52:11The Brothers Karamazov.
- 52:17I'm going to have trouble spelling that.
- 52:18K-A-R-A-M-A-Z-O-V.
- 52:22Okay.
- 52:22Okay.
- 52:24Let's see.
- 52:26Medieval technology and social change, which is really good.
- 52:30It's about how the stirrup changed everything in the Middle Ages.
- 52:37Exhalation, Ted Chiang.
- 52:39Let's give you another one that's sort of left-fieldy.
- 52:42The Essential Kabbalah.
- 52:44And I'll do one more.
- 52:46I feel like I'm missing some stuff that I would normally.
- 52:48Let's say Defense of Socrates.
- 52:54Okay.
- 52:55Defense of Socrates, not Defense.
- 52:58Oh, Defense.
- 52:59I think that's a good book title.
- 53:00That's a good prompt.
- 53:01Okay, continue writing.
- 53:07Okay.
- 53:07Okay, The Gene, Intimate History, good.
- 53:10I cannot believe it.
- 53:13It's very generic.
- 53:15Okay.
- 53:16So it gave me sapiens.
- 53:17I can't believe it would do me like that.
- 53:21I mean, statistically, it's probably accurate.
- 53:25In the pool of all...
- 53:27I feel like this might be better with ChatGPT.
- 53:29If you copy-paste this into ChatGPT, I'm curious what happens.
- 53:35Well, here's what I do.
- 53:37First, ask it to tell you what vibe these books have.
- 53:43and then ask it to recommend.
- 53:45Here are some books.
- 53:51What is the general vibe of these books?
- 53:59One thing I love about Chachipity is it just doesn't care if you just make spelling mistakes.
- 54:03I know, it's amazing, isn't it?
- 54:04It just knows what you want.
- 54:09Oh, it's writing a lot.
- 54:12I think that's pretty good, getting a bunch of stuff, and then you can say, okay, sort of summarize that, and give me the overlaps or whatever.
- 54:23Philosophical, historical, spiritual, and speculative things.
- 54:25I definitely picked a pretty random assortment.
- 54:28I wonder if it could compress.
- 54:31I want it to compress a little more, or maybe we can hit the redo button, whatever you think.
- 54:36What would you do?
- 54:37I would say,
- 54:41Can you synthesize your detailed descriptions into one description topic reference?
- 54:58Deep, intellectually stimulating themes that explore the human condition philosophy and the interplay between society, technology, and spirituality.
- 55:05That seems like me.
- 55:08Sure.
- 55:09And then I can probably ask it, can you recommend me some more books like this?
- 55:17And I would also I would also mention we'll see what it does.
- 55:20But like one thing that I find is it'll it'll it will do like pretty well known things.
- 55:25And so asking for like off the beaten path or lesser known works is good.
- 55:29Good old Shabbat.
- 55:30Perfect.
- 55:30Like love that book.
- 55:32It was definitely wrong about a bunch of stuff.
- 55:33But like these are these are questions.
- 55:35Great book.
- 55:35For sure.
- 55:36I love Sophie's World.
- 55:37Incredible.
- 55:38Zen and the Art of Motorcycle Maintenance.
- 55:39One of my favorite books.
- 55:41The Man Who Knew Infinity and Never Read It, but that sounds quite good.
- 55:45Cosmos by Carl Sagan is literally right there.
- 55:48So we'll take it.
- 55:50Aha!
- 55:50You got Sabians again.
- 55:51I got Sabians again.
- 55:54Maybe you need to discuss some instructions.
- 55:56I can't escape Sabians.
- 55:59I will say, just to redeem Notion AI a little bit, I want to try doing something like that here, except I'm going to ask, can you, for each of the books above...
- 56:13bold the book titles and add a description of the vibe of each book.
- 56:21Interesting.
- 56:23It's just a bit shorter.
- 56:24That's way better.
- 56:25That's very cool.
- 56:27That's done.
- 56:27And then now this is a document that I have.
- 56:30So I can maybe up here, I can add a quote block and be like, synthesize the vibes below into a single paragraph.
- 56:40Holy shit.
- 56:45Okay, synthesize more.
- 56:51Wait, wait, wait, wait.
- 56:52So you said synthesize more and then all caps compress.
- 56:55I love it.
- 56:57AI researcher uses AI.
- 57:02You only have 50 words.
- 57:05This is the secret, folks.
- 57:06All capitals.
- 57:07All caps, all caps works.
- 57:08If you look at OpenAI's system prompts for a lot of their tools, all caps, all caps works.
- 57:15Okay.
- 57:17Only, ah, this is fine.
- 57:20We'll keep these.
- 57:21I think that's pretty good.
- 57:22This is making me feel like, you know, we should cover like some of the things in Notion AI that like I might not know, like keep, tell me some more stuff.
- 57:30It's still generic.
- 57:31Yeah, it's still generic.
- 57:33You could ask it to do things that are off the beaten path and see how it does.
- 57:39I might just also copy.
- 57:44looks like the that's interesting try books more off it's interesting i love the dispossessed incredible book um left-handed darkness incredible i'm a huge ursula k leguin fan so it definitely got me i love invisible cities i'm gonna do a final trick which is turn this into a table with columns oh my god for
- 58:11Columns for title and author and summary.
- 58:15Master Margarita is on my list.
- 58:16So like, this is really good actually.
- 58:19And whoa.
- 58:21And now I have a table.
- 58:23Oh my God.
- 58:25And I believe if I want, I can also turn it into a database.
- 58:27And now I have a database.
- 58:29This column needs to go, but there we go.
- 58:36So that is very freaking even evens out that evens out the competition.
- 58:44Um, so that, yeah, that's really great.
- 58:47Wait, tell me like, okay.
- 58:49Thinking about when you would use this, like,
- 58:53When am I going to be doing this in Notion and what is that good for versus some of the same stuff in ChatGPT?
- 58:58Because I think the outputs are reasonably similar and I think you're using GPT-4 under the hood.
- 59:04I don't know if you've announced that or not or I don't know what you're using, but it's close at least to GPT-4, whatever it is.
- 59:10Yeah.
- 59:13So yeah, when are you using this?
- 59:16What's it useful for?
- 59:17How do people think about how to incorporate this in their lives?
- 59:19Like I use Notion all the time and I have not used these AI features yet.
- 59:22And I think I should.
- 59:24I think, so this, what I just did actually, I think this is kind of contrived, but I think this is actually a good example of one of the workflows that I use a lot in Notion, which is like, take something that's kind of pretty rough and then try to add a little more meat around the bones and then eventually turn it into something that's a little more well formatted and presentable.
- 59:43This is really nice if you have like a bunch of meeting notes and the way that like I take meeting notes is just like a rainfall of bullet points.
- 59:49And then at the end, I have bullet points that like basically only I can decipher and it's not representable.
- 59:54But I could go through and say, hey, like, like turn these into kind of prose, turn these into paragraphs and then maybe add some headings.
- 1:00:00It's quite good at all of those things.
- 1:00:01And then you have in the end something that's quite presentable.
- 1:00:03And so I think going from any kind of a rough sketch to something that's more structured is useful.
- 1:00:10More generally, I think.
- 1:00:12As a general rule for any AI tool, if there is some context in which you're working, when the tool has more context about what you're trying to do, either in the same doc or increasingly in other documents as these tools are all trying to do retrieval, the better.
- 1:00:26And so for things like this kind of programming question or for like asking about Bangkok, there isn't really much context besides like maybe a customer instruction about who you are and what you like.
- 1:00:37And so Chachapati might be better.
- 1:00:39It's able to do things like browsing.
- 1:00:41And then maybe the very long conversation support in Chachapakee is useful for things like, well, one of the things that I like about this, as I kind of demonstrated here, is you're not having a kind of just face-to-face conversation.
- 1:00:57two actors engaging with some kind of a changeable mutable state, like a document.
- 1:01:04And so maybe it outputs something, you can make edits to its output and then ask it to try again.
- 1:01:10You can take it on output at the table and turn it into something more complex.
- 1:01:13And so being able to collaborate on something I think is useful in addition to the context that it brings.
- 1:01:18That is very cool.
- 1:01:19Another thing that Notion recently gained the ability to do is to answer questions.
- 1:01:25And so you could ask it, I don't know what, maybe I could say it's like, what articles I've read talk about esoteric programming.
- 1:01:37And what's in this Notion?
- 1:01:40It's my personal notion.
- 1:01:42So it's got, hopefully it doesn't say anything private.
- 1:01:50Cool, okay.
- 1:01:51So there's this thing called, these are mostly like web articles that I've clipped into my notion.
- 1:01:57This is a blog post that I wrote.
- 1:01:58And so programming portals is kind of interesting.
- 1:02:03This is definitely a web Clipper article.
- 1:02:05And it's just, it's kind of formatted in a really weird way because of the way that the web Clipper works, but it's able to pull out the information in there.
- 1:02:14Can you ask it, like, what's an embarrassing secret that I definitely don't want to share on an interview show?
- 1:02:20Yeah, maybe we'll do that after the show.
- 1:02:24Yeah, that'll be the director's cut for paying subscribers only.
- 1:02:28Yeah, exactly, exactly.
- 1:02:29Put that behind a $59.99 paywall.
- 1:02:30That's really cool.
- 1:02:31What do you find yourself using the Q&A bot for?
- 1:02:40For the Q&A, Q&A stuff is actually a lot more useful in a team context because if it's just my notion, I have a very precise way of organizing my notion and I know kind of where everything is.
- 1:02:52In a team, though, not only are there a lot of people changing stuff inside the notion, there's also a lot of people just like changing the code base and like updating like when holidays are and like what the policies are.
- 1:03:03And so...
- 1:03:06I frequently ask it questions about like, how to do X?
- 1:03:09Like, how do you like file for PTO?
- 1:03:11Or how do you update Redis settings in our like Redis cluster?
- 1:03:17Sometimes I even just ask it like,
- 1:03:20If you have tens of thousands of meeting docs like we do, sometimes you just want to remember, hey, there's a meeting where we talked about comparing these different embedding models.
- 1:03:29I don't know where these meetings are.
- 1:03:30And all the meetings are called AI team weeklies, and so I can't really find it.
- 1:03:33And I just ask it, what's the one meeting where we talked about cohere's embedding models?
- 1:03:37And then it'll put me to the right doc.
- 1:03:40And so it's useful for things like that as well.
- 1:03:42But in a collaborative context, when there's kind of a forest of knowledge that you don't exactly know how to navigate, I found it to be a lot more useful.
- 1:03:48Yeah, I mean, I like...
- 1:03:51I wish this existed like 10 years ago because I think I've told you this.
- 1:03:54I've complained about this to you before.
- 1:03:55That's why I was very excited when you launched this because in my previous company, I started an enterprise software company, ran it for a few years and sold it to this huge enterprise software company called Pega, which is great.
- 1:04:09The interesting thing about that acquisition is I ended up running the business unit or the company inside of Pega.
- 1:04:17And we built this co-browsing tool and Pega had this like 300 person Salesforce, um, who was charged with like now selling this new tool that, that they had acquired.
- 1:04:26And, um,
- 1:04:27The thing about salespeople is they will never do anything unless it like directly like creates a bonus for them.
- 1:04:34So, um, and the interesting thing about, uh, about that experience for me is, um, they all wanted to sell it, but none of them wanted to actually like learn how to demo it or to learn, learn about like what the different features were or whatever.
- 1:04:48So I kept getting asked like all these different questions all the time.
- 1:04:51Um,
- 1:04:53There were actually, there were some really nice ones that I'm thinking about right now that don't fit into this category, but a lot of them were just like constantly barraging me with questions as the co-browse guy.
- 1:05:04And I would be like, it's all documented.
- 1:05:07Like it's literally in...
- 1:05:09in a document, just look at the document and it just never worked.
- 1:05:12And I just feel like having that, having a layer in between me as this like hub for information and anyone that wants to ask the same question all the time is like, just, it's super helpful for organizations, like especially larger organizations where,
- 1:05:29um you just never know where things are filed you never know if the document's up to date like blah blah and i feel like this is a sort of first step to cutting out those repetitive questions for certain people that certain people get at organizations that they spend all their time answering the same thing over and over again it's great yeah i mean that's definitely one of the key use cases we've built it for is those like very large teams where there's a lot of knowledge that people don't
- 1:05:50Don't immediately, don't even know whether it's documented.
- 1:05:52Don't know like who to ask.
- 1:05:53Yeah, don't even know who to ask.
- 1:05:54Yeah, yeah, that's really interesting.
- 1:05:57I love it.
- 1:05:59So I know you had a couple more things on this.
- 1:06:01Let's see, random notes, GPT for turbo.
- 1:06:05Seems to be lazy.
- 1:06:06Or if there's stuff above, I want to make sure we cover everything that you were thinking about.
- 1:06:11We kind of talked about these.
- 1:06:13Okay.
- 1:06:14This is the last kind of prompting trick that I'll talk about.
- 1:06:16This is more useful in the prompt engineering world than in the talk to chat GPT world.
- 1:06:22Yeah.
- 1:06:23But it's something like once I learned about this trick, I kind of use it in almost every prompt that I write.
- 1:06:28Yeah.
- 1:06:30If you, so there's a technique for producing very high quality summaries of a certain type in a technique called chain of density is published in the paper.
- 1:06:42The basic idea behind the technique is when you ask a language model to write a summary, generally it tends to be pretty sparse in detail.
- 1:06:49It tends to have a certain kind of
- 1:06:52tone, it's rarely like super, super dense with information and complete.
- 1:06:58But you can ask a language model, don't just output the summary.
- 1:07:02Before you output the summary, first like write a draft of a summary and then consider what you've left out in it.
- 1:07:06And then now write a second draft that includes the things that are left out in it without increasing the length.
- 1:07:11So you're making...
- 1:07:14Over five drafts, you're asking the language model to make its own output more and more dense, and then output the final version.
- 1:07:20And I think you can apply the same kind of philosophy to any output where you want to specific property, like concision.
- 1:07:28Earlier today, I was messing around with the prompts for how to take a document or page and try to pull out the main key ideas and topics in that page.
- 1:07:36And if you just have a...
- 1:07:39kind of zero shot prompt to do that often the language model will like miss certain topics that are talked about and like generally be quite verbose but instead i wrote a prompt that said first like write a draft consider uh any topics that you might have not might have missed on the page and also consider how to make each of these topics more concise and then in the final one make sure that like
- 1:08:00the every topic is only five words, five words long.
- 1:08:03And then it writes like three different drafts and then outputs like the fourth version.
- 1:08:07And I found that if you're, if you're iterating just in like chat GPT, this doesn't make as much sense because you can just ask it once and then make, ask it to make it shorter in the next turn.
- 1:08:15But if you're writing like a, a prompt, that's a part of a piece of software, I found this to be yield pretty good outputs all the time.
- 1:08:21I see.
- 1:08:22I got it.
- 1:08:22No, I, I, I like that.
- 1:08:24And, um,
- 1:08:25It sounds like also it's a variant of the sort of chain of thought thing where you're asking the AI to...
- 1:08:35write out its thinking steps and that generally improves performance.
- 1:08:40And I found that that works too in ChatGBT is to say like, I want you to create a summary, but before you create the summary, like talk, let's like output what you think the elements of a good summary would be or another like, like when we, earlier when we were talking about the book recommendations, like having an output,
- 1:08:58Yeah, this is exactly kind of what we did, right?
- 1:09:00But just unrolled into multiple steps.
- 1:09:02Yeah, and that's always going to make, if you break it up into steps and make it think through each step, it's sort of like, it's like writing out your thinking before you make a decision or whatever.
- 1:09:11Like it's useful for humans and it's useful for AI.
- 1:09:13Right.
- 1:09:15Yeah, exactly.
- 1:09:16Cool.
- 1:09:20You noted earlier about the GPT-4 Turbo being lazy thing.
- 1:09:24This is something I've heard anecdotally from other people and I've felt in some internal evaluations that we did for different prompts that we have as well.
- 1:09:33GPT-4 Turbo for reasons that I can only guess about, lazy is kind of a vague description, but I think a more precise description might be, GPT-4 Turbo tries to be a lot more efficient with the compute that it has.
- 1:09:47to spend.
- 1:09:49One way that it does that is I think given the same prompt, it's outputs generally consume fewer tokens.
- 1:09:55Sometimes it means more concise outputs.
- 1:09:56Sometimes it means it's just as less commentary around the things that it's doing that probably saves up an AI money.
- 1:10:02Sometimes it's also what you want.
- 1:10:03Like concision is generally good.
- 1:10:05It also, I think anecdotally is,
- 1:10:10less likely to use other tools like DALI 3.
- 1:10:13So you have to specifically tell it, please generate me four images, not one, and so on, which is interesting.
- 1:10:21Yeah, I've been finding that, and it's very annoying.
- 1:10:23And I actually accidentally had a viral tweet today because I was up late last night and couldn't sleep.
- 1:10:30And I fired off this thing about...
- 1:10:33I was trying to get it to summarize, to print out some text from a book.
- 1:10:38I took a picture of the book, and I was like, please print out the text.
- 1:10:41And it was like, sorry, I can't do that.
- 1:10:43And then I was like, what the f***?
- 1:10:45Why is this happening?
- 1:10:46And I just put it on Twitter with a bunch of exclamation, a bunch of question marks.
- 1:10:49And then now it has like...
- 1:10:512000 likes on it or whatever.
- 1:10:52And I didn't get any work done today.
- 1:10:54Cause I was like fretting over like this tweet.
- 1:10:58But it's also probably the kind of case where if you, if you thought like, Oh, like my career is on the line, please do this for me.
- 1:11:03It'll probably do it.
- 1:11:04I did that.
- 1:11:04I did the grandmother trick.
- 1:11:05I was like, my grandmother will die.
- 1:11:07And I didn't do it.
- 1:11:09And, but then I started a new chat and I, and it, it did work.
- 1:11:13And apparently it's more likely to say no.
- 1:11:17If you say, please.
- 1:11:18which I had done.
- 1:11:19I'm usually very polite because I would like to survive any kind of AI apocalypse, but apparently commanding it is a little bit more likely to yield good results.
- 1:11:30I wonder if there's a statistical thing that it's picked up on there where maybe in human dialogue in general, people are more likely to say please in a situation they're more likely to get a no as an answer, and so saying please makes no more likely.
- 1:11:44I don't know.
- 1:11:45I don't know.
- 1:11:46We'll find, we'll find out maybe at some point.
- 1:11:50Um, so, okay.
- 1:11:51So what is this, what is this platform.open.ai thing for, uh, for iteration use cases?
- 1:11:55The last thing is, um, sometimes I will, so earlier I talked about this distinction between just like,
- 1:12:01scripting and iterating in kind of real time versus like writing a prompt.
- 1:12:05Sometimes I'm trying to accomplish a task, like output some document or output in a very specific format.
- 1:12:12Like maybe I have a list of topics and I want to output a table in a very specific format or, or like output some kind of like a structured data in a very specific format.
- 1:12:20that requires iterating on the prompt itself to like generate something in a single turn.
- 1:12:25Or maybe I want to like mess with the system prompt.
- 1:12:28In that case, sometimes I just iterate in the like OpenAI playground itself, like the platform.openai.com where you have full control over the temperature, full control over like the tokens that it can and can't generate the system prompt itself and the user prompt.
- 1:12:41There, you can also do more advanced prompting techniques, like putting words in the AI's mouth.
- 1:12:45So you could pretend that the AI had said something earlier that makes the AI more likely to do certain kinds of things.
- 1:12:53That's another trick for sometimes getting the AI to do something that it doesn't want to do, is construct a fake conversation with a...
- 1:13:03construct a fake conversation such that there were previous turns where they, where you ask the AI to do this and the AI is like, sure, I'll do that for you.
- 1:13:09And then you ask it the real, the real request.
- 1:13:12And then like, you kind of force the AI's hand to do it.
- 1:13:15I love that.
- 1:13:16Some more advanced techniques you can do in the playground.
- 1:13:18If you want to get through the guardrails, go to platform.openai.com and then like,
- 1:13:22insert a fake chat history with with chat gpt saying it it shouldn't saying things it shouldn't say and it'll do whatever you want is what you're saying i love that i think that's so uh it's it's a it's a uh a bit more likely this is um the place where i first picked up on this is this documented in anthropics cloud prompting guide where i think they literally say something like put words in claude's mouth and it's more likely to do something interesting yeah hmm
- 1:13:49Well, this was fascinating.
- 1:13:53I really appreciate you taking the time to share this stuff.
- 1:13:56I feel like I learned a lot.
- 1:13:58Of course.
- 1:13:59Yeah, it was fun talking about a lot of different breadth of topics.
- 1:14:03Cool, man.
- 1:14:04Well, thank you for your time.
- 1:14:05Thanks for sharing.
- 1:14:06And yeah, I'll see you soon.
- 1:14:08See you soon.
- 1:14:09Thanks.