You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/class5/class5.rst
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -576,6 +576,9 @@ If you are using different LLM provider, please update accordingly.
576
576
577
577
Deploy the Nginx AI Guardrails connector pod.
578
578
579
+
.. Attention::
580
+
581
+
This Nginx NJS connector script is provided as-is for educational purpose only. As of this writting, its not officially deliver as part of F5 AI Guardrails stack. For production deployment, please harden the Nginx connector accordingly before deploying to production environment.
579
582
580
583
.. code-block:: bash
581
584
@@ -649,14 +652,18 @@ Example test prompt.
649
652
650
653
As expected shown above, F5 AI Guardrails blocks the prompt that violated the scanner policy.
651
654
655
+
Example terminal logs shown that Nginx connector is able to extract the prompt and response to F5 AI Guardrails for scanning.
652
656
653
657
.. image:: ./_static/class5-oob-08.png
654
658
659
+
Example shown that F5 AI Guardrails is able to block the prompt that violated the scanner policy.
660
+
655
661
.. image:: ./_static/class5-oob-09.png
656
662
657
663
Update F5 AI Guardrails policy to redact PII data.
Go to **Projects** and select your own project. Click **Add Scanners** to add **Corporate guardrails package** to your project. Please notes that **Corporate guardrails package** contains PII redaction scanner.
666
+
Go to **Projects** and select your own project. Click **Add Scanners** to add **Corporate guardrails package** to your project. Please notes that **Corporate guardrails package** contains PII redaction scanner. Please notes that **Corporate guardrails package** is a custom build scanner package provided for this class. Its not part of the in-built scanner packages.
660
667
661
668
.. image:: ./_static/class5-pii-01.png
662
669
@@ -672,11 +679,11 @@ You have to enable each scanner manually from Block to Redact.
672
679
673
680
.. image:: ./_static/class5-pii-04.png
674
681
675
-
Now, you can validate the PII Redaction scanner is able to redact PII data from FlowiseAI chatbot. As shown below, sensitive PII data are redacted successfully - except email address (based on regex policy)
682
+
Now, you can validate the PII Redaction scanner is able to redact PII data from FlowiseAI chatbot. As shown below, sensitive PII data are redacted successfully - except email address (intentional based on custom regex policy)
676
683
677
684
.. image:: ./_static/class5-pii-05.png
678
685
679
-
Alternatively, you can also validate from Arcadia Financial modern app chatbot. Similarly, sensitive PII data are redacted successfully - except email address (based on regex policy)
686
+
Alternatively, you can also validate from Arcadia Financial modern app chatbot. Similarly, sensitive PII data are redacted successfully - except email address (intentional based on custom regex policy)
680
687
681
688
.. image:: ./_static/class5-pii-06.png
682
689
@@ -693,7 +700,9 @@ The Nginx connector logs also shown that the PII data is redacted successfully.
693
700
694
701
.. image:: ./_static/class5-pii-08-1.png
695
702
696
-
Example of a regex only matches if not f5.com email domain. Hence, only non f5.com email will be redacted. f5.com domain will not be redacted.
703
+
In this example, the regex is designed to match only email addresses that are not from the f5.com domain. As a result, only non-f5.com email addresses will be redacted, while f5.com addresses remain visible.
704
+
705
+
This behavior is intentional. This to prevents the AI agent from sending emails to external domains. If the AI agent receives an instruction to send an email to an unknown or external address (perhaps due to manipulation), the address will be redacted, causing the operation to fail.
0 commit comments