Skip to content
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

Complete conversions between config <-> form <-> template #156

Merged
merged 3 commits into from
May 16, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented May 16, 2024

Description

This PR completes the initial refactoring to support basic conversions of the config data to finally produce an end-to-end functional workflow. Specifically:

  • implements logic to convert form values -> UI config by injecting the values
  • implements logic to convert UI config -> final workflow template
  • updates few existing interfaces to include sufficient information to create the workflow template. For example, the type of model (text embedding vs. sparse encoder vs. other) influences the template construction
  • removes legacy logic for template conversion. The rest of what can/will be removed is tracked in Remove legacy ReactFlow workspace-related code #155

Demo video showing workflow creation working and form data persisted and auto-populated after creation (may ignore some of the form state such as auto-changing to existing model, etc. this will be updated over time). From dev tools, confirmed provisioning and resources work as expected for the following use cases:

  • semantic search w/ existing model
  • semantic search w/ new, pretrained model
screen-capture.33.webm

Issues Resolved

Makes progress on #23

Check List

  • Commits are signed per the DCO using --signoff

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.

@ohltyler ohltyler merged commit 0d73288 into opensearch-project:main May 16, 2024
11 checks passed
@ohltyler ohltyler deleted the template-conversion branch May 16, 2024 18:26
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 16, 2024
ohltyler added a commit that referenced this pull request May 16, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 0d73288)

Co-authored-by: Tyler Ohlsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants