Prompt samples by OpenAI
OpenAI occasionally updates a collection of sample prompts tailored to various tasks, including coding, content generation, translations, and grammar corrections. These prompts display the core capabilities where the underlying models exhibit strong mastery. They have been carefully crafted and have demonstrated consistent success across these use cases.
You can explore the full list of prompts and filter the samples by category at https://platform.openai.com/docs/examples.

Figure 4.8: OpenAI sample prompts
When clicking on a prompt sample from this page, we can observe the prompt itself, divided into a system prompt and a user prompt, a sample response, and a code snippet demonstrating how to implement the prompt using OpenAI API.

Figure 4.9: Improve code efficiency prompt example
In this example, the system prompt contains general instructions describing the task to be performed, while the user prompt includes the import statement...