Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Exploring GPT-3

You're reading from   Exploring GPT-3 An unofficial first look at the general-purpose language processing API from OpenAI

Arrow left icon
Product type Paperback
Published in Aug 2021
Publisher Packt
ISBN-13 9781800563193
Length 296 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Steve Tingiris Steve Tingiris
Author Profile Icon Steve Tingiris
Steve Tingiris
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Understanding GPT-3 and the OpenAI API
2. Chapter 1: Introducing GPT-3 and the OpenAI API FREE CHAPTER 3. Chapter 2: GPT-3 Applications and Use Cases 4. Section 2: Getting Started with GPT-3
5. Chapter 3: Working with the OpenAI Playground 6. Chapter 4: Working with the OpenAI API 7. Chapter 5: Calling the OpenAI API in Code 8. Section 3: Using the OpenAI API
9. Chapter 6: Content Filtering 10. Chapter 7: Generating and Transforming Text 11. Chapter 8: Classifying and Categorizing Text 12. Chapter 9: Building a GPT-3-Powered Question-Answering App 13. Chapter 10: Going Live with OpenAI-Powered Apps 14. Other Books You May Enjoy

Democratizing NLP

Anyone can use GPT-3 with access to the OpenAI API. The API is a general-purpose text in, text out interface that could be used for virtually any language task. To use the API, you simply pass in text and get a text response back. The task might be to do sentiment analysis, write an article, answer a question, or summarize a document. It doesn't matter, as far as the API is concerned—it's all done the same way, which makes using the API easy enough for just about anyone to use, even non-programmers.

The text you pass in is referred to as a prompt, and the returned text is called a completion. A prompt is used by GPT-3 to determine how best to complete the task. In the simplest case, a prompt can provide a few words to get started with. For example, if the prompt was If today is Monday, tomorrow is, GPT-3 would likely respond with Tuesday, along with some additional text such as If today is Tuesday, tomorrow is Wednesday, and so on. This means that what you get out of GPT-3 depends on what you send to it.

As you might guess, the quality of a completion depends heavily on the prompt. GPT-3 uses all of the text in a prompt to help generate the most relevant completion. Each and every word, along with how the prompt is structured, helps improve the language model prediction results. So, understanding how to write and test prompts is the key to unlocking GPT-3's true potential.

You have been reading a chapter from
Exploring GPT-3
Published in: Aug 2021
Publisher: Packt
ISBN-13: 9781800563193
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image