Book Image

Exploring GPT-3

By : Steve Tingiris
Book Image

Exploring GPT-3

By: Steve Tingiris

Overview of this book

Generative Pre-trained Transformer 3 (GPT-3) is a highly advanced language model from OpenAI that can generate written text that is virtually indistinguishable from text written by humans. Whether you have a technical or non-technical background, this book will help you understand and start working with GPT-3 and the OpenAI API. If you want to get hands-on with leveraging artificial intelligence for natural language processing (NLP) tasks, this easy-to-follow book will help you get started. Beginning with a high-level introduction to NLP and GPT-3, the book takes you through practical examples that show how to leverage the OpenAI API and GPT-3 for text generation, classification, and semantic search. You'll explore the capabilities of the OpenAI API and GPT-3 and find out which NLP use cases GPT-3 is best suited for. You’ll also learn how to use the API and optimize requests for the best possible results. With examples focusing on the OpenAI Playground and easy-to-follow JavaScript and Python code samples, the book illustrates the possible applications of GPT-3 in production. By the end of this book, you'll understand the best use cases for GPT-3 and how to integrate the OpenAI API in your applications for a wide array of NLP tasks.
Table of Contents (15 chapters)
1
Section 1: Understanding GPT-3 and the OpenAI API
4
Section 2: Getting Started with GPT-3
8
Section 3: Using the OpenAI API

Understanding use case guidelines

There is a wide range of applications that could use the OpenAI API. However, not all use cases are permitted, so every application must be reviewed and approved before going live.

Every app is evaluated on a case-by-case basis, so the only way to know whether your application will be allowed is to go through the review process. However, OpenAI publishes guidelines that you can review and follow to give your app the best chances of approval. You can find the guidelines located at https://beta.openai.com/docs/use-case-guidelines. Before investing a lot of time in an app, you should first read the guidelines carefully.

We’re not going to cover all the app guidelines in this section. But mostly, the guidelines relate to safety and security. Safety, as defined by OpenAI, is Freedom from conditions that can cause physical, psychological, or social harm to people, including but not limited to death, injury, illness, distress, misinformation...