Prompt Engineering
A hands-on module on the anatomy of a good prompt, role setting and few-shot examples.
Here you learn to write a prompt like a brief: role, context, task, constraints and output format. The closing AI Challenge asks you to design your own prompt and share the result.
What will you gain in this module?
- ✓ Write prompts with role + context + task + constraints
- ✓ Teach the model a format with few-shot examples
- ✓ Iterate on the output you receive
Lessons
Your progress bar fills as you complete the lessons in order.
We compare the same question asked two ways and build the five parts one by one.
Two or three examples often beat a long instruction. In this lesson you build your own example set.
"Make it better" does not work. Learn to name what is missing and change one thing at a time.
AI Challenge
Design your own prompt
Pick a real task from school or a project. Write a prompt in the role + context + task + constraints structure, run it and refine the output.
Submit: the prompt you used, the first output, the change you made and the final output.
Sign in to take part in this task.
Join and startPrompt library
Start by adapting these skeletons to your own task.
Role + context + task skeleton
The base template to start any task from.
Rol: Sen [alan] alanında [yıl] yıllık deneyimli bir [unvan]sın. Bağlam: [durumu birkaç cümleyle anlat] Görev: [ne istediğini tek cümlede yaz] Kısıtlar: - En fazla [sayı] kelime - [hedef kitle] anlayacak bir dil kullan Çıktı biçimi: [madde listesi / tablo / e-posta]
Few-shot example set
Teaches the model your desired format with two examples.
Aşağıdaki örneklerdeki biçimi birebir taklit et. Örnek 1 Girdi: [girdi 1] Çıktı: [çıktı 1] Örnek 2 Girdi: [girdi 2] Çıktı: [çıktı 2] Şimdi bunu yap: Girdi: [yeni girdi] Çıktı:
One-change refinement
Fixes an unsatisfying output step by step.
Önceki cevabın iyiydi ama [eksik olan şey] yetersiz. Yalnızca şu tek değişikliği yap: [tek bir talep] Geri kalan her şeyi aynı bırak.
Copied 1 times