Skip to content

Commit b4329d3

Browse files
committed
Neural Sparse Integration
Signed-off-by: saimedhi <saimedhi@amazon.com>
1 parent 4bfd70c commit b4329d3

File tree

6 files changed

+19
-1
lines changed

6 files changed

+19
-1
lines changed

common/constants.ts

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export enum WORKFLOW_TYPE {
165165
SEMANTIC_SEARCH = 'Semantic Search',
166166
MULTIMODAL_SEARCH = 'Multimodal Search',
167167
HYBRID_SEARCH = 'Hybrid Search',
168+
NEURAL_SPARSE_SEARCH = 'Neural Sparse Search',
168169
RAG = 'RAG with Lexical Retrieval',
169170
VECTOR_SEARCH_WITH_RAG = 'RAG with Vector Retrieval',
170171
CUSTOM = 'Custom Search',

common/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function isVectorSearchUseCase(workflow: Workflow | undefined): boolean {
5151
WORKFLOW_TYPE.HYBRID_SEARCH,
5252
WORKFLOW_TYPE.MULTIMODAL_SEARCH,
5353
WORKFLOW_TYPE.SEMANTIC_SEARCH,
54+
WORKFLOW_TYPE.NEURAL_SPARSE_SEARCH,
5455
WORKFLOW_TYPE.VECTOR_SEARCH_WITH_RAG,
5556
].includes(workflow?.ui_metadata?.type)
5657
);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "OpenSearch Flow Framework Dashboards Plugin",
55
"main": "index.js",
66
"config": {
7-
"plugin_version": "2.17.0.0",
7+
"plugin_version": "2.19.0.0",
88
"plugin_name": "flowFrameworkDashboards",
99
"plugin_zip_name": "dashboards-flow-framework"
1010
},

public/pages/workflows/new_workflow/quick_configure_modal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ function injectQuickConfigureFields(
445445
switch (workflow.ui_metadata?.type) {
446446
case WORKFLOW_TYPE.SEMANTIC_SEARCH:
447447
case WORKFLOW_TYPE.HYBRID_SEARCH:
448+
case WORKFLOW_TYPE.NEURAL_SPARSE_SEARCH:
448449
case WORKFLOW_TYPE.MULTIMODAL_SEARCH: {
449450
if (!isEmpty(quickConfigureFields) && workflow.ui_metadata?.config) {
450451
workflow.ui_metadata.config = updateIngestProcessors(

public/pages/workflows/new_workflow/quick_configure_optional_fields.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export function QuickConfigureOptionalFields(
6565
let defaultFieldValues = {} as QuickConfigureFields;
6666
switch (props.workflowType) {
6767
case WORKFLOW_TYPE.SEMANTIC_SEARCH:
68+
case WORKFLOW_TYPE.NEURAL_SPARSE_SEARCH:
6869
case WORKFLOW_TYPE.HYBRID_SEARCH: {
6970
defaultFieldValues = {
7071
textField: DEFAULT_TEXT_FIELD,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Neural Sparse Search",
3+
"description": "Build a Neural Sparse Search application.",
4+
"version": {
5+
"template": "1.0.0",
6+
"compatibility": [
7+
"2.19.0",
8+
"3.0.0"
9+
]
10+
},
11+
"ui_metadata": {
12+
"type": "Neural Sparse Searc"
13+
}
14+
}

0 commit comments

Comments
 (0)