-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature: Add support for JSON model inputs for Clarify Processor #3768
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
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov Report
@@ Coverage Diff @@
## master #3768 +/- ##
==========================================
- Coverage 90.19% 89.46% -0.74%
==========================================
Files 1000 234 -766
Lines 94828 23469 -71359
==========================================
- Hits 85528 20996 -64532
+ Misses 9300 2473 -6827
... and 1233 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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!
Issue #, if available: https://issues.amazon.com/issues/RAI-4263
Description of changes: Add support for JSON model inputs for Clarify Processor via updates to the
content_template
field and adding arecord_template
toModelConfig
Testing done: Unit testing locally, ran
make html
to verify documentation format is correctBackwards compatibility: The
content_template
field was changed to be required whencontent_type
isapplication/json
orapplication/jsonlines
. Previously, we allowed omitting this field forapplication/jsonlines
and we end up falling back to the SageMaker dense format, but that was not documented in the Python SDK, nor in our AWS documentation. It doesn't seem like the right solution to choose a default template as this really should always be populated intently and explicitly by the user. In fact, the AWS documentation states this field is required forapplication/jsonlines
, so this PR makes the Python SDK consistent with that documentation despite it being technically a backwards incompatible change.Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.