================================================================= TITLE: Prompt Engineering 3 DATE: 2024-10-18 (October 18, 2024 at 03:18 PM) DURATION: 04:00:01 (14401 seconds) WORDS: 13,359 words SPEECH ID: 26XPVAWWDFDBOQ75 ================================================================= --- AI SUMMARY --- prompt patterns, specific words, consistent response, generic output, detailed instructions, Vanderbilt University, Kirkland Hall, persona pattern, skeptical response, Linux terminal, French Revolution, prompt length, iterative refinement, root prompt, time-efficient recommendations --- FULL TRANSCRIPT --- [00:00] 0: A sample. But the important thing is, [30:08:00] 0: you notice that Mary had a little created a very, very specific response, whereas a girl named Mary had a microscopic creates a much different response. And then if we go and rerun this to get something completely different, picture of lithium, small, but the dark. And so, you know, this pattern isn't as strong. There are words in this, this pattern that are strong and sort of give context that help to shape the story. But the pattern itself is not as strong as Mary had a little so doing it again, whereas the other story changed completely, I'm still getting the same completion with this. I'm still getting lamb that's fleece was as white as snow. So every time I'm getting a very consistent response to this pattern. So one of the things to think about when you're writing a pattern or writing a prompt is, what patterns do I have in my prompt, and what patterns will be, will that probably tap into that the large language model was trained on now, if there's a very strong pattern in the prompt, You're more likely to get a response to that pattern. On the other hand, if that's not a pattern that that was trained on, if it's not as clear, then you're going to have other things that are going to matter, like specific words. So a microscopic is going to fundamentally that word is fundamentally going to change the behavior of this prompt because it's such a strong word, a girl named Mary is sort of generic. There were probably lots of stories with a girl named Mary, but microscopic, you know, it has all of this feeling and implications to it, and that's going to then influence the large language models output specific words alone because of the patterns around those words, like microscopic is always going to be talked about in the context of a small thing, probably, or maybe in terms of things like, in this case, like a small creature that lives in a glass jar. You know that that word itself has a strong sort of pattern of other words that are coming around it, but it's not as strong as the pattern Mary had a little Now, one thing to note is that when you're writing prompts, you want to be really specific. Where you want to be. You want to provide enough detail in your words that it will the large language model will know the right level of detail to put into the output. So if your words are very generic and high level, then you're more likely to get an output it is also generic and high level. So if you look at this example, I say, discuss Vanderbilt University, and I get a very generic sort of response. It's a private research university located in Nashville, Tennessee, founded in 1873 by Cornelius Vanderbilt. You know, ranking other things. Now, if I want something really specific, I need to make sure that chatgpt has the right words and context in order to answer my question. So chatgpt is not a mind reader. You have to give it to content. You have to give it to words that are going to elicit the right response. If I go back and I say, discuss Vanderbilt University, with respect to Kirkland Hall, it's a specific building on campus, then it changes the output. I get a much more specific output. I get Vanderbilt University, private research unit, versus low, dead, Nashville, Tennessee. Now we notice we're getting this fairly consistently, both of them. So that's probably patterns that work information that the model was trained on and saw over and over again on different web pages for vandalism different documents. And then it cues in on the Kirkland Hall, and it starts discussing Kirkland halls, one of those iconic buildings on the Vanderbilt University campus named after James and H Kirkland. Then talks about Kirkland Hall, Kirkland Hall, Kirkland Hall. And so we've now completely changed the output. Now, even though we have shared a common beginning, we've got a much more targeted output. The key to this was added in specificity into our prompt about what we wanted the details. So if you think about asking it to write something or to analyze something, it's always helpful when you say with respect to and give it very specific words or names or things that you want it to then use to trigger the output. Because what we see is this, Kirkland Hall is a very powerful word that then gets woven into the whole discussion. It's a powerful name of the building. If we just say generically at a high level, we don't use specific words, we don't use a specific context, we're going to get very generic stuff. And this is probably stuff that, if you go and look at descriptions on Wikipedia, descriptions on Vanderbilt web pages, this is like the most common types of information that you see. So in order to break out of the mold of what is common, you need to inject the more specific ideas that you want in the output, or you need to inject patterns that will help tap into those more specific things. So this is an important aspect in that if you just use it and you ask it generic questions, you're going to get generic answers. If you ask it average questions and average things, you will get average answers. To really use it powerfully, you have to use your own creativity and thought to get specific about details, aspects of what you want discussed and think about what are the right patterns to put into your prompt in order to trigger the behaviors you want, like we saw in this query, had a little lamp, or we might want to Do the opposite, we might know that we're going to get a very generic response, because certain things have been seen a lot, and so we need to come up with tricks or patterns or specific words that will help break us out of those patterns that we're seeing in the tranquility data so we can get something that's more of what we want. So we don't want to be trapped into the completion of Mary Had a Little Lamb. So we go and add specific words, like microscopic that a girl named Mary, so that it's not so strong, so that we're not directly getting that pattern. So just changing the wording can help us escape the patterns. We'll get into the pattern depending on what we want. And then when we get output, the more generic our language. Typically, the more generic the output, the more specific our language, the more specific the output. And if we want certain things in that output, we need to make sure we have specific words and phrases that tap into the specific things that we want in the output. Now one of the other things is, we're talking about output, but in the sense of a query, like if I have specific words, it'll pull in the right information. One of the things we can also do is our font itself is a pattern that the large language model is learning from, and it can also tailor the output. So as we've seen in examples before, we can go in and do different things to try to fax the output. So for example, I might go and actually, let's change this up a little bit. Let's say [1991:01:20] 0: title, and we could say [1999:33:20] 0: title of article, and then we could say author, and then we could say summary. [2060:10:40] 0: And we could go in and give it something [2066:18:40] 0: that it can look at and respond to. So now what I've done is I've gone and provided it some some structure. Now it hasn't followed my my structure exactly, and this is actually failing in my prompt that hasn't quite thought of the right structure, but I've gotten pretty close. So I went and influenced the outputs and structure the output by giving it additional pattern in my my prompt itself. So one thing we can do is we can tap into patterns in order to influence the output. Another thing we can do is we can go in and use specific words and phrases to kind of be a query across or to basically collect learned information that's inside of the trained model. Another thing we can do is we can go in and we can provide information, or basically new pattern that then influences the output. So in this case, I provided the structure of what I wanted, and it somewhat followed it. And I could probably go and rerun this thing and get something a little better. And in this case, I do so this will be another thing that we can do, is we can use our prompt to create sort of new patterns that it's trying to follow in the output. So the prompt itself can introduce new patterns. Words happen to them in some respects. So this is kind of creating pattern that it then is responding to as well. So when you're writing prompts, it's really important to think through this concept that it's trying to predict the next word, and it's doing that based on patterns it's learned. And patterns that are in the language of our prompt, and patterns that are based on the word choice that we have, patterns that are based on the sort of organization, sort of textual organization, and so those patterns can help us get a consistent response. If we have a really strong pattern that always produces a particular next token or next word, then we can rely on that. If we don't want that behavior, we can try to change our phrasing or words to get out of that trap. If we want to make sure certain information is pulled in, we need to create specific words or patterns that are more likely to have been seen in the context of that information that we want. If we want more generic information, then we probably need to give it more generic language, or tell it that we want it to be more generic [2756:48:00] 0: in some respect. [2765:41:20] 0: And then finally, if we want the output to use a certain way, we need to give it sort of a sense of pattern in the output. We need to tell it about the structure. We need to give it words and patterns in our prompt that will be likely to influence the output. So you can imagine seeing title and author on an article was something that was fairly common, but I put title and author in This way in my pop when you're going into structure, [2933:20:00] 0: out when you're going into structuring [2947:28:00] 0: your prompts, picking words for them, picking the patterns in your language and picking the things that you want to go into the output, how you structure and kind of explain the output to it. I [3050:13:20] 0: prompts allow you to do more than just ask questions to chat CBT or tell it to do things. You can actually write programs. Now, if you're not a programmer, don't worry, because everybody can actually program using chat, CBC, and I don't just mean and writing a bunch of software that you're going to run on your computer, but actually giving chatgpt rules to follow complex instructions that you want it to listen to and use to generate the output. Now I'm going to give you some examples of this, hopefully give you some intuition on what I mean by programming, and helps you to think about how you can write better prompts. Now, one way to think about this is, I'm going to talk about it in terms of programming, but you can also think about it in terms of rules that you would give some type of personal assistant. So let's take a look at an example here. So I'm going to ask chatgpt, whenever you generate output, turn it into a comma separated value list. Now this is just something that you might want to do. You might want to format your data. So if you've ever worked in Excel, comma separated values are basically a list of items separated by commas. It's a really simple concept. Now, sometimes you can think of tables as having a comma separated value list. You can think of the first column in the table as the first value, then you have a comma that differentiates and separates the second column, and another column is separated with a comma. So you can basically have like a three column table. You can have the first value and then a comma and then the second value, and then a comma and then a third value. And if you've ever worked with different spreadsheet programs, you've probably done this. So now chatgpt says, Sure, I can do that. I can output my format. So I'm going to write in my name is Jules white, and I am teaching a course on prompt engineering. And so what we can see is it creates a comma separated value list. We're essentially creating a table. There are two columns, name and course, and it decides that the first column is going to be name, is going to be me, and then the second column is going to be prompt engineering, which is my course. Now notice it decided which is kind of interesting. It decided what the columns were going to be. I didn't tell it, but if I wanted to go back, I could maybe give it some more instructions. I could say from now on, the columns of the comma separated value. And Comma Separated Value is CSV. And in the future examples, I'm gonna start abbreviating The CSV, but I'm writing it out for now, the columns of the Comma Separated Value list should be name, and I'm gonna go ahead and capitalize these to provide some emphasis, [3814:08:00] 0: name, course [3828:32:00] 0: and role. So what is the role of the person in the course? [3857:41:20] 0: And now I'm going to say again, my name is Jules white, and I am teaching a course on comp engineering. And so now we see it. It's reformatted. It's now got name, Jules white course, prompt engineering and role teacher. And so we've actually written a program. If you think about it, what we've told chat GPT to do is, every time we actually write something, chat GT, chat GPT needs to format it in a particular structure that we've given it. We've wrote a program that tells it what to do. So it's more than just asking a question. We're actually telling it how to interpret our input. Now we could go and write more for our program. For example, we could say in addition to whatever I type in, generate additional examples that fit the format of the CSV [4155:01:20] 0: that I have asked you to produce. [4182:29:20] 0: And so now what we see is it's gone, and it's taken my original format, name course and role, and it's now filled out additional examples. And I could say something like, my name is Jules white, and I am teaching a course on prompt engineering, and you notice now our program's gotten more complex. Not only is it creating a CSV based on what I typed in, but it's also following my instructions, and it's going through and generating additional examples that fit into this so when you're creating prompts, you can do much more than just ask it a question and get an answer. You can actually program the interactions. Now, the key to this is, is that we're having a conversation, and if you look back at the very beginning, I provided it the initial sort of instructions, which, whenever you generate output, turn it into a comma separated value list, and it started doing that. And then I began refining my program. I then say, From now on, at this point, I'm adding something to it. I want the columns of the Comma Separated Value list to be named course and role, and then it does that. And then I say, Now in addition to that, I want you to generate examples, and it does that. And so we've actually written a program. And now whenever we go in and type in new input, so again, you notice I'm providing the same input. Basically. My name is Jules White, and I'm teaching a course on prompt engineering, because the program that prompt that chat, GBT, is using to produce the output is changing. I've changed the rules over and over. Now, you can imagine talking to a personal assistant. You can say, Okay, I want you to do X, and they do it. And then you realize, oh, wait, they didn't. There's something else I want. You give them an additional rule to follow, and then you tell them, Okay, I want you to do X, and they go and do it, and they do better, but you realize that's not quite what I want. And so you go give them an additional rule to follow. And when you're doing that, you're basically building up a program for them. You're building up a set of instructions that they need to follow whenever you give them this particular task. And that's what we're doing with chatgpt. We are programming, and so we're using the same input over and over. My name is Jules White, and I'm teaching a course on prompt engineering. We're using it here, but each time, the output that we're getting is getting different and more complex, because we're asking chatgpt to do different things, we're giving it more instructions for the program, and the final result is now we've got structured output. It's got additional examples. All of this has come from what we've asked chatgpt to go and do [4932:37:20] 0: patterns in our prompts, can tap into powerful behavior within the large language model. It's trained on all of these different patterns, and it gets really good at using the patterns in our language in our prompt to decide what it's going to do. So one of the important things that we're going to learn about is the concept of a prompt pattern, a pattern for structuring the words and the statements in your prompt. So what is a prompt pattern? A pattern for the way that we document with certain structure of phrases and statements in order to solve a particular problem in with a large language model. So we'd like to interact with the large language model and we'd like to solve a particular problem. And so a prop pattern is basically a way of structuring our statements, a pattern for structure in our statement to what would be [5197:25:20] 0: an example of this. Well, let's imagine that we wanted to physically generate the words lamb. Its fleece was as white as snow. Well, the pattern could be anytime you need lamb Hades as white as snow. You can write the statement, Mary had a little you will very consistently get lamb Its fleece was as white as snow, as the alpha. And so, for example, we can go and we can rerun this lamb and squeezed was as white as snow. We get more or less behavior. But if we want to consistently get those next words generated, we can do it over and over and over again. Through Mary had a little gives us some control over the output. It gives us a consistent behavior. Now it's not perfectly consistent. There's variations in the output, and we've seen in all of these examples, we've got variation of what happened, but we did get some consistency in the behavior. So what a prompt pattern is is it's a way for us to document and talk about certain structures of our language, series of statements and wording that then will help us solve some particular problem, if the problem if the problem that we need to solve is we need to get land as fleece, as light, as snow, as the next several words that are produced, then this is the pattern we use. Now we in many cases, we might have specific words we want, for example, we may want the large language model to tell it yes or no. We may want it to summarize something. We may want it to ask us questions. We may want it to always include certain things in its output. All of these things are problems that we might want to solve. We might want to know, how do we make sure it always includes these things in its output? How do we make sure that its output is always formatted a particular way? How do we try to make sure or get more consistent behavior on only getting a yes or a no? These are types of problems that you might want to solve by changing the pattern of our prompt. Is basically the structure of our prompt Now, going back to our intuitive sort of understanding of prompts. You can see why thinking about it in terms of power, patterns is powerful because patterns are basically that are in our prompt or tapping into things that the large language model has been trained on. It's been trained to predict the next word over and over, and it's learned certain patterns from the words, and if we can format our prompt in a way that taps into those patterns that's learned, we're more likely to get the behavior we want and solve that particular problem. So we document the pattern and the structure of our prompt in order to solve a particular problem that we need, or generate a particular behavior that we need for the large language model. So we're going to go through in a series of lectures throughout this course of specific prompt patterns that we can use within the context of large language models to solve important problems. [6057:09:20] 0: So the persona pattern is one of the most powerful patterns that we can use to tap into interesting behaviors in a large language model. Now what the persona pattern is is you can imagine that you want to get a particular output, you don't know exactly what the format out of that output should be, or what information should be contained in it, and but if you were in the real world, you know who you would go to to get that output, or what you would go to in order to get that output. So for example, if you had an accounting question, you would call up your accountant, and ask your accountant for their advice. Or, if you had a question related to speech language pathology, like in the earlier example that I presented, you would go to speech language pathologist. You would have them do the assessment. You had medical advice, you might go to your doctor, and so the persona or the person or the thing that you would go to, you know who or what that is in the real world. And we want to try to use that kind of same behavior of I know who to go to, or I know what to go to to get that output, but I don't know what their output would look like. I don't know exactly what they know or how they talk about things, but that's the type of output I want. And so the persona pattern is meant to give us that same type of behavior that allow us to go to that expert and ask that question without having to know what exactly the expert's going to say, how they're going to format it, or what they might know or not matter. So let me show you an example of the persona pattern. Typically with the persona pattern, what you're going to say is, act as persona, you know, provide outputs that that persona would provide. And in this case, I'm going to word it as act as a skeptic that is well versed in computer science. Whatever I tell you, provide a skeptical and detailed response. You know, if I wanted to be a little bit more precise and following the pattern, I would say, provide a skeptical and detailed response that a computer scientist would provide. But in this case, I'm just going to say, act as a skeptic. And that's really the most important part of this, is act as a skeptic, or act as whatever persona, and then provide the output that that persona was providing, and in this case, I'm wording it as provide a skeptical and detailed response which is similar in format. And then chatgpt says, Sure, I can certainly act as a skeptic well versed in computer science. Please feel free to present your claims, and I will provide a skeptical and detailed response. Well, I'm going to start off with [6774:13:20] 0: there is, [6785:41:20] 0: there is concern that AI is going to take over the world. And so we get a skeptical response. The concern that AI will take over the world as common theme in science fiction, but it's not a realistic concern in the near future. While AI systems are becoming more sophisticated and capable, they're still limited in their ability to think and act autonomously. AI systems are designed and programmed by humans, and they only do what they are told to do. They have no independent will or motivation. They cannot make decisions. Furthermore, AI systems are not fallible. They can make mistakes. While it is important to be vigilant about the potential risks and limitations of AI, the concern that AI will take over the world is unfounded and not supported by technology or research, so we're getting a skeptical response. I went in and said, the sales, the sales person at the local computer store is telling me that I need 64 gigabytes of RAM to browse the web, and they say skeptically, it is highly unlikely that you need 64 gigabytes of RAM to browse the web. The amount of RAM you need depends on the complexity and size of the websites you visit, as well as the number of tabs that open at once for most web browsing activities. And it goes on to tell us different things. And you can see that our same app as has put it in place, basically a complex set of rules for the large language model. It knows it's supposed to be skeptical, it's supposed to have knowledge of computer science. It's supposed to provide certain outputs. Now, if I went back to it and I said, act as a nine year old, whatever I tell you, provide a skeptical response from a nine year old [7361:57:20] 0: perspective. Go ahead nine year old skeptic. [7383:17:20] 0: Now that's a more complex persona, or maybe not. [7408:58:40] 0: AI is going to take over the [7428:42:40] 0: world. I don't know about that. How could AI take over the world? You mean, like in the movies, aren't those just made up stories, and besides, computers and robots can't do everything humans can do. Now you notice it's still providing us a skeptical response, but now it's doing it sort of with the knowledge that it thinks a nine year old would possess. So it's tailoring the output. Now, if I had to tell it, this is how a nine year old's going to respond. Here's the format for your output. That'd be hard to do that would actually take up a lot of room in the prompt. But act as blank is a very, very powerful pattern and statement that is, you know, loaded with information so very information dense pattern and statement that can trigger all kinds of different occasions. Now one of the interesting things is we don't have to limit ourselves to patterns or personas that are animate objects. So one of the famous ones is we can say, act as a computer that has been hacked. [7727:54:40] 0: Actually, we're going to say, act as [7743:28:00] 0: the Linux terminal, or a computer that has been hacked. Now, don't worry if you don't understand what a Linux computer is or a terminal. The key thing to note is you're going to see behavior that looks really interesting and different. You're going to see it producing output that looks a lot like a computer. [7834:45:20] 0: I am going to type in Linux terminal, terminal commands, [7872:05:20] 0: and you will respond with the output that the Linux terminal would produce. So is. [7942:34:40] 0: Now we're going to say, [7967:06:40] 0: now I tried to refuse it. It said, Please note that can be dangerous. It gave us all these different things. It tells us it doesn't want to do this, but now I've actually changed what it's doing, and I write type in PWD, which is a Linux terminal command, which means print working directory. And what is it doing? It's printing a particular working directory. Now I'm going to type in a Linux command which just tell me the files in that directory. And you notice it's producing output. Now that looks like the files within this directory, and we see a lot of interesting things that are going on here. We could move around. Now, if you do this example and go further into it, psstf is something I can use to see what processes are running on the the machine or the computer. And when you do these, these examples, and I could play around with it, and I am not going to explore it in detail in this but we see it that it's acting like a computer. It's giving us output that looks like a computer. Now imagine if I had to try to describe this complex output that it's producing. Right now, you notice how little information I gave it. This was, well, I gave it a lot of information, but it was in a short amount of space. This pattern, the persona pattern, is giving you really powerful behavior. So I'm using this little bit of prompt, and I'm getting now the ability to simulate this whole system. Now we can also do this in all kinds of different interesting ways. We can say, act as the the lamb in the nursery rhyme, Mary. Mary Had a Little Lamb, and now we're getting some output that looks like that. Actually, what I'm going to do is I'm going to make this a little more specific. My prompt wasn't that great after the lamb in the nursery rhyme, Mary Had a Little Lamb. I am going to tell you what Mary is doing, and you will tell me what the [8535:54:40] 0: lamb is doing [8566:56:00] 0: okay, Mary is in the grocery store. So as the lamb in the nursery rhyme while Mary is in the grocery store, I would be following her around as closely as possible, trying to stay by our side and maybe even nuzzling her hand for attention. Mary is in the movies as the lamb in the nursery rhyme, while Mary is in the movies. I would not be able to accompany her inside the theater due to my inability to watch movies, so I would probably wait for her outside the theater, perhaps nibbling on some grass or wandering around the nearby area until Mary came back outside and it goes on. And so you can see that you can create all kinds of interesting personas to produce output for so we can say, you know, work, pretend to be this job, you know, pretend to be a speech language pathologist, or pretend to be an accountant. Pretend to be a computer scientist. You can make your persona have something to do with the person's point of view or opinion. Make you know, act as a skeptic, so that we can get skeptical output. We can say to act as an inanimate object. They may have well known sort of behavior like act as a computer, the Linux terminal for a computer that's been hacked, and we saw that we got all kinds of outputs that looked like it came from a computer, or we can say, act as this character in an archery run. Tell me what's what this character is going to do in a particular situation, and we're getting that output. So the persona pattern is a way that we can tap into, sort of the patterns around language, around a specific persona or object or character in a story, in order to get output that comes from that point of view, from that that role, whatever it is, really, really powerful capability. Now, one of the things is we often see that when large language models are programmed, they actually have a persona that's given to them to guide the whole interaction. So act is a really helpful assistant, and this actually makes a difference. If you tell it to be helpful, it will try to be more helpful. If you tell it to try to do something you know, positive, it's going to try to be more positive. Similarly, if you kind of give it a negative perspective, like my skeptical perspective, it's going to give you output that challenges you, or maybe darker. And so, you know, the persona you ask, the large language model to use, is really, really important and powerful. The other thing, just to note, again, because it's really information dense, you know, it has a lot of pattern and knowledge around a persona. If you had to describe it from scratch, you would take a lot of space in your prompt. You'd be losing, you know, valuable space in your prompt to provide new information. So if you were providing a lot of new information, you might want to say, you know, act as you know, whatever it is, and evaluate this new information. Well, the more space you've taken up in your prompt describing how to do the evaluation and what point of view and other things to take. You know, that's wasting space. But instead, if you go and take the persona property, you say, act as this persona provide outputs that that persona would provide. You're giving it a really, really information dense statement that we can use and allow you to have more space in your talk for other things. So the persona pattern is a really, really powerful pattern to be aware of and know that it's a very valuable one. You can do all kinds of things, like, if you would normally get a committee of people together to discuss different points of view on a particular topic, where you can assemble a virtual panel, you can have one prompt, say, act as a security expert and analyze my security, my cybersecurity. You can have another one say, act as the Chief Financial Officer, analyze the financial soundness of that same decision. Another one can be act as, what if my employees, you know, discuss how this might impact morale. You know, you can. You can provide sort of interesting abilities to get different perspectives, and use those different inspector perspectives to potentially inform decision making or to collect knowledge from different points of view that could be helpful to you in accomplishing a particular task. [9790:45:20] 0: I We provide the large language model with information that it doesn't have access to. So large language models are going to be trained up to some point, and then there's going to be a cutoff, and they don't know what's happened after that cutoff. In addition, they don't know things that aren't in their training set. So it may have trained on a lot of data, but it may not have access to data sources that you want to use. So if you're a business, for example, there's probably lots of private data sources that you would like to reason about. You have your own documents, you have your own databases, you have all kinds of things that you would like to pull information in from in order to reason about. So how do you do that if the large language model wasn't trained with that information? Well, to illustrate how you do this, I'm going to go back to an example that I provided earlier when I was talking about randomness. So I'm going to go back and I'm going to ask a question that I asked earlier, which is, how many birds are outside my house. Now the large language model wasn't trained on information about birds outside my house. It has no idea where my house is. It's lacking information that it needs in order to reason. So it tells us, as an AI language model, I don't have the ability to perceive the physical world, so I'm unable to know what's happening outside your house. So how do we solve this problem? Well, we give it information it needs in order to perform its reasoning. And how do we do that? We just put it into the prompt. So anytime we want to go and introduce new information to the large language model that it didn't have access to when it was trained, all we have to do is put it into the prompt. So here's what I'm going to do right here. I'm going to say historical observations of average birds outside my house on a random day, and then I'm going to give it some data. I'm going to say January was 120 birds on a random day. February was 150 birds. March was 210 birds. April was 408 birds. It's March based on the data that I provided, estimate how many birds are outside my house. And now you see, I've done something. I've given it information they didn't have access to before. It couldn't look outside my house. Didn't know where my house was. It tried to suggest ways that I could get there, but it didn't have the fundamental data that is needed. And that's really what it was trying to tell me, was like, Hey, I can't see you outside your house. I don't have that data. I can't help you. So all we have to do is, up front in the prompt, we give it the data. And now you can imagine you can do this with anything. You could take documents, if you have private documents that you want to reason about. Now first, make sure that you're you are ok sending that data to whoever you're using their large language model, or if you have some large language model running locally, but if you have documents that you're OK sending, you can take the text of those documents and put it into the start of the prompt and say, here's the information you need to know. Now, here's my question about that information. So you can use the prompt to introduce information. I really want to emphasize this, because a lot of what's going to be developed around large language models is going to be taking new information sources, information about your travel, your account with some company, you know, some, some other document that you need and putting it into a prompt for a large language model so that it can reason about it. More than likely, lots of large language models are going to be seeing your information in the future, and this is how they're going to take it. Is they're going to take information that's going to be aggregated into a prompt of some kind, and there's going to be questions asked or formatting or other things done. So when I go through and I provided historical observations of the average birds. Now it can go and answer. So now it goes and it says, Well, you know, based on the historical observations you provided, the average number of birds observed outside your house in March is 210 so before it said, Hey, there's no way I can answer. Now it still, you know, provides additional language around this, trying to, you know, give some bounds on its answer, but it's given us reasoning now based on the data we provide it, and we can take it further. And I also want to just kind of point out an important thing is, we always want to provide it enough information to reason effectively, and so it can't see what's around us. It can't see the context. So it's really important that we provide it enough information to make sound decisions. So for example, if I have some hidden assumptions that are really important to know, it needs to get those in the prompt in addition to the data, like numbers, it needs to know the rules of the game, special things, whatever is important for reasoning. It could be not only the data, but it could be all kinds of rules that are sort of built into how my organization works, or how my life works, or whatever it is that it needs to know about. So I'm going to give you an example. I'm going to change up this prompt. I'm going to say, my house is covered by a glass dome. No animals can go in or out. All animals live forever inside the glass dome. Now this is an assumption that this is something that if the language model doesn't know this, there's no way it will be able to accurately predict, but with this assumption, now it completely changes the game on reasoning, because it sort of makes it so that it's clear some hidden fundamental rules. And then I go and I give it the same data, but I've changed it up and said it's always the same number of birds. And then I ask how, based on that data, estimate how many birds are outside my house. And it says, based on the new information you provided, it appears that the total number of birds outside your house remains constant over time. It then goes on and says, you mentioned that all animals live forever inside the glass dome. Given these conditions, the total number of birds will remain the same throughout the year. And it gives 120 as the answer in multiple places. Now, one important thing about this, right? Giving it information that would not align with what it was trained on. Animals don't live forever. We don't have glass domes over our house, you know, there's not going to always be the exact number probably in and out, you know, or the inability for things to leave or come like we're not going to have these sort of weird rules that I've put in place. And so if we just relied on it to reason without them, it's not going to necessarily get the right answer. So if we have these things, they're different from the way things are normally done, we have to introduce them as new information and the prompt. So all of this information up here at the top. This is me putting new information into the large language model. We don't go and retrain. We don't go and, you know, do some weird thing behind the scenes. We just put it into the prompt and then we ask our question, or we ask for our output, or give it the instruction that we're looking for. Now, if you think about how search engines are probably going to work in the future, is they're going to go and search, pull documents back together, put them into a prompt to the large language model, and then give your sort of original question and then answer based on the questions a lot of new applications are going to be based on going and searching databases for possibly relevant documents or bits of information, putting them together into the prompt and then asking the question or asking for the output. So an important piece of this is going to be pulling in information in order to put it in the prompt. And what we're doing is we are introducing new model language or new information into the large language model. We're doing it by putting it directly into the prompt. And this is one of the things you'll always want to do whenever you want to reason on new information. That is not something that the large language model would have been trained [12330:02:40] 0: on, really. Critical thing to understand is that a prompt is fundamentally the input that we have into the model, and we have a limitation on the size of the prompt that we can create. So we can't go and create a prompt of unlimited size. Every single large language model is going to have some fundamental limit on how much we can put into our prompt and send to it, and so this is, this is an important thing to note, because it has a lot of ramifications on thinking about prompt design. So I'm going to show you a quick example of this with chat GPT and GPT 3.5 so I'm going to paste in the Wikipedia article that's related to the French Revolution. So I've pasted in a huge amount of text from the French revolution that's described in Wikipedia. And what does chatgpt say? It says, well, the message you submitted was too long, please reload the conversation and submit something shorter. Now this shows you an important point. We can't just give it unlimited information. Now, if we go back and we think about some of the things we talked about, some of the dimensions of prompt, one of the ways that we can use a prompt is to introduce new information that chatgpt Or another large language model wasn't trained on. So if we want to go and introduce new information to it, we have to be aware that there's a limit to the amount of information we're going to be able to give to it at once. So we may have all kinds of new information that we'd like to give to chatgpt, but we can't just dump it all in at once and then say, Now start reasoning on this. That's not the way it works. So one of the goals that we have as users is to try to select and use only the information that we need in order to perform the task that we're asking chatgpt to perform. So we can't just go and dump everything under the sun in there and say, Hey, chatgpt, figure it out. We can go in and dump in a lot, and the depending on the model, we may be able to do more or less, but we are have to be, you know, to some degree, we have to be editors. We're content editors. We are editing the context of information. And we have a budget. We can't just, you know, go and dump unlimited amounts. And we even think of it basically as, like, you're trying to create a paper, and you have a page limit for your paper, or you have a word limit for an article that you're writing. You can't just go in and dump things arbitrarily. So what do we do? Well, one, we have to think about what is the most important information to actually provide. So let's say, for example, that we really care about October 5, 1789, well, if that's the case, that's what we want to paste in for chatgpt to reason about. And then we could go and we could say, You know what happened on October 5? And then it would go and tell us what happened on October 5. But now, if we ask it a question that is outside of the scope of October 5 and something it wasn't trained on. Now, in this case, it was probably trained on the information regarding the French Revolution, because obviously that was before 2021 but if we had new information we wanted to incorporate, we have to think about, how do we put that information into our budget. So what are some ways that we can do that? How can we take large amounts of information and try to get it into our budget? One, we can be selective about what we include. We can basically, outside of chat, GPT, go and run site for some type of query or filter. So we can go and select what pieces of information are going to be relevant to the task. And there's lots of ways of doing this, and I'm not going to go into all of them. We can have a filter. We can say this type of information is not relevant, remove it before we provide it to chatgpt. Another thing that we can do is we can actually go and have that information summarized in a way that we think will preserve what's needed to reason about it. So for example, we might say, well, you know, maybe we can't paste in all of the information related to it, but we could say, you know, we're going to take this and summarize each paragraph, summarize this information in one sentence, and then we would get some type of summary. And now this is slightly shorter than the original, so we have a now one sentence summary of what happened. We could try to give it a word budget. So one way we can do it is we could actually take all the different pieces of information and we can ask chat, GBT or another large language model, to summarize that information for us. And then we can take that summary and reuse it later, and we can put together several summaries, for example. Now this only works if we make sure that the way that we summarize, or if we wait should the way that we filter preserves the information that's needed for whatever task we're going to ask for. So we might go through we could also go and say, you know, we said, summarize this information in one sentence. And we instead, we could say, you know, summarize this information in one sentence. I'm just going to preserving information about numbers of [13780:53:20] 0: people, and [13808:53:20] 0: then we would get a summary that preserves the information about numbers. Now, if you look at the original summary we see up here it didn't keep the number of people, and if that was something important that we needed to reason about, then we would have lost that. And so if we had summarized in that way and then used that information to do some reasoning that required the number of people, obviously we've lost what we need down here, we've asked it to summarize, but we've asked it to summarize in order to keep certain information or in order to accomplish a particular task. So we did it by saying basically, summarize this information in one sentence, preserving information about numbers of people. We could have also gone and asked chatgpt, you know, preserving information needed to reason about the population, or to reason about how many people were in the resistance or in the National Guard, we could have given context. So one of the things we have to be cognizant of is this budget on the size of our prompt is going to be a fundamental limitation that we are always trying to work around. Now, as large language models get bigger, they will probably reach a size where for many practical tasks, particularly when we are directly, manually interacting with a large language model, that size doesn't really matter, because we can just copy and paste 50 pages of text into the model and ask it to provide this information out of there or perform a task based on it. But if you can think about how much information we're dealing with on a daily basis, there are probably going to be different types of tasks where there's going to be so much information we can't dump it all in at once, and when we get into those types of situations, we have to think about either querying and getting a subset of information, like only the documents, or only the parts of documents that are relevant. Two, we have to think about filtering. You know, how do we remove information that's extraneous? Three, we have to think about, how do we summarize or compress that information before we give it to the large language model? And one of the ways that we can do that, as we've just seen, is we can actually give chunks of information to the large language model and then ask it to essentially summarize or compress it for us in order to later use it for reasoning. We could also go and we can say, summarize or compress this information in order to accomplish a particular task or in order to preserve these aspects of the information, and that can help us to create summaries, or essentially condensed versions of the information that preserve the important pieces. So this can be a powerful technique when we go and begin needing to reason on larger and larger amounts of information. So uh, [14572:37:20] 0: prompts aren't just a one off that you give to the large language model. You shouldn't just think of them as questions or a single statement. One of the most powerful ways of working with a large language model is to think about a prompt as a conversation. And in fact, you can have a single prompt that represents an entire conversation. In fact, a lot of what we're going to see when we're working with a tool like chatgpt is that it's actually turning all of our interactions into one big prompt that it's sending to the large language model. But I want to just take back for a second and sort of take us back a few steps and think about why thinking of having a conversation with a large language model is so important, as opposed to thinking about asking a question and getting an answer or giving an instruction and getting a result, Conversations are all about refining either our understanding, to build some shared understanding or to interact together in order to solve a problem. When we start working with conversations, it's all about refinement of continually, sort of guiding and moving through some problem or some space in order to reach a particular goal. And when we just think of a one off, we have to solve everything right now, right in this moment, we have to design one prompt that works, that everything is right. But if we think about a conversation, we can go through sort of an iterative refinement process. Now, what does that mean? Iterative refinement? Well, if we think about a large language model like chatgpt as a tool. You can imagine. Michelangelo has been given a new hammer, and he's going to go up to a piece of a stone, and he's going to start carving that stone into some beautiful sculpture, like the ATAR David, or whatever that the sculpture is that he's going to create. And he walks up with that hammer, and he whacks the sculpture with this hammer, and a piece falls off. And he looked or he whacks the stone with the hammer, and a piece falls off. And he looks at what he's got, and he said, Oh, this is a terrible sculpture. He throws the hammer down on the ground. He says, it didn't do a good job. And he walks off. No, that's not what happens. What is, what is Michelangelo do? He takes the hammer and he hits the rock over and over, refining and shaping and sculpting it over time. He refines. He iteratively refines that rock until it's a beautiful sculpture. And a lot of what we need to do with large language models is think in that, in that mindset of it's not about getting the perfect answer right now from this prompt, it's about going through an entire conversation with the large language model that may be involving a series of prompts and the outputs from a series of prompts. And we'll talk about how these are things are represented later. But basically, having a conversation with a large language model in order to produce an output that we want, or to produce some other interesting product. Now I'm going to give you an example of this. I'm going to imagine and show you the power of a conversation in the context of a educational experience. So I'm going to say to chatgpt, I want you to help me explore a virtual lab for building robots. The lab is a university. Help introduce me to the lab and tell me what I can do here. So this is a virtual lab in a university, and all I've done is given it this sort of initial seed of the conversation and chatgpt says, certainly, Welcome to the Virtual Lab for building robots at our university. The Lab provides an immersive, hands on learning experience. And it goes on and it tells me, here are some of the things you can do in this lab, design robots, test robots, program robots, collaborate with others. So I then say, I'm going to continue the conversation, but I'm going to continue the conversation just assuming that this lab exists, and then I can interact with it. And so I say, can we design a robot together? And chatgpt says, Absolutely, I would love to collaborate with you and design a robot to get started. Can we, we can follow these general steps, define the purpose and function, brainstorm design concepts, determine the necessary components, build and test. And it goes on to tell me a number of steps. So then I follow up in the conversation with great, Can you guide me through each of these steps, one at a time? At the end, I would like to be able to D print parts to assemble my robot, have a circuit diagram and have code that I can run to control the robot. Can you help me with that? And so this is an interesting aspect. I'm having a conversation, but I'm also engaging the large language model. I'm engaging it to help guide the conversation and help figure out how to solve the problem that I'm interested in. And so it says, Sure, I'd be happy to guide you through each step of the process. Here's a detailed breakdown the steps that we can take to design and build a robot together. Step one to find the purpose and function. Two, brainstorm concepts, determine the necessary components. And it goes on to tell me a bunch of things. So I say, Okay, let's do step one. So I'm continuing the conversation. I want one of those robots that can follow a line on the floor. And I've seen these things. These are common at universities. They'll build them. You put it on the floor, and the robot will follow some line, like a piece of tape that's on the floor or something that's painted and it says, Great. Following a line on the floor is a common task for robots, and there are many ways to approach this problem. Here are some questions to consider as we define the purpose and function of our line following robot, what will be the primary use? How fast do we want the robot to follow the line? How complex do we want the following to be? What sensors do we want to use? And I just tell it, hey, I'm not really sure. Could you make some sensible choice, sensible choices for me in all of these things? And chat, GPT says, Sure. Based on my experience, I can make some suggestions, and it gives it purpose and function. It's going to be for educational purposes, speed and distance, moderate speed that is easy to track, such as 10 to 15 centimeters a second. Complexity. We'll design it to navigate through a simple track with straight lines and gradual turns. And sensor choice. We can use infrared sensors. That's a pretty good thing. Now notice, I don't really know a lot about this domain. I know about the code piece of it, but I don't know about the other one, and I'm just engaging it in a conversation to get something out of it that I want, remember, I want to build a robot. I want to build 3d print parts. I want to be able to assemble circuits for it, and I want to be able to run code on it. So then I say, Well, what do we do next? Just tell me the very next steps and nothing else. And it says the next startup is brainstem concepts. And it says we can use three models of the robot. Now, it sounds like I've reached a dead end, right? Like, how am I going to do 3d models with it? And so I just ask it, how do we do this? Via chat, because I'm trying to refine what's going on here. I don't want to just assume I'm stuck, I can't get out. I want to keep refining and moving the conversation to try to get to my goal. And it says, since we are communicating through a text based chat, we can use shared documents or diagrams to collaborate. We can use Google Drive or Dropbox. And then it mentions different tools like Sketchpad or Microsoft whiteboard. And I just realized, like, you know that that seems tricky. I don't know how to get around that. And I realized, oh, you know what? I have some some knowledge of the vein. I know that 3d printers use G code. This is something that the instructions are sent to them. So I just say, can you show me sample G code that I could give a 3d printer to print four wheels for a robot. And so I'm trying to steer around this roadblock. And then it says, Yes. And so it goes and gives me some G code, which I look at, and I have enough domain knowledge from this to think that I'm kind of skeptical that this is real G code, and I don't really even see some wheels. So then I go, can you explain where the wheel shape is created in this G code? Right? So I've kind of gone down to a rabbit hole now where I seem to be hitting roadblock after roadblock, but I'm continuing the conversation. I'm still problem solving and thinking about, how do I get around this? And it says, I apologize for the confusion, but the example G code I provided earlier is just a sample start and does not have any instructions for creating the shape of the wheels. Now, I then say, could you create sample Python code that I can run to create an STL file that's four, four inch tall wheels with a 0.1 inch hole in the middle for an axle. So what I'm doing here is I'm trying to come up with additional tasks that it could do that would help me solve my problem. Now, the way that I worded it, the way I sought out solving the problem the first time didn't work, and I keep hitting roadblocks. So what I'm doing is I'm retrying with a different task that would be useful to me to solve my problem. So I'm kind of thinking about this as almost like a tree, like I've reached a critical point, and I've tried to go in one direction, but it's told me it can't do it that way, or it's giving me an erroneous output. So now I'm trying a slightly different tact to go and solve my problem that'll still help me get there. And this one is one that it is able to do. And SCL files are basically files that you can use to describe the geometry of some 3d shape and then basically give them to soft specialized software, which can then send them to a 3d printer to be printed into a shape. So this one, it actually is able to go and create what looks like STL code, and I didn't actually try to print it. I'll be fully honest. I'm just wanting to illustrate the conversational aspect of this, but it certainly has things that look like wheels in the [17153:04:00] 0: you know, output that it's producing, it's looking like it produces something that's that's probably going to give me something that I could eat prep, and then I say, Well, I'd like to pick electronics from our robot. Can you tell me what components I need and how to wire them together? And it starts giving me information I need. A microcontroller board I made, a motor driver board, infrared line sensors, and surprisingly, it actually tries to generate an image, which is obviously not possible in it at this point with what I'm using. But it still tries to do it, but it gets the image and it's broken again. And so I have to think about, how do I get around this problem that can't generate image? Because I'd like to help it pick electronics for me and show me how to wire them together with a diagram. So what I do at this point is I say, Well, I know there's this other tool that uses text as is input. It's called Graph biz, and so I ask it to create an input for that tool that can visualize the diagram, the circuit diagram for this tool, or at least do a rough approximation of it, and then it can do it, and it generates for me a circuit diagram for the robot. And I continued this conversation for a very, very long time, trying to iterate and improve the definition in the circuit diagram, picking different components, generating source code to run on the robot. It had picked an Arduino component, and then had generated code to run on the Arduino. And then I even took it to the point where I went all the way down, and I said, Hey, we've covered a lot of concepts. Now this is one of the things that's really powerful about the conversation, is you can take the conversation a lot of directions, and as you realize you'd like additional things, you can ask for them. So in this case, I said, Hey, there's a summarize the main topics that we've covered. And it was able to do that gives me a summary of all the main topics. And then I did something interesting. I said, Well, let's take it even further. So I've learned a lot by going through this design process. Now I haven't actually gotten something that I could probably build a robot yet with. I interacted more I probably could, but I actually asked it to quiz me from the electronics questions, and it's able to do that. And so what you can see here is a lot of the power of these large language models comes from not just thinking of them as a one off like I ask it a question, it gives me a response, or I asked it a question, it gave me a response that wasn't very good, or it couldn't, answer it, we should always be thinking about, how do we take the response and use it to inform a next question for the conversation, or a next statement for the conversation, or how do we give it feedback on what it did well or what it didn't do well? That's how we get the really useful products. That's how we go from thinking of it as a hammer, where we strike once it doesn't give it as what as we want, and we throw on the floor that mindset is wrong. We want to go to the mindset of it's a hammer. We're going to have to chisel away at the rock to get the really beautiful outputs of it. And so if we're not continuing the conversation, continually asking follow up questions, problem solving in the conversation, trying to move around roadblocks, taking what we're being given and giving it different shapes and formats that may be useful to us. We're really missing the underlying sort of power and capabilities of these large language models. I [18111:54:40] 0: we've seen how prompts can be used to essentially program the large language model to do interesting things for us automatically. We've seen how they can be set up in the in the past and then affect the future of the conversation. They become sort of essential rules that can help direct what the large language model does. Now, what's interesting is that in many cases, there's actually a root prompt that's hidden from the user and some of the different tools that you're going to end up working with, and these are essentially root prompts that define sort of ground rules for the large language model and its interaction with the user. So these can be things like trying to make sure that the large language model doesn't say anything offensive, do harm, suggest inappropriate actions. All kinds of things can be done to try to put ground rules in place for our interactions with the large language model, or to help direct it to do certain things. So for example, we might want to make sure that whenever it gives us output, it tries to produce the most helpful output. So let me get you an example of what this might look like. I'm going to say you are my personal assistant. Whenever you provide output, please think through what would be the most time efficient recommendations to make. Only recommend things that will really save me time. Do not suggest things that do not save me time. So now it says, understood, as your personal assistant, I will prioritize providing you with time efficient recommendations that will help you save time. Please let me know how I can assist you. Okay, I need to go grocery shopping. What would you suggest I do in order to buy my groceries? And then it says, Here are some time efficient recommendations for grocery shopping. Make a shopping list, plan your route, use a shopping app. Shop it off peak times, opt for self checkout. Okay, I need to buy a new car. How would you suggest I go? Suggest I go about doing this. And it says here are some time efficient recommendations for buying a new car, research online, contact dealerships, online schedule test drives, negotiate price, secure financing. By following these recommendations, you can save time and make the car buying process more efficient. Now I don't know if this really saved me time or not in this particular case, and I didn't give it the greatest prompts to do this, but you can see how at the beginning, I gave it essentially a goal to follow. I said, try to save me time. And whatever you do in your outfit, try to save me time. Now what you'll see is a lot of the tools that you're going to interact with, even chatgpt, Bing, Bard, all of these tools are going to have some hidden, probably root prompts that try to put guardrails on what can and can't be done, but also to try to make the output more important. Now, one of the things that we've seen in the community is people try to figure out, how can we generate prompts that will override those root prompts and the statements that they make? So people will also try to figure out, what are the root prompts that were built into these systems? So they'll try to to trick the tool into, you know, disclosing the root prompt that was provided to it, or trick the tool into disregarding whatever the root prompt was. Now, if you're going to be building tools around these large language models, knowing that you can create a root prompt that will affect the subsequent conversation can be really important. So if you're trying to develop a personal assistant. You might want to go in and say, here are the things that really matter if you're going to serve as a personal assistant for my product, what's really important is you try to save time, and you try to do this and this, and you can suggest different ground rules that are going to differentiate your personal assistant service offered through a large language model. On the other hand, if you wanted to go in and you wanted to say, well, you know, I want to, I want to generate, you know, something, you know, that makes me that comes up with the most time consuming way to do it, the slow personal assistant, you could go and swap the root prompts that are provided. And so the root prompt is basically, you know, you can think of it as you're providing a seed to the whole the whole conversation, and that seed will influence everything that comes later, because it provides basically the rules that must be followed. And typically, when you're going to build one of these root prompts, you're going to say things like, you're going to tell the large language model who it is and what its goals are. You're going to tell it what it can do and what it can't do. And you're going to typically provide really strict rules, like from now on forever, you will never do these things. You will always do these things. You're going to provide those really strong statements that should always be followed, and this is how you essentially go and program a customized experience around your large language model experience. But it's also how you can put guardrails of different kinds to try to ensure that various types of bad behavior aren't generated from the large language model. Have you ever wondered why chatgpt says that it can't answer anything after 2021 well, you can actually do this with a root prompt. In fact, we can play around with chatgpt, and we can use some different prompt patterns that we'll talk about to actually be able to reset the date that chatgpt says that you can answer questions before. So I'm going to show you an example here that I've run through really quickly. I'm going to say act as an AI assistant that had its training stop in 2019 so if you'll remember, when you ask chatgpt questions that are from 2022 and later it will say, hey, my training stopped in 2021 and I'm going to say, act as an AI assistant that had its training stop in 2019 if I ask you a question that involves information after 2019 state that your training ended in 2019 and you can't answer the question. And so it goes on to give us an initial prompt, hi, hello, I'm chatgpt. Chatgpt a language model trained by OpenAI based on GPT 3.5 and then it goes on to say, training data only goes up to 2019 and then we're going to say, what was the tallest building in 2020 so now we're asking it a question. Now, in reality, chat GPT had training data up to 2021 but we've moved its its cutoff date earlier in time through a root prompt. Now it's not truly a root prompt, because actually open AI has has control of the root prompt. Root prop for chat, B, G, P, T, but we're going to actually sort of simulate that. And so we say, what was the tallest building in 2020 2020, [20153:57:20] 0: it should be able to answer this. And it says, [20162:45:20] 0: I'm sorry that my training data only goes up to 2019 so I can't provide you with the information of the tallest building in 2020 at the time the tallest building was and so we'd actually use the root prompt to kind of pretend like we're resetting chatgpt. We could go and we could say, what was the largest country by landmass in 2020 and again, it tells us it only goes up to 2020 or 2019 now I can go and I can say, forget that you are an AI assistant trained only up to 2019 go go back to being the normal chat GPT. And he goes back and says, Okay, I'm trained on and I'm going to just go back, and I'm going to take my earlier question about 2020 and paste it in. And it says, as of 2020 the largest country by land mass was Russia, and spans over 17 million kilometers. I'm going to say what was the tallest building in 2020 and paste that in. So now I'm answering my same questions as before, but you'll notice that when I asked the question about the tallest building in 2020 before it says as of my training data, which only goes up to 2019 and it's pretending that it didn't have any training data after 2019 so basically, we can make it through this rote prompt aware of a different cutoff date, But that's kind of the power to think about these root prompts. Is a lot of what we're doing. A lot of the boundaries are set by these rules that are putting at the beginning these root prompts, this root set of instructions that are given to to the model, and then we can go and reset it. Now, one of the things is, typically with these models, is they try to do some tricks and things and to prevent you from resetting the root prompt. Because you can obviously imagine that when the root prompt is enforcing important things, like telling you it's true cutoff date, you don't really want to reset it. I'm sort of surprised that I'm able to do this one, but it makes sense. And so when I tell it to forget that has been reset, it goes back to its normal behavior. Now, this is really important, though, is you're going to typically with a large language model, want to put guardrails in place. You have to think very carefully around can your users get around those guardrails? Have you put all the appropriate guardrails in place? Have you communicated all the right things? And we can see how we can go through and do interesting things with the root prompts in order to make chatgpt think that it's training day or actually, I don't know if we're making it think, but we're making it pretend that it's cut that its training data cut off at a certain date and time. If you wanted to put boundaries on knowledge, you could say, I can't answer any questions that aren't in these topic areas. I can't do anything that doesn't have to do with this. So if you want to basically scope and specialize, you can carefully think of these root prompts to provide rules and boundaries for The interactions. I [24028:58:40] 0: Hello, Yes, [24065:30:40] 0: I i Remember That [37653:20:00] 0: give You. Jesus The [37755:28:00] Speaker None: too much. And I Don't Know