Weekly Digest
AI Security and Consistent Image Generation
Jan 22 – Jan 28, 2024
Security meets creativity. Important tips on preventing prompt injection alongside techniques for generating consistent characters in AI art.
Top Tips This Week
All Tips from This Week
How do I use AI to debug code faster?
Paste the error message, the relevant code, and what you expected to happen. Ask: "What is causing this error and how do I fix it?" The AI can often spot issues humans miss, like off-by-one errors or incorrect variable scope.
What is prompt injection and how do I prevent it?
Prompt injection is when user input overrides your system instructions. Prevent it by: separating user input with clear delimiters, validating inputs, using the system message for instructions (not user message), and never trusting user input to be benign.
How do I get DALL-E to generate consistent characters?
Describe your character in extreme detail once, then reference that description. Include: specific clothing, hair color/style, distinguishing features, art style. Save your "character sheet" prompt and append it to every generation request.