nemoguardrails.library.sensitive_data_detection.actions
nemoguardrails.library.sensitive_data_detection.actions
Module Contents
Functions
Data
API
Helper to compute the ad hoc recognizers for a config.
async
Checks whether the provided text contains any sensitive data.
Args source: The source for the text, i.e. “input”, “output”, “retrieval”. text: The text to check. config: The rails configuration object.
Returns True if any sensitive data has been detected, False otherwise.
Mapping for detect_sensitive_data.
Since the function returns True when sensitive data is detected, we block if result is True.
async
Checks whether the provided text contains any sensitive data.
Args source: The source for the text, i.e. “input”, “output”, “retrieval”. text: The text to check. config: The rails configuration object.
Returns The altered text, if applicable.