-
Notifications
You must be signed in to change notification settings - Fork 138
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 connector blueprint for cohere embedding models in bedrock #2667
Conversation
Signed-off-by: Xun Zhang <[email protected]>
How about add to https://github.com/opensearch-project/ml-commons/blob/2.x/docs/remote_inference_blueprints/cohere_connector_embedding_blueprint.md, most part should be same ? |
These two are pretty consistent with the current bedrock model blueprints examples. There are separate azure_openai and openai connectors. So why we want to merge them together? Cohere deployed inside Bedrock can be considered as bedrock models too. |
## 5. Test model inference | ||
|
||
```json | ||
POST /_plugins/_ml/models/rcormY8B8aiZvtEZIe89/_predict |
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.
Can you also try if this API can work ? neural-search requires this API can work
POST /_plugins/_ml/_predict/text_embedding/<model_id>
{
"text_docs":[ "today is sunny", "today is sunny"],
"return_number": true,
"target_response": ["sentence_embedding"]
}
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.
Yes this is also verified too. It invokes successfully.
Signed-off-by: Xun Zhang <[email protected]>
docs/remote_inference_blueprints/bedrock_connector_cohere_cohere.embed-english-v3_blueprint.md
Outdated
Show resolved
Hide resolved
...te_inference_blueprints/bedrock_connector_cohere_cohere.embed-multilingual-v3 _blueprint.md
Outdated
Show resolved
Hide resolved
docs/remote_inference_blueprints/bedrock_connector_cohere_cohere.embed-english-v3_blueprint.md
Outdated
Show resolved
Hide resolved
docs/remote_inference_blueprints/bedrock_connector_cohere_cohere.embed-english-v3_blueprint.md
Show resolved
Hide resolved
"parameters": { | ||
"region": "<PLEASE ADD YOUR AWS REGION HERE>", | ||
"service_name": "bedrock", | ||
"truncate": "<NONE|START|END>", |
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.
Add some explanation for truncate
and input_type
?
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.
Added the AWS doc link to explain all parameters in the latest commit.
...te_inference_blueprints/bedrock_connector_cohere_cohere.embed-multilingual-v3 _blueprint.md
Outdated
Show resolved
Hide resolved
Signed-off-by: Xun Zhang <[email protected]>
* add connector blueprint for cohere embedding models in bedrock Signed-off-by: Xun Zhang <[email protected]> * add neural search way of invoking Signed-off-by: Xun Zhang <[email protected]> * add AWS doc link and update model group names Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 2062a7a)
#2678) * add connector blueprint for cohere embedding models in bedrock Signed-off-by: Xun Zhang <[email protected]> * add neural search way of invoking Signed-off-by: Xun Zhang <[email protected]> * add AWS doc link and update model group names Signed-off-by: Xun Zhang <[email protected]> --------- Signed-off-by: Xun Zhang <[email protected]> (cherry picked from commit 2062a7a) Co-authored-by: Xun Zhang <[email protected]>
Description
Blueprints for cohere embedding models in bedrock.
Issues Resolved
[List any issues this PR will resolve]
Check List
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.