In this lesson the focus is on understanding and experimenting with the "presence penalty" setting in generating large amounts of text using a chatbot.
The presence penalty is a subtle setting that is most noticeable when generating extensive text. You'll be encouraged to experiment with different presence penalty settings by engaging in conversations with the chatbot. Suggestions for prompts are given, such as exploring the positive or negative aspects of the world.
By using the same prompt with different presence penalty settings, learners can observe the impact on the generated responses. Tom reassures that if the effects are not immediately apparent, it is normal due to the subtle nature of this setting.
[00:00] Okay, so the conversation we looked at in the previous scrim was of course very contrived. Actually, presence penalty is a very subtle setting and it can be hard to see it in action. In fact, it's only really noticeable when you're generating large amounts of text. So rather than watch me churning out loads of text,
[00:19] you're going to have to do some investigation on your own. So I'm going to come in here and I'm going to set presence penalty to zero. And that is of course its default setting. And now I want you to spend some time experimenting. So you could just have a general chat with the chatbot at different presence penalty settings.
[00:37] But it's likely better if you ask it something that will generate a long answer. It's only then that you'll really see presence penalty in action. So here are some ideas. If you're a glass half full kind of person, you could ask it to tell you what is great and wonderful about the world. And if you're a glass half empty person,
[00:57] you could ask it to tell you what is wrong and terrible about the world. Either way, use the same prompt two or more times, but with different presence penalty settings and see what you get. And if you don't notice too much, don't worry, this is a subtle setting. And at least now you know it's there. So if you do have problems in this area down the line, you'll know what to do.
[01:18] Okay, take some time to do that now. And then when you're ready in the next scrim, we'll look at frequency penalty. Thank you.
Member comments are a way for members to communicate, interact, and ask questions about a lesson.
The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io
Be on-Topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.
Avoid meta-discussion
Code Problems?
Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context
Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!