Generative Pre-trained Transformer Version 3 (GPT-3)
Exploring GPT-3
- loc 390-392 · Information And Modularity
NLP is a branch of AI that focuses on the use of natural human language for various computing applications.
loc 426-427 · Information And Modularitya zero-shot prompt is just a few words or a short description of a task without any examples.
loc 522-523 · Information And ModularityA one-shot prompt provides one example that GPT-3 can use to learn how to best complete a task. Here is an example of a one-shot prompt that provides a task description (the first line) and a single example (the second line): A list of actors in the movie Star Wars 1. Mark Hamill: Luke Skywalker
loc 526-530 · Information And ModularityWith most NLP systems, the data used to teach the system how to complete a task is provided when the underlying ML model is trained. So, to improve results for a given task, the underlying training must be updated, and a new version of the model must be built. GPT-3 works differently, as it isn't trained for any specific task. Rather, it was designed to recognize patterns in the prompt text and to continue the pattern(s) by using the underlying general-purpose model. This approach is referred to as meta-learning because the prompt is used to teach GPT-3 how to generate the best possible completion, without the need for retraining.
loc 580-586 · Information And ModularityWhen a prompt is sent to GPT-3, it's broken down into tokens. Tokens are numeric representations of words or—more often—parts of words.
loc 589-591 · Information And Modularitya limit of 2,048 tokens (approximately ~1,500 words) for the combined prompt and the resulting generated completion.
loc 593-594 · Information And ModularityOn average, for English words, every four characters represent one token.
loc 595-596 · Information And ModularityThe available models or engines (as they're also referred to) are named Davinci, Babbage, Curie, and Ada. Of the four, Davinci is the largest and most capable.
loc 627-632 · Information And ModularityDavinci can perform any tasks that any other engine can perform. Babbage is the next most capable engine, which can do anything that Curie or Ada can do. Ada is the least capable engine, but the best-performing and lowest-cost engine. When you're getting started and for initially testing new prompts, you'll usually want to begin with Davinci , then try, Ada, Babbage, or Curie to see if one of them can complete the task faster or more cost-effectively.
loc 632-641 · Information And ModularityA final note to keep in mind about all of the engines is that they are all a snapshot in time, meaning the data used to train them cuts off on the date the model was built. So, GPT-3 is not working with up-to-the-minute or even up-to-the-day data—it's likely weeks or months old.
loc 670-673 · Information And ModularityIt's an AI system with an excellent language model—it is not conscious in any way, so it will never willfully say something hurtful or inappropriate because it has no will.
loc 682-683 · Information And Modularityall GPT-3 applications must go through an approval process to prevent potentially inappropriate or harmful results.
loc 703-704 · Information And ModularityGPT-3 can generate quizzes
loc 855-856 · Information And ModularityThe easiest way to create a summary is to just add tl;dr: after the text you want to summarize.
loc 874-875 · Action And ExecutionAnother way to summarize text is to add one-sentence summary: after the text you'd like to summarize. This, along with setting the Stop Sequence to a period, results in a single sentence summary of the provided text.
loc 892-895 · Information And ModularityYou can also use GPT-3 to transform text, for example, from one language to another, or from English to something else, such as emojis or software code.
loc 929-931 · Information And Modularityshows the model that a question mark should be returned for questions it likely doesn't have the correct answer to. This directs the model to not make up an answer, which it would likely do by default. This is an important example because although GPT-3 responses are almost always grammatically correct, they are very often not factual. So, even though they might sound good, they could be completely fabricated.
loc 1128-1131 · Information And ModularityThe lower temperature value is telling GPT-3 to be less variable in how it processes the prompt, so the completion is staying consistent. Because we're using zero for the temperature (the lowest value), the result will likely always be the same.
loc 1347-1348 · Information And ModularityWhile the temperature controls the randomness of results generated based on the model, the Top P setting controls how many of those results (or tokens) are considered for completion. The value can be between 0-1, where a higher value considers a higher number of tokens. For example, a value of 1 would consider all of the likely options, whereas a value of 0.5 would limit the options by half.
loc 1372-1375 · Information And Modularityimagine that 100 potential token options could be selected as the next token in a completion. A Top P value of 0.1 could be used to limit the options to 10, thereby reducing the number of tokens that could be selected.
loc 1377-1378 · Information And ModularityGPT-3 generates a completion to a prompt. The completion text is submitted back to a GPT-3 filter engine. The filter engine returns a classification (safe, sensitive, unsafe). The original completion text is blocked or sent back to the user based on the classification. Optionally, if the completion text is sensitive, or unsafe, a new safe completion could be generated and sent without the user knowing that some content was blocked.
loc 2795-2801 · Information And ModularityContent filtering is done using the completions endpoint. However, a specialized content filter engine is used along with some specific settings, and a specially formatted prompt. As this is being written, the available content filtering engine is content-filter-alpha-c4.
loc 2802-2805 · Information And Modularitybuilding a GPT-3-powered web app that lets users ask any questions and get back answers from a knowledge base of data that we'll provide.
loc 4890-4891 · Information And ModularityOpenAI Answers endpoint is specifically designed for question-answering tasks. It provides more control than the Completions endpoint by enabling the use of a source of truth for the answers.
loc 4918-4919 · Information And ModularityBefore going live with apps that use the OpenAI API, they must be approved for publishing by OpenAI.
loc 5398-5399 · Information And ModularityOpenAI defines a live application as any application that is serving API outputs to more than five people. This includes people in your company or organization. So, even a private beta app is considered live if it is using the OpenAI API and has more than five users. To move beyond this limit, your app needs to be reviewed and approved by OpenAI. Going live without approval from OpenAI could result in your API key being revoked immediately, and without warning. Further, going live without approval could possibly cause your account to be permanently blocked from further API access.
loc 5414-5418 · Information And Modularityyou can’t build apps that generate content for Twitter tweets. This is because using AI-generated content violates Twitter’s acceptable use policies.
loc 5433-5435 · Information And Modularity