Prompt Engineering
System prompt:
- Start with a system prompt to set the desired output language, version, syntax etc
Output format:
- Specify the output structure you want
- e.g. “explain step-by-step”
- e.g. “structure output as an array of objects with the following keys: …”)
Conditions:
- Specify any conditions that must be met while/before completing task
Prompt text formatting:
- Use delimiters (e.g. `````,
"""
,---
) to clearly indicate distinct parts of the input - Wrap code blocks in
```
Iterating:
- When generating code, start simple, repair as needed, add next functionality, repair as needed, etc
Sources:
- brexhq/prompt-engineering • Tips and tricks for working with Large Language Models like OpenAI’s GPT-4. 📖
Preparing for an interview
- Act as a technical interviewer and ask me five questions about X
- What is the answer to question 1?
Using on macOS via Raycast AI
- Raycast AI (beta) is the best ChatGPT integration I’ve used on the Mac • A Better Computer 📺
Inbox
- Learn Prompting: Your Guide to Communicating with AI • Learn Prompting 📖
- Pairing with GPT-4 • Fly.io 📖
- I just learned the best ChatGPT hack for travel planning: ChatGPT tables! • @smartworkai 📺
- ChatGPT & AI How To (@smartworkai) • @smartworkai 📺
- Simply explained: how does GPT work? • Confused bit 📖
- ChatGPT Prompt Engineering for Developers • DeepLearning.AI 🎓
- Prompt engineering techniques with Azure OpenAI • Microsoft Learn 📖
- Best practices for prompt engineering with OpenAI API • OpenAI Help Center 📖
- Techiniques to improve reliability • OpenAI Cookbook 📖
- Examples • OpenAI Cookbook 📖
- Prompt Engineering Mastery Series - YouTube • Hasan Aboul Hasan 📺
- ChatGPT Tutorial for Developers - 38 Ways to 10x Your Productivity • Mosh Hamedani 📺
- ChatGPT For Programming: 100 Coding Prompts For ChatGPT • Great AI Prompts 📖
- The Art of ChatGPT Prompting: A Guide to Crafting Clear and Effective Prompts • Fatih Kadir Akın 📕
- Awesome ChatGPT Prompts • Fatih Kadir Akın 📖
- Masterclass: AI-driven Development for Programmers • Fireship 📺
- 50+ ChatGPT Prompts for Web Developers • Builder.io 📖
- ChatGPT Changed How I Write Code… - YouTube • Tech with Tim 📺
- Asking ChatGPT to build a multi-style Button components • Simon Vrachliotis 📺
- ChatGPT wrote me an AppleScript. Imagine this but for Shortcuts • A Better Computer 📺