-
Notifications
You must be signed in to change notification settings - Fork 509
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
Conversation
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
| `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) | |
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.
This model version is 1.0.0
, which is different with other models. Suggest add a new version
column to show the model version
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.
@kolchfa-aws Could you please add these models too mentioned in this issue: opensearch-project/opensearch-py-ml#334?
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.
@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!
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.
@kolchfa-aws distiluse-base-multilingual-cased-v1
--> 512
paraphrase-mpnet-base-v2
--> 768
Auto truncation is yes for both of them.
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.
Thanks! Added.
"name": "YOUR CONNECTOR NAME", | ||
"description": "YOUR CONNECTOR DESCRIPTION", | ||
"version": "YOUR CONNECTOR VERSION", | ||
"name": "<YOUR CONNECTOR NAME>", |
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.
Suggest add pre/post process functions https://github.com/opensearch-project/ml-commons/blob/main/docs/remote_inference_blueprints/cohere_connector_embedding_blueprint.md
Co-authored-by: Yaliang Wu <[email protected]> Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
@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]>
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.
@kolchfa-aws Great writing to add, correct, and clarify information!
* 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>
* 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]>
* 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]>
Add custom pre and post processor functions and a Bedrock connector documentation
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.