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

Added Connector Blueprint for AI21 Labs Jurassic-2 Mid #1613

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Added Connector Blueprint for AI21 Labs Jurassic-2 Mid #1613

merged 2 commits into from
Nov 10, 2023

Conversation

riferrei
Copy link
Contributor

@riferrei riferrei commented Nov 9, 2023

Description

It provides a functional example of a connector blueprint to connect with AI21 Labs Jurassic to execute inferences outside OpenSearch using the remote models functionality.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

"content-type": "application/json"
},
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/${parameters.model_name}/invoke",
"request_body": "{\r\n\"prompt\":\"${parameters.inputs}\",\r\n\"maxTokens\":200,\r\n\"temperature\":0.7,\r\n\"topP\":1,\r\n\"stopSequences\":[\r\n\r\n],\r\n\"countPenalty\":{\r\n\"scale\":0\r\n},\r\n\"presencePenalty\":{\r\n\"scale\":0\r\n},\r\n\"frequencyPenalty\":{\r\n\"scale\":0\r\n}\r\n}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove \r\n?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing. I just pushed another commit with less escaping metadata. I tested before commit and it works just fine.

@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
@riferrei riferrei temporarily deployed to ml-commons-cicd-env November 10, 2023 14:08 — with GitHub Actions Inactive
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Merging #1613 (9709f4e) into main (06c0cc5) will decrease coverage by 0.01%.
Report is 2 commits behind head on main.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1613      +/-   ##
============================================
- Coverage     79.43%   79.43%   -0.01%     
+ Complexity     3982     3981       -1     
============================================
  Files           390      390              
  Lines         16215    16215              
  Branches       1751     1751              
============================================
- Hits          12881    12880       -1     
  Misses         2660     2660              
- Partials        674      675       +1     
Flag Coverage Δ
ml-commons 79.43% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@ylwu-amzn ylwu-amzn merged commit 568bc7e into opensearch-project:main Nov 10, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 10, 2023
* Connector blueprint for AI21 Labs Jurassic-2 Mid

* Removed all \r\n

(cherry picked from commit 568bc7e)
dhrubo-os pushed a commit that referenced this pull request Nov 11, 2023
* Connector blueprint for AI21 Labs Jurassic-2 Mid

* Removed all \r\n

(cherry picked from commit 568bc7e)

Co-authored-by: Ricardo Ferreira <[email protected]>
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Feb 29, 2024
…oject#1613)

* Connector blueprint for AI21 Labs Jurassic-2 Mid

* Removed all \r\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants