Protect against prompt injection attacks in your applications
llm-guard
package has a dependency on PyTorch, which may cause installation issues on Intel Mac machines. The base SDK will install and function correctly without llm-guard, with limited prompt injection scanning capabilities. When llm-guard
is not available, Netra will log appropriate warnings and continue to operate with fallback behavior.ScanResult
object with the following attributes:
InputScanner
supports custom models through themodel_configuration
parameter, allowing you to use specialized models for Prompt Injection Detection.
Follow this configuration structure to provide your custom models.