-
Notifications
You must be signed in to change notification settings - Fork 145
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
use local_regex as default type for guardrails #2853
use local_regex as default type for guardrails #2853
Conversation
Signed-off-by: Jing Zhang <[email protected]>
common/src/test/java/org/opensearch/ml/common/model/GuardrailsTests.java
Show resolved
Hide resolved
Signed-off-by: Jing Zhang <[email protected]>
* use local_regex as default type for guardrails Signed-off-by: Jing Zhang <[email protected]> * add UT for model type Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]> (cherry picked from commit 7ecff1a)
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.15 2.15
# Navigate to the new working tree
cd .worktrees/backport-2.15
# Create a new branch
git switch --create backport/backport-2853-to-2.15
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7ecff1aaa17d8ee04fc0a408b49384624db0b93b
# Push it to GitHub
git push --set-upstream origin backport/backport-2853-to-2.15
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.15 Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.16 2.16
# Navigate to the new working tree
cd .worktrees/backport-2.16
# Create a new branch
git switch --create backport/backport-2853-to-2.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7ecff1aaa17d8ee04fc0a408b49384624db0b93b
# Push it to GitHub
git push --set-upstream origin backport/backport-2853-to-2.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.16 Then, create a pull request where the |
* use local_regex as default type for guardrails Signed-off-by: Jing Zhang <[email protected]> * add UT for model type Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]> (cherry picked from commit 7ecff1a) Co-authored-by: Jing Zhang <[email protected]>
…) (opensearch-project#2856) * use local_regex as default type for guardrails Signed-off-by: Jing Zhang <[email protected]> * add UT for model type Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]> (cherry picked from commit 7ecff1a) Co-authored-by: Jing Zhang <[email protected]>
…) (opensearch-project#2856) * use local_regex as default type for guardrails Signed-off-by: Jing Zhang <[email protected]> * add UT for model type Signed-off-by: Jing Zhang <[email protected]> --------- Signed-off-by: Jing Zhang <[email protected]> (cherry picked from commit 7ecff1a) Co-authored-by: Jing Zhang <[email protected]>
* use local_regex as default type for guardrails * add UT for model type --------- (cherry picked from commit 7ecff1a) Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
* use local_regex as default type for guardrails * add UT for model type --------- (cherry picked from commit 7ecff1a) Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
#3050) * use local_regex as default type for guardrails * add UT for model type --------- (cherry picked from commit 7ecff1a) Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> (cherry picked from commit fe74150) Co-authored-by: Jing Zhang <[email protected]>
Description
When the guardrails type is not setup, we use local_regex as default type.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.