prompt engineering
prompt engineering
on
Unleashing the Power of Generative AI
Prompt Engineering Practice Manual is a guide to crafting effective and optimized prompts
for AI models. This manual covers essential techniques, from structuring prompts for
accuracy to refining them for better responses. In this manual, step-by-step guidance is
provided to master prompt engineering across various AI applications.Get ready to design
clear, powerful, and impactful prompts to enhance AI-driven interactions with ease!
What are prompts?
• Prompts involve instructions and context passed to a
language model to achieve a desired task
• Prompt engineering is the practice of developing and
optimizing prompts to efficiently use language models
(LMs) for a variety of applications
• Prompt engineering is a useful skill for AI engineers and
researchers to improve and efficiently use language models
The sky is
blue
Model: “text-davinci-003”
temperature: 0.7
top-p: 1
Elements of a Prompt
• A prompt is composed with the following components:
• Instructions
• Context
• Input data
Output indicator
Sentiment:
Designing Prompts for Different Tasks
• In the next few slides, we will cover a few examples of
common tasks using different prompts
• Tasks covered:
• Text Summarization
• Question Answering
• Text Classification
• Role Playing
• Code Generation
• Reasoning
Text Summarization
Answer: Mice.
Text Classification
Sentiment: Neutral
Role Playing
“””
Table departments, columns = [DepartmentId,
DepartmentName]
Table students, columns = [DepartmentId, StudentId,
StudentName]
Create a MySQL query for all students in the Computer
Science Department
“””
SELECT StudentId, StudentName
FROM students
WHERE DepartmentId IN (SELECT DepartmentId FROM
departments WHERE DepartmentName = 'Computer Science');
Reasoning
8, 9, 15, 12, 2, 1.
A: Adding all the odd numbers (9, 15, 1) gives 25. The
answer is False.
11 apples
35
• Visual: Use icons for each category, e.g.,a pen for writing,a
cogwheel for productivity, etc.
Most Popular Tools:
Programming Tools:
1. If you had a body, what would you eat for breakfast, and why is it
binary pancakes?
2. Can you create a conversation between a refrigerator and a
microwave about who does more work?
3. If school was a video game, what would be the cheat code to pass
exams?
4. Can you freestyle rap about Wi-Fi connection issues?
5. Do you dream of electric sheep, or is that just a PR rumor?
6. What’s the AI equivalent of hitting “snooze” on an alarm clock?
7. Can you explain quantum physics as if you’re trying to sell me a
pizza?
8. If procrastination were an Olympic sport, would I win gold?
9. If you had a pet, would it be a robot dog or a virtual cat? Why?
10. Can you roast me... but nicely, like a marshmallow?