opensearch-project / dashboards-flow-framework

A UI designer for constructing AI applications with OpenSearch
Apache License 2.0
6 stars 5 forks source link

Add option to select and provision pretrained text embedding models #137

Closed ohltyler closed 3 months ago

ohltyler commented 3 months ago

Description

This PR adds the ability to select existing models, or select from available pretrained models, in the text embedding processor component. Specifically:

Misc:

Demo video:

screen-capture (29).webm

Issues Resolved

Makes progress on #73

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.

amitgalitz commented 3 months ago

Might have missed it in the code but also if its a pretrained model it has the info like dimensions in the model metadata for further steps that need that

ohltyler commented 3 months ago

Might have missed it in the code but also if its a pretrained model it has the info like dimensions in the model metadata for further steps that need that

Right. I have this in line 196 in common/interfaces. Now that we have it persisted, we can utilize it dynamically during template construction later on. I still have it hardcoded atm, but there's a TODO tracker for it