ml-commons icon indicating copy to clipboard operation
ml-commons copied to clipboard

[Enhancement] Simplify the current user experience and APIs in Ml-Commons

Open Zhangxunmt opened this issue 2 years ago • 5 comments

From customer feedbacks, building ML apps on top of Ml-Commons requires too many upfront setup or pre-requisite APIs calls that looks unnecessary or unwanted to them. Some improvement are done in https://github.com/opensearch-project/ml-commons/issues/1147 and https://github.com/opensearch-project/ml-commons/issues/1146 recently. However, there are still more to enhance to lower the bar for both internal and external customers to onboard Ml-Commons.

We need to propose a roadmap to simplify as much as possible to help customers, starting with the below pain points:

  1. Allow remote inference without registering models. Users just want to create connector and assume it in their applications to run remote "Predict". - this is achieved by flow framework
  2. Remove the obstacle that are brought in by model_groups. - this is resolved by default model_group
  3. Get ride of manually deploy/undeploy models that are required in the workflow. https://github.com/opensearch-project/ml-commons/issues/1148 - this is resolved in 2.14 release.

Feel free to add more thoughts and suggestions!

Zhangxunmt avatar Sep 15 '23 18:09 Zhangxunmt

One more point: add blueprint id, so user can just input "cohere_embedding" , rather than copy the whole blue print

ylwu-amzn avatar Sep 15 '23 21:09 ylwu-amzn

This is the exact case we are working on. To simplify the setup for registering the model. Please take a look of https://github.com/opensearch-project/opensearch-ai-flow-framework/issues/21 and https://github.com/opensearch-project/opensearch-ai-flow-framework/issues/70. We are trying to automate creating a connector, model group then registering and deploying the remote model.

owaiskazi19 avatar Oct 09 '23 17:10 owaiskazi19

@owaiskazi19 as part of the AI Flow project, are you also planning to simplify the APIs as well? Or, are you just creating a UI that interacts with the existing APIs? Thanks!

jonfritz avatar Oct 09 '23 23:10 jonfritz

@owaiskazi19 as part of the AI Flow project, are you also planning to simplify the APIs as well? Or, are you just creating a UI that interacts with the existing APIs? Thanks!

@jonfritz we are creating wrapper APIs which would simplify the provision of complex setups of OpenSearch. Details for the API can be found here. AI Flow project will have a separate backend and not just frontend. User can use the APIs to create a template based on the use case and execute it.

owaiskazi19 avatar Oct 09 '23 23:10 owaiskazi19

@Zhangxunmt please see https://github.com/opensearch-project/ml-commons/issues/1343#issuecomment-1753428715 by @owaiskazi19 to address the problems you highlighted in this issue.

minalsha avatar Oct 10 '23 00:10 minalsha

Close as completed.

Zhangxunmt avatar May 09 '24 17:05 Zhangxunmt