-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workspace nodes/edges; misc fixes (#394)
* cover few edge cases Signed-off-by: Tyler Ohlsen <[email protected]> * Make quick config fields all fullwidth Signed-off-by: Tyler Ohlsen <[email protected]> * word consistency; add more known embeddings Signed-off-by: Tyler Ohlsen <[email protected]> * remove unnecessary spacing Signed-off-by: Tyler Ohlsen <[email protected]> * Rename UI component from query -> search request Signed-off-by: Tyler Ohlsen <[email protected]> * rename results -> search response Signed-off-by: Tyler Ohlsen <[email protected]> * update names; remove unnecessary components; add detailed i/o Signed-off-by: Tyler Ohlsen <[email protected]> * rename Signed-off-by: Tyler Ohlsen <[email protected]> * Fix & improve test Signed-off-by: Tyler Ohlsen <[email protected]> --------- Signed-off-by: Tyler Ohlsen <[email protected]>
- Loading branch information
Showing
29 changed files
with
323 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
*/ | ||
|
||
export * from './transformer'; | ||
export * from './indexer'; | ||
export * from './indices'; | ||
export * from './other'; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CATEGORY, COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic index placeholder UI component. Input/output depends on ingest or search context. | ||
* Does not have any functionality. | ||
*/ | ||
export class BaseIndex extends BaseComponent { | ||
constructor(category: COMPONENT_CATEGORY) { | ||
super(); | ||
this.type = COMPONENT_CLASS.INDEX; | ||
this.label = 'Index'; | ||
this.description = 'An OpenSearch index'; | ||
this.inputs = [ | ||
{ | ||
id: | ||
category === COMPONENT_CATEGORY.INGEST | ||
? 'document' | ||
: 'search_request', | ||
label: | ||
category === COMPONENT_CATEGORY.INGEST | ||
? 'Document' | ||
: 'Search Request', | ||
acceptMultiple: false, | ||
}, | ||
]; | ||
this.outputs = | ||
category === COMPONENT_CATEGORY.INGEST | ||
? [] | ||
: [ | ||
{ | ||
id: 'search_response', | ||
label: '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,20 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CATEGORY, COMPONENT_CLASS } from '../../../common'; | ||
import { BaseIndex } from './base_index'; | ||
|
||
/** | ||
* A basic knn index placeholder UI component. Input/output depends on ingest or search context. | ||
* Does not have any functionality. | ||
*/ | ||
export class KnnIndex extends BaseIndex { | ||
constructor(category: COMPONENT_CATEGORY) { | ||
super(category); | ||
this.type = COMPONENT_CLASS.KNN_INDEX; | ||
this.label = 'k-NN Index'; | ||
this.description = 'A specialized k-NN index'; | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic search request placeholder UI component. | ||
* Does not have any functionality. | ||
*/ | ||
export class SearchRequest extends BaseComponent { | ||
constructor() { | ||
super(); | ||
this.type = COMPONENT_CLASS.SEARCH_REQUEST; | ||
this.label = 'Search Request'; | ||
this.description = 'An OpenSearch search request'; | ||
this.outputs = [ | ||
{ | ||
id: 'search_request', | ||
label: this.label, | ||
}, | ||
]; | ||
} | ||
} |
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,23 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { COMPONENT_CLASS } from '../../../common'; | ||
import { BaseComponent } from '../base_component'; | ||
|
||
/** | ||
* A basic search response placeholder UI component. | ||
* Does not have any functionality. | ||
*/ | ||
export class SearchResponse extends BaseComponent { | ||
constructor() { | ||
super(); | ||
this.type = COMPONENT_CLASS.SEARCH_RESPONSE; | ||
this.label = 'Search Response'; | ||
this.description = 'OpenSearch search response'; | ||
this.inputs = [ | ||
{ id: 'search_response', label: this.label, acceptMultiple: false }, | ||
]; | ||
} | ||
} |
Oops, something went wrong.