-
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 <ssharanshirodkar7@gmail.com>
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
|
@chensuyue PG guardrails comp ready for review. |
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
|
Please fix the pre-commit issue. |
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
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 <lianhao.lu@intel.com>
|
@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 <ssharanshirodkar7@gmail.com>
|
@lvliang-intel, thanks for your feedback. I’m working on addressing your suggestions. |
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
7670c4b to
9488d27
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
3b1f565 to
94519e1
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
0e3600d to
ed10234
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
6ecdfe6 to
9b6db87
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
8df4dd8 to
b8d016f
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
b87cdbe to
911419b
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
ed49c74 to
b69a601
Compare
…pace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
228789b to
ba679ce
Compare
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
|
@lvliang-intel @XuhuiRen updated. |
* added files for PG guardrails components Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * added package Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * added package Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * added package Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * file structure updated to latest Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * Add .DS_Store to .gitignore Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * updated readme,requirements+changes based on feedback Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * references classes in init.py Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * fix readme link error Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * Fix pre-commit issues: end-of-file, requirements.txt, trailing whitespace, imports, and formatting Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * removed duplicatesa Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> * removed added readme content Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com> --------- Signed-off-by: sharanshirodkar7 <ssharanshirodkar7@gmail.com>
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>



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.