Get Started
Prompt Engineering
- Introduction
- Model Basics
- Prompt Structures
- Clarity & Specificity
- Using Context
- Role Instructions
- Step-by-Step
- Handling Ambiguity
- Creativity vs Precision
- Using Examples
- Advanced Techniques
- Troubleshooting
- Common Pitfalls
- Evaluating Quality
- Real-World Examples
- Prompt Templates
- AI Tasks
- Safety & Ethics
- Multimodal Prompts
- Data Extraction
- Conversation
- Personalization
AI Tasks
Different tasks require different prompt styles. Understanding how to adapt your prompts for each task will help you get the best results from the AI. Here are some examples and tips for common AI tasks:
Summarization
Summarize the following article in 3 sentences.
Expanded Example:
Summarize the following news article in 5 bullet points, highlighting the main events, key figures, and any important dates.
Translation
Translate this sentence to Spanish: {sentence}
Expanded Example:
Translate the following technical instructions to French. Maintain the formatting and include a glossary for any specialized terms.
Coding
Write a Python function to reverse a string.
Expanded Example:
Write a Python function that takes a list of numbers and returns a new list with only the even numbers, sorted in ascending order. Include comments explaining each step.
Adjust your prompt to fit the specific task for best results. For complex tasks, break them down into smaller steps or provide examples of the desired output.
Best Practices for AI Tasks
- Use task-specific language and constraints.
- Provide examples or templates for complex tasks.
- Test your prompt with different inputs to ensure reliability.
