-
Notifications
You must be signed in to change notification settings - Fork 58
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
Implement model, model group and connector apis #170
Conversation
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.
A cursory look at it, looks ok. It needs tests and documentation, please. I would write a working sample as well. Sign commits with -s
to pass DCO.
I encourage anyone wanting to add APIs to spend time doing #97 instread of hand-rolling these.
Regarding DCO I did signoff with Andrew Chappell and changed my username like: |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #170 +/- ##
============================================
+ Coverage 24.19% 25.99% +1.79%
- Complexity 1938 2018 +80
============================================
Files 246 263 +17
Lines 6865 7145 +280
============================================
+ Hits 1661 1857 +196
- Misses 5204 5288 +84 ☔ View full report in Codecov by Sentry. |
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.
I made a bunch of nitpicky comments. @shyim should take a look at the code.
For DCO I think you will have to amend previous commits. I would make a new branch off main and merge the code and re-commit it and force push the branch. LMK if you need help on how to do that!
CHANGELOG.md
Outdated
- Added support for `format` parameter to specify the sql response format ([#161](https://github.com/opensearch-project/opensearch-php/pull/161)) | ||
- Implemented the Model, Model Group and Connector apis ([#170](https://github.com/opensearch-project/opensearch-php/pull/170)) |
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.
Let's say Added ml-commons model, model group, and connector APIs
to be consistent with the rest?
USER_GUIDE.md
Outdated
@@ -24,7 +24,7 @@ class MyOpenSearchClass | |||
|
|||
public function __construct() | |||
{ | |||
//simple Setup | |||
//simple Setup |
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.
// space (I know it was there before, but let's fix - generally I find these comments sort of useless, but we should at least Capitalize and Space Them Consistently :)
USER_GUIDE.md
Outdated
@@ -501,3 +501,69 @@ $client = \OpenSearch\ClientBuilder::fromConfig($config); | |||
|
|||
... | |||
``` | |||
## Machine Learning Example Usage |
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.
Let's extract this into its own user guide like in https://github.com/opensearch-project/opensearch-py/tree/main/guides? It will be easier to grok. Link the guides from the user guide under maybe a new advanced or other topics section?
USER_GUIDE.md
Outdated
@@ -501,3 +501,69 @@ $client = \OpenSearch\ClientBuilder::fromConfig($config); | |||
|
|||
... | |||
``` | |||
## Machine Learning Example Usage | |||
|
|||
This example assumes you are using the AWS managed OpenSearch |
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.
No need to wrap in markdown
USER_GUIDE.md
Outdated
## Machine Learning Example Usage | ||
|
||
This example assumes you are using the AWS managed OpenSearch | ||
service. See [The ML Commons documentation for more examples and further information.](https://github.com/opensearch-project/ml-commons/blob/main/docs/remote_inference_blueprints/openai_connector_embedding_blueprint.md) |
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.
Capitalize ml-commons consistently, it's lowercase and just link that word, so [ml commons documentation](...)
.
USER_GUIDE.md
Outdated
service. See [The ML Commons documentation for more examples and further information.](https://github.com/opensearch-project/ml-commons/blob/main/docs/remote_inference_blueprints/openai_connector_embedding_blueprint.md) | ||
|
||
It walks through the process of setting up a model to generate | ||
vector embeddings from OpenAI. |
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.
We should probably add a prerequisites section of where to sign up / get keys from OpenAI.
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
Signed-off-by: Andrew Chappell <acha5066@gmail.com>
DCO should be fine now |
@shyim Got some time to CR this? |
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.
Looks good
Description
This PR implements the model, model group and connector apis from the ML Commons API so that developers can set up connectors to 3rd party tools like OpenAI as described here: https://github.com/opensearch-project/ml-commons/blob/main/docs/remote_inference_blueprints/openai_connector_embedding_blueprint.md
Issues Resolved
Closes #169
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.