

An example task might be to write a Python program to add two numbers. The new text that the model outputs is called the completion. Like a person writing an essay, an AI model takes a prompt and continues writing based on the text in the prompt. Just as you can prompt people with things like a topic for writing an essay, amazingly you can use prompts to elicit an AI model to generate target output based on a task that you have in mind.

The practice of using prompts to elicit output originates with people. A prompt is a sequence of text like a sentence or a block of code. Prompt engineering is the practice of using prompts to get the output you want. This article will show you how to get models like Codex to generate code you want using a technique called Prompt Engineering. Here is an example how you can have a conversation with a Minecraft character and have it follow your instructions by generating Minecraft API commands behind the scenes. The power of these AI models is that you can quickly develop and iterate on your ideas and build products that help people do more. Codex is a family of AI models from Open AI that translates between natural language and code in more than a dozen programming languages. Have you seen AI models that can generate code for you? Well, if you haven’t, you’re going to see them a lot more soon thanks to models like OpenAI’s Codex models. How to get Codex to produce the code you want!
