-
Notifications
You must be signed in to change notification settings - Fork 218
Prediction Guard Guardrails components #677
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
Prediction Guard Guardrails components #677
Conversation
Signed-off-by: sharanshirodkar7 <[email protected]>
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]>
|
@chensuyue PG guardrails comp ready for review. |
Signed-off-by: sharanshirodkar7 <[email protected]>
Signed-off-by: sharanshirodkar7 <[email protected]>
Signed-off-by: sharanshirodkar7 <[email protected]>
|
Please fix the pre-commit issue. |
Signed-off-by: sharanshirodkar7 <[email protected]>
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]>
dd8d8f4 to
645e653
Compare
|
@lvliang-intel updated. |
|
@letonghan @lvliang-intel ready for review. |
|
@chensuyue so those files already exist in the repo main right now outside of any folder within toxicity detection. I created a folder predictionguard and added our files there. I was not sure if I have to move the files not related to our service as it might affect some links in examples repo too. Let me know what we should do here. |
Signed-off-by: Lianhao Lu <[email protected]>
|
@letonghan ready for review and merge. |
comps/guardrails/factuality/predictionguard/factuality_predictionguard.py
Outdated
Show resolved
Hide resolved
comps/guardrails/pii_detection/predictionguard/pii_predictionguard.py
Outdated
Show resolved
Hide resolved
|
Can you explain the relationship of |
Signed-off-by: sharanshirodkar7 <[email protected]>
|
@lvliang-intel, thanks for your feedback. I’m working on addressing your suggestions. |
Signed-off-by: sharanshirodkar7 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
Signed-off-by: sharanshirodkar7 <[email protected]>
7670c4b to
9488d27
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
3b1f565 to
94519e1
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
0e3600d to
ed10234
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
6ecdfe6 to
9b6db87
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
8df4dd8 to
b8d016f
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
b87cdbe to
911419b
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
ed49c74 to
b69a601
Compare
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]>
228789b to
ba679ce
Compare
Signed-off-by: sharanshirodkar7 <[email protected]>
Signed-off-by: sharanshirodkar7 <[email protected]>
|
@lvliang-intel @XuhuiRen updated. |
* added files for PG guardrails components Signed-off-by: sharanshirodkar7 <[email protected]> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]> * added package Signed-off-by: sharanshirodkar7 <[email protected]> * added package Signed-off-by: sharanshirodkar7 <[email protected]> * added package Signed-off-by: sharanshirodkar7 <[email protected]> * file structure updated to latest Signed-off-by: sharanshirodkar7 <[email protected]> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]> * Add .DS_Store to .gitignore Signed-off-by: sharanshirodkar7 <[email protected]> * updated readme,requirements+changes based on feedback Signed-off-by: sharanshirodkar7 <[email protected]> * references classes in init.py Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * fix readme link error Signed-off-by: sharanshirodkar7 <[email protected]> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <[email protected]> * removed duplicatesa Signed-off-by: sharanshirodkar7 <[email protected]> * removed added readme content Signed-off-by: sharanshirodkar7 <[email protected]> --------- Signed-off-by: sharanshirodkar7 <[email protected]>
Signed-off-by: Lianhao Lu <[email protected]>



Description
This PR introduces new guardrail components for Prediction Guard (PG) to enhance the safety and reliability of AI interactions. The following guardrails have been added:
Issues
n/a
Type of change
New feature (non-breaking change which adds new functionality)
Dependencies
PREDICTIONGUARD_API_KEY needs to be added to CI/CD to test the microservice.
Tests
The following tests were conducted to verify the functionality and integration of the new guardrail components:
All tests have passed, confirming the effective integration of the guardrail components.