notebook: Enable PII detection in tests#416
Conversation
PR SummaryThis PR replaces the deprecated 'configure_pii_detection.ipynb' notebook with a new, comprehensive 'enable_pii_detection.ipynb' notebook. The new notebook provides detailed instructions on how to enable and configure PII detection within the ValidMind Library. It steps through the process of installing the library with the pii-detection extra, initializing the library, and creating custom tests that emit PII. Different PII detection modes (disabled, test_results, test_descriptions, and all) are demonstrated with code examples. In addition, the notebook illustrates how to override detection using an unsafe flag, while also explaining the potential risks. Overall, the changes aim to streamline the user experience for configuring PII detection and provide clearer guidance on managing sensitive data in testing scenarios. Test Suggestions
|
Pull Request Description
What and why?
configure_pii_detection.ipynb>enable_pii_detection.ipynb)How to test
I checked that everything ran fine locally, but you might want to pull the file down just to check: https://github.com/validmind/validmind-library/blob/beck/sc-11822/documentation-pii-detection/notebooks/how_to/enable_pii_detection.ipynb
What needs special review?
I took some liberties with the examples so please make sure they make sense/are accurate.
Dependencies, breaking changes, and deployment notes
n/a
Release notes
Learn how to enable and configure Personally Identifiable Information (PII) detection when running tests with the ValidMind Library with our new notebook. Choose whether or not to include PII in test descriptions generated, or whether or not to include PII in test results logged to the ValidMind Platform.
Enable PII detection in tests
Checklist