Last updated on October 24, 2024
In the previous document, we introduced the concept of Prompt Engineering and provided you with some examples how it works. Now, you're probably wondering: why do these examples work, and how can you start improving your AI outputs?
This guide covers easy, actionable tips that will quickly boost the quality of your AI's responses—whether you're using it for writing, coding, or image generation:
If you want to dive deeper into creating high-quality prompts, learn how to effectively communicate with AI.
Effective prompts start with being clear and specific. Generative AI only responds to the instructions you provide, so the clearer you are, the better the result.
Vague prompts lead to vague answers. Make sure your prompt directly addresses what you need.
Write something about climate change.
The response may be too general or not specific to your needs.
Write a 100-word summary of the impact of climate change on coastal cities, focusing on rising sea levels.
This is focused and guides the AI to a specific answer.
How you phrase your prompt can change the outcome. Experimenting with different variations helps you find the best approach.
The format of your prompt matters. You can present it as a question, a command, or an open-ended statement. Each will guide the model differently.
The sky is
blue.
Complete the sentence: The sky is
blue during the day and dark at night.
What color is the sky during the day?
The sky is blue during the day.
One of the core techniques in prompt engineering is iteration. Start with a simple prompt and refine it based on the results. Add clarity or context with each iteration.
Summarize this article.
Summarize this article in 3 sentences, focusing on the key challenges discussed.
Always review the AI’s response and tweak your prompt if the output isn’t quite what you want. Don’t hesitate to keep refining.
AI models perform better when they have more information about the task. By adding context, you can help the model understand what you want, making its responses more accurate and relevant.
Without sufficient context, the AI may make incorrect assumptions or provide incomplete responses. Adding background details, instructions, or guidelines allows the AI to generate a more tailored response.
Write a product description.
This is a product.
Write a 50-word product description for wireless earbuds, focusing on sound quality and comfort for athletes.
Experience superior sound with our wireless earbuds, designed for athletes. Enjoy powerful bass and a secure, comfortable fit during your toughest workouts.
One effective way to improve results is to combine specific instructions with context. This is especially useful in tasks like summarization or when asking the AI to perform complex tasks.
Summarize this email in one sentence.
Dear team, thank you for organizing the community event. It was a great success thanks to your hard work.
The email thanks the team for their effort in organizing a successful community event.
Giving instructions to generative AI model is among the first basic techniques you'll learn about in this basics guide. Read the next several docs to find it.
Prompt engineering is an iterative process. After receiving a response, you might need to adjust your prompt to get closer to the result you’re looking for.
Refining prompts is key to getting high-quality outputs. With each iteration, add or remove details to improve the response.
Summarize this book.
Summarize the book’s key themes in 2-3 sentences, focusing on the author’s viewpoint on personal growth.
You can achieve better outputs by adding layers of instructions that guide the AI’s behavior. The more specific your layers, the more tailored the result will be.
Generate a product description for wireless earbuds. Use a formal tone. List 3 features and include a call-to-action.
In the following docs, you'll learn about the important elements of a prompt and your first prompting techniques like:
As you become more comfortable with basic prompts, you can start experimenting with advanced prompting techniques to achieve even better results.
You will also learn about combining prompting techniques when dealing with more complex tasks.
Key Takeaways:
The more you practice and refine your prompts, the better your results will become. Start experimenting with the tips and techniques discussed in this guide, and see how your AI-generated outputs improve! Use our free video course, ChatGPT for Everyone, to learn more about tactics to write effective prompts and ChatGPT use cases.
Context helps the AI understand the task better, leading to more accurate and relevant outputs.
Experimentation is key. Try different prompt formats, add context, and refine your inputs based on feedback. The more you practice, the more effective your prompts will become.