Tips for prompting
- ChatGPT Prompt Engineering for Developers - DeepLearning.AI
- specific instructions
- Specify the steps to complete a task
- Use delimiters to clearly separate parts of the input
- Consider to use few-shot prompting
System Prompts
- LLM에 들어가는 최상위 prompt → query로 input을 넣는것이 아니라 System Prompts로 고정으로 적어 두는 것
- 요즘은 굳이 Special token을 추가해서 System Prompt를 구성하진 않음
- System Prompts 예시
Few-Shot Learning (Few-Shot Learning Paper)
- Post-Processing, Few-shot Prompting 예시
Role Prompting Role Prompting GitHub
- Role playing Prompting이 LLM 보안을 뚫을때 악용되기도함
Chain of Thoughts (CoT) Chain-of-Thought Prompting Paper