-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Onboard ML inference processors for search request / search response …
…(form) (#180) Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
21 changed files
with
464 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './ml_search_request_processor'; |
17 changes: 17 additions & 0 deletions
17
public/configs/search_request_processors/ml_search_request_processor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { generateId } from '../../utils'; | ||
import { MLProcessor } from '../ml_processor'; | ||
|
||
/** | ||
* The ML processor in the context of search request | ||
*/ | ||
export class MLSearchRequestProcessor extends MLProcessor { | ||
constructor() { | ||
super(); | ||
this.id = generateId('ml_processor_search_request'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './ml_search_response_processor'; |
17 changes: 17 additions & 0 deletions
17
public/configs/search_response_processors/ml_search_response_processor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { generateId } from '../../utils'; | ||
import { MLProcessor } from '../ml_processor'; | ||
|
||
/** | ||
* The ML processor in the context of search response | ||
*/ | ||
export class MLSearchResponseProcessor extends MLProcessor { | ||
constructor() { | ||
super(); | ||
this.id = generateId('ml_processor_search_response'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiFlexItem, EuiTitle } from '@elastic/eui'; | ||
|
||
interface ProcessorsTitleProps { | ||
title: string; | ||
processorCount: number; | ||
} | ||
|
||
/** | ||
* General component for formatting processor titles | ||
*/ | ||
export function ProcessorsTitle(props: ProcessorsTitleProps) { | ||
return ( | ||
<EuiFlexItem grow={false}> | ||
<EuiTitle size="s"> | ||
<div> | ||
<h2 | ||
style={{ display: 'inline-block' }} | ||
>{`${props.title} (${props.processorCount}) -`}</h2> | ||
| ||
<h2 style={{ display: 'inline-block', fontStyle: 'italic' }}> | ||
optional | ||
</h2> | ||
</div> | ||
</EuiTitle> | ||
</EuiFlexItem> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 0 additions & 157 deletions
157
public/pages/workflow_detail/workflow_inputs/ingest_inputs/processors_list.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.