The BEST Way to Summarize Anything With GPT-4o

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
it's 2024 and I still see people prompting summaries like this now I guarantee you that there's better ways to do this in this video it's going to show you exactly that in the form of one improved summarization prompt and one Advanced technique that has been published in a research paper that I haven't really seen anybody cover by the way it seems like people enjoy these prompting tutorials so I'll start doing one a week always picking a specific technique and I'll show you how to do it to the best of my ability inside of a large language model like GPT 40 chat GPT dude but this will absolutely work in any other large language model of your choice all right to keep this super applicable to what you're doing we'll be working with a Wikipedia article that we'll be summarizing here I'll just prompt a random country perfect and then we're going to search for Brazil on Wikipedia opening Brazil's article will do the most basic thing which is simply copying all the text in the Wikipedia article later in the video I'll show you some other ways you could pull this text into cat GPT and some good alternatives for copy pasting but this is the most basic and most relable way to do it so as mentioned most people simply do this they just say summarize this and look it's okay okay but let me tell you I haven't used this concrete prompt in over a year because a slightly extended version of this just works so much better and it's not even too long check this out you're a secretary of target audience here we give it a role and this is the main part you get to pick the target audience so if I'm a YouTube Creator focused on history videos I would insert that here and then it continues summarize the text given to you in five bullet points now look you could absolutely delete this part but I use use this pretty much every single time because sometimes AI summaries can be a bit lengthy for me I'd rather get five bullet points obviously you can change this number depending on what you're doing and as mentioned this is the simplest way to do it more advanced one coming up in a second here but let's just give it a shot just to keep things Fair I'll keep the five bullet point parts right here now really the only difference here is the target audience and the role you give it so head on over to the Brazil Wikipedia article copy all the text like so paste and run paste and run now look I'll be honest with you not every single time is this going to make a difference right I had to rerun this prompt two times to actually get what I was looking for something tailored towards a history YouTuber this looks great as opposed to the normal summary it categorizes it by the different categories that might be relevant to me as a history YouTuber simply put this is easier to work with than this but I suggest we move on to level two which is the further extension of this prompt and here are the four so-called building blocks that you can add to the prompt so you could add the tone my favorite one here would actually be in the style of a 11-year-old it's a great way to get simpl summaries that are understandable by everybody you could specify a goal that you have so if you only care about the 16th century include that you could also specify the length so the five bullet points is a version of that but you could also use a word counter now it never gets it precisely right but it will land somewhere in the ballpark so if you say 100 words it might give you anywhere from 80 to 120 but it won't give you 300 and this is a bonus one that I sometimes use if I want direct quotes maybe this would be even more relevant if you're running the summary on an interview so this is what the prompt looks like if I include all the building blocks now I'll just paste the article yet again and we can compare the summaries and then we can get to the most advanced version of summarizing inside of cat gbt or other llms and now look it only highlights the parts in the 1600s it's in a style of a 11-year-old and there's no quotes because if you look at the Wikipedia article there are no people speaking there's nothing to quote so in this case I just skipped those instructions I highlighted it because it's important to understand why I did that what if you want a really concise summary and you have a little bit of time to play with it that's why we use a technique highlighted in a research paper from 2023 it's called G pt4 summarization with chain of density prompting and the chain of density prompt looks as follows this is the prompt right here they shared it in this paper but basically I copy pasted it into the video's description for you so what you can do now is you can open a new chat and you can simply paste the prompt from the description this is it it starts with article and ends with remember use the exact same number of words for each summary now this is set up to work with an article but that is a super Universal term so anything you have you can put inside of these quotation marks here and I won't even go into the explanation I'll simply give it the Brazil article and we'll see what we get here and explain as we go paste and run this and I'll keep the original summarize this in five bullet points on the left so you can compare but basically what the chain of density prompt does is it starts with a summary and then it looks at that and then it sees if it can compress it more and add more into it now this does create multiple versions of the summary so you do have to make a choice whereas this is just what it is it's the five bullet point summary but for my experience usually the fourth sometimes the fifth summary is actually the best thing you can get outside of cat GPT so so look you can pause the video here if you want and look at the first one versus the fourth one but if I just start counting the amount of facts stated in this summary it's so much more dense than the first one meaning this works and I do use this regularly two small but important details to round this out first of all what can you summarize because I showed you how to copy paste things you might be aware of that but what else are your options here with either one of these prompts well first things first with the new browsing function even the free users can now just share the link and if I run this it will automatically pick up on the fact that it needs to use the web browser it will look for it and I will get a similar result to copy pasting the whole article but just keep in mind whenever you use browsing it is more concise than just using the llm look this the same prompt copy pasting the text and with browsing now another thing you can obviously do is upload files right so if you have a PDF that you want to summarize like this one you can simply take this upload it into GPT and then you can do the same thing it just reads the PDF and summarizes it for you there you go two more options one is uploading images so if you take a picture of article or a page in a book or something you can absolutely upload that and it will read the text I would say this one is the least preferable because with images it's just very hard to get a lot of text into chat GPT but the last one which is super useful you could either use Google Drive or one drive to directly upload your docs from the drive and the very last point is okay eigor great I have this chain of density prompt what do I do with it well you either store it in your prompt organizer if you sign up to a free newsletter you get one with the sign up or you turn it into a GPT which makes quickly accessing it really really simple and that's summarization no need for any paid app that does this for you you can always do this in inside of chat GPT or clawed Gemini Lama free and if you care to learn more techniques like this I created a playlist with other videos that teach you practical AI skills like this that you can put to work today
Info
Channel: The AI Advantage
Views: 20,077
Rating: undefined out of 5
Keywords: theaiadvantage, aiadvantage, chatgpt, ai, chatbot, advantage, artificial intelligence, gpt-4, openai, ai advantage, igor
Id: qiO9LCLsGEU
Channel Id: undefined
Length: 6min 10sec (370 seconds)
Published: Tue Jun 04 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.