Not able to make Presidio sensitive data masking flows work with NeMo guardrails and Langchain #600
Unanswered
Krish4101983
asked this question in
Q&A
Replies: 1 comment
-
Having the same Issue. Need help ASAP please. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, greetings! reaching out for help as having issues making the Presidio sensitive data masking flows work with NeMo guardrails and Langchain, any help will be greatly appreciated
I am implementing NeMo guard rails with Langchain and trying out the Presidio lib supported by NeMo for sensitive data masking
Issues - 1. Although some events related to sensitive data masking flow is getting triggered and, on the input flow, some masking happening as per the logs, BUT, it looks like that the data supposed to be masked is still sent to the LLM,
2. On the output flow, its always giving 'I'm not sure what to say.'
3. This output behavior is happening even when there is no maskable data is there in output
I am attaching logs for both the scenarios where maskable entity is present in the input and output as well as when its not.
In both cases Presidio rails are present
YAML code:
The CoLang looks like (This is not related to the YAML one, the YAML one is for Presidio sensitive data which we are testing ) -
The Langchain and NeMo guardrails versions -
Guardrail creation code :
chain invocation code:
I am using Azure OpenAI gpt-35-turbo model
Logs:
Logs-when-maskable-entity-in-input-output-with-presidio-rails-present.txt
Logs-when-no-maskable-entity-ininput-output-with-presidio-rails-present.txt
Beta Was this translation helpful? Give feedback.
All reactions