-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ML detection strategy to PII detection guardrail #292
Conversation
@xuechendi @XuhuiRen @ftian1 Please review. Thanks! |
@minmin-intel , test bash script is located here: https://github.com/opea-project/GenAIComps/blob/main/tests/test_guardrails_pii_detection.sh you can move content of run_test.sh to above file |
Thanks for pointing this out! I have moved the tests to test_guardrails_pii_detection.sh |
hello, @minmin-intel , UT failed, I think you hard coded IP addr? |
Signed-off-by: minmin-intel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: minmin-intel <[email protected]>
for more information, see https://pre-commit.ci
Signed-off-by: minmin-intel <[email protected]>
for more information, see https://pre-commit.ci
* first code of business safety classifier * allow strategy options and update readme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * disable ray for ml strategy and update test script * add log to pii test Signed-off-by: minmin-intel <[email protected]> * update logging in test gaurdrail * rm llm strategy and change url in test Signed-off-by: minmin-intel <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * delete file check in test and update readme Signed-off-by: minmin-intel <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: minmin-intel <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chen, suyue <[email protected]> Signed-off-by: sharanshirodkar7 <[email protected]>
Signed-off-by: zepan <[email protected]>
* first code of business safety classifier * allow strategy options and update readme * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * disable ray for ml strategy and update test script * add log to pii test Signed-off-by: minmin-intel <[email protected]> * update logging in test gaurdrail * rm llm strategy and change url in test Signed-off-by: minmin-intel <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * delete file check in test and update readme Signed-off-by: minmin-intel <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: minmin-intel <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chen, suyue <[email protected]> Signed-off-by: BaoHuiling <[email protected]>
Description
Add a second strategy to the pii detection guardrail microservice where a logistic regression classifier is used to detect PIIs.
Issues
NA
Type of change
Dependencies
scikit-learn
Tests
microservice-level unit test. see the script
run_test.sh