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

Add custom pre and post processor functions #5300

Merged
merged 10 commits into from
Nov 8, 2023
Merged

Conversation

kolchfa-aws
Copy link
Collaborator

Add custom pre and post processor functions and a Bedrock connector documentation

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

| `huggingface/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2` | 384-dimensional dense vector space. | Yes | - [model_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/1.0.1/torch_script/sentence-transformers_paraphrase-multilingual-MiniLM-L12-v2-1.0.1-torch_script.zip)<br>- [config_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/1.0.1/torch_script/config.json) | - [model_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/1.0.1/onnx/sentence-transformers_paraphrase-multilingual-MiniLM-L12-v2-1.0.1-onnx.zip)<br>- [config_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2/1.0.1/onnx/config.json) |
| `huggingface/sentence-transformers/paraphrase-mpnet-base-v2` | 768-dimensional dense vector space. | Yes | - [model_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-mpnet-base-v2/1.0.0/torch_script/sentence-transformers_paraphrase-mpnet-base-v2-1.0.0-torch_script.zip)<br>- [config_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-mpnet-base-v2/1.0.0/torch_script/config.json) | - [model_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-mpnet-base-v2/1.0.0/onnx/sentence-transformers_paraphrase-mpnet-base-v2-1.0.0-onnx.zip)<br>- [config_url](https://artifacts.opensearch.org/models/ml-models/huggingface/sentence-transformers/paraphrase-mpnet-base-v2/1.0.0/onnx/config.json) |
Copy link
Contributor

Choose a reason for hiding this comment

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

This model version is 1.0.0, which is different with other models. Suggest add a new version column to show the model version

Copy link
Contributor

Choose a reason for hiding this comment

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

@kolchfa-aws Could you please add these models too mentioned in this issue: opensearch-project/opensearch-py-ml#334?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@dhrubo-os We've added the first 3 already (see this section). For the other two, could you provide the dimensionality and autotruncation so I can fill the table? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

@kolchfa-aws distiluse-base-multilingual-cased-v1 --> 512

paraphrase-mpnet-base-v2 --> 768

Auto truncation is yes for both of them.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Added.

"name": "YOUR CONNECTOR NAME",
"description": "YOUR CONNECTOR DESCRIPTION",
"version": "YOUR CONNECTOR VERSION",
"name": "<YOUR CONNECTOR NAME>",
Copy link
Contributor

Choose a reason for hiding this comment

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

@kolchfa-aws
Copy link
Collaborator Author

@ylwu-amzn I implemented the changes. Please review again to make sure everything looks good. Thanks!

Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Copy link
Contributor

@vagimeli vagimeli left a comment

Choose a reason for hiding this comment

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

@kolchfa-aws Great writing to add, correct, and clarify information!

@kolchfa-aws kolchfa-aws merged commit 3dbcc34 into main Nov 8, 2023
4 checks passed
@kolchfa-aws kolchfa-aws added the backport 2.11 PR: Backport label for 2.11 label Nov 8, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 8, 2023
* Add custom pre and post processor functions

Signed-off-by: Fanit Kolchina <[email protected]>

* Uniform placeholder format

Signed-off-by: Fanit Kolchina <[email protected]>

* Add custom pre and post processor blueprint

Signed-off-by: Fanit Kolchina <[email protected]>

* Add a pretrained model

Signed-off-by: Fanit Kolchina <[email protected]>

* Update _ml-commons-plugin/extensibility/blueprints.md

Co-authored-by: Yaliang Wu <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>

* Implemented tech review comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Add two more models

Signed-off-by: Fanit Kolchina <[email protected]>

* Specify json code highlighter

Signed-off-by: Fanit Kolchina <[email protected]>

---------

Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
(cherry picked from commit 3dbcc34)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kolchfa-aws pushed a commit that referenced this pull request Nov 8, 2023
* Add custom pre and post processor functions



* Uniform placeholder format



* Add custom pre and post processor blueprint



* Add a pretrained model



* Update _ml-commons-plugin/extensibility/blueprints.md




* Implemented tech review comments



* Add two more models



* Specify json code highlighter



---------




(cherry picked from commit 3dbcc34)

Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yaliang Wu <[email protected]>
vagimeli pushed a commit that referenced this pull request Dec 21, 2023
* Add custom pre and post processor functions

Signed-off-by: Fanit Kolchina <[email protected]>

* Uniform placeholder format

Signed-off-by: Fanit Kolchina <[email protected]>

* Add custom pre and post processor blueprint

Signed-off-by: Fanit Kolchina <[email protected]>

* Add a pretrained model

Signed-off-by: Fanit Kolchina <[email protected]>

* Update _ml-commons-plugin/extensibility/blueprints.md

Co-authored-by: Yaliang Wu <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>

* Implemented tech review comments

Signed-off-by: Fanit Kolchina <[email protected]>

* Add two more models

Signed-off-by: Fanit Kolchina <[email protected]>

* Specify json code highlighter

Signed-off-by: Fanit Kolchina <[email protected]>

---------

Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Co-authored-by: Yaliang Wu <[email protected]>
@Naarcha-AWS Naarcha-AWS deleted the pre-post-processors branch March 28, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.11 PR: Backport label for 2.11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants