Skip to content

Commit

Permalink
address comments on 12/31
Browse files Browse the repository at this point in the history
Signed-off-by: Kama Huang <[email protected]>
  • Loading branch information
Kama Huang committed Dec 31, 2024
1 parent b57af43 commit c2cf94b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/pages/workflows/new_workflow/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import {
SEMANTIC_SEARCH_QUERY_NEURAL,
MULTIMODAL_SEARCH_QUERY_NEURAL,
HYBRID_SEARCH_QUERY_MATCH_NEURAL,
TERM_QUERY_TEXT,
} from '../../../../common';
import { generateId } from '../../../utils';
import semver from 'semver';
Expand Down Expand Up @@ -163,7 +164,7 @@ export function fetchSemanticSearchMetadata(version: string): UIState {
});

baseState.config.search.request.value = customStringify(
isPreV219 ? SEMANTIC_SEARCH_QUERY_NEURAL : KNN_QUERY
isPreV219 ? SEMANTIC_SEARCH_QUERY_NEURAL : TERM_QUERY_TEXT
);

baseState.config.search.enrichRequest.processors = isPreV219
Expand Down Expand Up @@ -223,7 +224,7 @@ export function fetchHybridSearchMetadata(version: string): UIState {
});

baseState.config.search.request.value = customStringify(
isPreV219 ? HYBRID_SEARCH_QUERY_MATCH_NEURAL : HYBRID_SEARCH_QUERY_MATCH_KNN
isPreV219 ? HYBRID_SEARCH_QUERY_MATCH_NEURAL : TERM_QUERY_TEXT
);

baseState.config.search.enrichResponse.processors = [
Expand Down

0 comments on commit c2cf94b

Please sign in to comment.