opensearch-project / dashboards-flow-framework

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

Onboard search req / search resp ML processors #256

Closed ohltyler closed 1 month ago

ohltyler commented 1 month ago

Description

This PR adds ML processor as options in the context of search request and search response. Additionally, it finishes all of the logic in the input transform / output transform modals to dynamically fetch input / generate output. There are a few places where this preview / advanced transform view is gated:

  1. Chaining multiple search request processors - in this case, since we don't have per-processor logging available, we cannot generate the interim transformed request. This is already tracked here: https://github.com/opensearch-project/OpenSearch/issues/14745
  2. Advanced output transform for search request processors - we cannot do partial simulation of the search request processor in the context of output transformations, since there is no way to configure a working, simulate-able search request processor with an empty output_map - it is always required, as both input_map and output_map are optional in the context of ingest and search response. We need an empty output_map in order to isolate the response up to the point of configuring it.

More implementation details:

Testing:

Demo video, showing the 2 new processors, and preview functionality for both.

screen-capture (17).webm

Issues Resolved

Resolves #217 Makes progress on #23 Makes progress on #219

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.