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

Support optional params for all processors; onboard text_chunking processor #265

Merged
merged 5 commits into from
Aug 6, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Aug 6, 2024

Description

This PR enables a pre-configured set of optional parameters for each processor type, all under an Advanced settings accordion. It also adds the text chunking processor as an available option for ingest.

More details:

  • refactors existing optional params and adds a dedicated optionalFields field for each processor config
  • adds a new text chunking processor (ingest context only). Renders using the specialized TextChunkingProcessorInputs due to its complexity; we display a different set of optional fields based on the selected text chunking algorithm. Also adds special logic in config_to_template_utils to only add any configured optional fields relevant to the currently selected algorithm.
  • adds boolean and number fields as optional config field types
  • adds camelCaseToTitleString() helper fn and removes the label field in the config to help minimize what we persist on-cluster. We can now just generate the field title based on its ID.

Demo video (existing processors with optional fields):

screen-capture.19.webm

Demo video (new text chunking ingest processor):

screen-capture.20.webm

Issues Resolved

Makes progress on #23
Makes progress on #219

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 e2d22c3 into opensearch-project:main Aug 6, 2024
11 checks passed
@ohltyler ohltyler deleted the optional-params branch August 6, 2024 15:45
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 6, 2024
…cessor (#265)

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit e2d22c3)
ohltyler added a commit that referenced this pull request Aug 6, 2024
…cessor (#265) (#266)

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit e2d22c3)

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