2 Managing Generative AI

 

This chapter covers

  • Understanding how to access and interact with AI models in the most productive ways possible
  • Configuring models to provide the best fit possible for your specific needs
  • Leveraging the OpenAI Playground to better understand key tools for controlling AI

Throwing clever prompts at an AI chat interface can definitely produce impressive results. But by ignoring the finer points of model configuration, you’ll be missing out on most of your AI’s potential value. So with this chapter, we’ll begin the process of figuring out which dials to turn and how far to turn them. (And which big red button you should absolutely avoid!)

Of course for all I know, by the time you get around to reading this, the whole process might be automated. That blue light gently pulsing on your keyboard that you can’t resist staring at? That would be the brainwave scanner GPT now uses to directly download your innermost goals and desires.

Your results are available now.

2.1 Accessing GPT models

In case you haven’t yet had the pleasure, most popular interactive AI platforms require you to create an account before trying them out. For OpenAI’s ChatGPT, that’ll happen at chat.openai.com/auth/login. Even if you’re asked to provide credit card information, you’ll be given plenty of warning before you’re actually billed. Just don’t ignore those warnings.

Once you’re signed up, the ChatGPT interface is here.

Now what?

2.2 Learning by "playing"

2.3 Accessing Python code samples

2.4 Accessing CURL code samples

2.5 Completion configurations

2.5.1 Setting the mode

2.5.2 Setting the temperature

2.5.3 Setting the Top P value

2.5.4 Working with stop sequences

2.5.5 Setting the frequency penalty

2.5.6 Setting the presence penalty

2.5.7 Working with "best of"

2.5.8 Working with the inject start text setting

2.6 Summary