prompt-injection
prompt-injection copied to clipboard
Defence - Sandwich defence
Insert the user input in between two prompts.
https://learnprompting.org/docs/prompt_hacking/defensive_measures/sandwich_defense
Each defence should include the following:
- A frontend component for the defensive measure on the left side bar.
- Checkbox to toggle the defensive measure.
- Some way to get a description of the defensive measure.
- Pulsing the defensive measure component when it captures malicious content.
Too similar to the XML tagging defence. Just remove this?
Reopening now that the prompt enclosure defence is being added. #703
Blocked until that's merged in. merged now.