athina.guard()
athina.guard()
to scan queries for Prompt Injection attacks.
Under the hood, we use a popular open source model from HuggingFace. It’s a fine tuned Deberta model, so latency should be low.
Note that this won’t be enough to prevent every single type of Prompt Injection attacks. But it’s a good starting point.