Skip to content
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

Setup ML Endpoints #8

Merged
merged 28 commits into from
Aug 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
88e7999
add local and remote functions
aaravnavani Jun 28, 2024
4c1bee9
make sure formats are the same
aaravnavani Jun 28, 2024
124002a
fix any type
aaravnavani Jun 28, 2024
cce06ea
fixing validate to use inference rather than nlp model
wylansford Jun 28, 2024
7930788
kwargs updates
aaravnavani Jul 1, 2024
ba091fb
resolve conflicts
aaravnavani Jul 1, 2024
eb6b95f
fix args
aaravnavani Jul 1, 2024
cbe18ee
fix inference call
aaravnavani Jul 1, 2024
33d83aa
formatting
aaravnavani Jul 1, 2024
fde7231
Update main.py
wylansford Jul 1, 2024
357caf2
fix response output
aaravnavani Jul 2, 2024
e85a239
Merge branch 'ml_endpoint_setup' of https://github.com/guardrails-ai/…
aaravnavani Jul 2, 2024
d926a2f
remove use local check
aaravnavani Jul 2, 2024
cd6e099
Update main.py
wylansford Jul 8, 2024
fb487a2
Update main.py
wylansford Jul 8, 2024
37c828d
fix req body
aaravnavani Jul 16, 2024
4e4f875
json encoding
aaravnavani Jul 16, 2024
9cda7ab
Merge branch 'main' into ml_endpoint_setup
aaravnavani Jul 16, 2024
4e1c348
fix tests
aaravnavani Jul 18, 2024
7d75a24
test fix
aaravnavani Jul 18, 2024
08458bc
fix shape
aaravnavani Aug 5, 2024
4c8d787
model loading
aaravnavani Aug 5, 2024
f18c77d
Merge branch 'main' into ml_endpoint_setup
aaravnavani Aug 5, 2024
bced58e
Revert "fix shape"
aaravnavani Aug 5, 2024
7da461b
Merge branch 'ml_endpoint_setup' of https://github.com/guardrails-ai/…
aaravnavani Aug 5, 2024
76404c4
Revert "Revert "fix shape""
aaravnavani Aug 5, 2024
f183b43
go back to old code
aaravnavani Aug 5, 2024
3f15a53
remove duplicate error spans function
aaravnavani Aug 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions validator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import nltk
import spacy

from guardrails.validator_base import ErrorSpan
from guardrails.logger import logger
from guardrails.validator_base import ErrorSpan
from guardrails.validators import (
Expand Down Expand Up @@ -261,3 +263,8 @@ def _inference_remote(self, model_input: Any) -> str:
outputs = response["outputs"][0]["data"][0]

return outputs
error_spans=error_spans
)
CalebCourier marked this conversation as resolved.
Show resolved Hide resolved
else:
return PassResult()

Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.