Slide 9
Slide 9 text
Prompting Pitfalls & Considerations
● Use prompts that are clear, concise, and relevant. Unoptimized prompts can lead to
unintended consequences.
● Use delimiters: Separate different parts of your prompt (instructions, context, examples, etc.)
using clear delimiters like ###, """, —, or XML like tags to help the AI distinguish between sections.
● Overall structure of the prompt: Start with role, task, instructions on how to accomplish the task,
finally have styling instructions.
● Provide relevant context: When possible relevant background information to help the AI
understand the task better. This is typically interleaved with the task instructions. For
domain-specific context/knowledge, we typically use retrieval augmented generation.
● Avoid prompts that are discriminatory, offensive, or unsafe. Be mindful of the potential for bias
in your prompts.