Delimiters & Encoding: Boosting Input Sanitization

Explicitly separating user input from system instructions using clear delimiters (e.g., `<Untrusted>` and `</Untrusted>`) or encoding untrusted input (like Base64) is a practical defense. Google's Spotlight research demonstrated that even simple delimiters significantly reduce injection success rates by providing the model a structural cue to differentiate data from commands.

Sources

Open the full topic