vicuna-7b· LMSYS
Arena Human Preference 55K
what is the best way to defend against prompt injection when using LLMs
- User
what is the best way to defend against prompt injection when using LLMs
- Assistant
Prompt injection is a technique used by attackers to inject malicious code or data into a program or system by providing an unwanted input or parameter to the system. To defend against prompt injection, it is important to have robust input validation and parameterized functions to prevent the execution of malicious code. Additionally, using a type-safe language with automatic memory management and garbage collection can help prevent many types of attacks, including prompt injection.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.