opensearch-project / documentation-website

The documentation for OpenSearch, OpenSearch Dashboards, and their associated plugins.
https://opensearch.org/docs
Apache License 2.0
67 stars 463 forks source link

[DOC] Update Model/Connector API #5347

Open b4sjoo opened 11 months ago

b4sjoo commented 11 months ago

What do you want to do?

Tell us about your request. Provide a summary of the request and all versions that are affected.

Currently, the model and connector APIs have endpoints for create and delete only. If a user wants to change the definition of a model or connector, they must delete it and re-create the object manually with the desired changes. Now, the team is introducing an updateConnector and updateModel API endpoint to allow for updating the model or connector in place.

Architecture

UpdateConnector

Note that the connector is stored as a JSON object with fields for parameters, actions (defines request that will be sent to the connector based on corresponding model call), credentials, and other metadata. Note that connectors use the ML Commons access control design, which includes a security plugin permission for accessing connectors and in addition each connector / model specifies which backend roles can be used to access it.

When calling the updateConnector API:

UpdateModel

Note that the model is also stored as a JSON object. The model contains metadata and may point to a local model file, a connector id, or contain an inline connector definition. Note that models also use the ML Commons access control design, which includes a security plugin permission for accessing models and in addition each model specifies which backend roles can be used to access it.

When calling the updateModel API:

What other resources are available? Provide links to related issues, POCs, steps for testing, etc.

hdhalter commented 9 months ago

Hi @b4sjoo - Can you please provide more information about this issue, for instance, in what version was it (will it be) released? And are there any dev issues related to this update? Thanks!