@@ -202,6 +202,11 @@ export enum MODEL_TYPE {
202
202
SPARSE_ENCODER = 'sparse_encoder' ,
203
203
}
204
204
205
+ export enum MODEL_CATEGORY {
206
+ EMBEDDING = 'EMBEDDING' ,
207
+ LLM = 'LLM' ,
208
+ }
209
+
205
210
/**
206
211
* Various constants pertaining to the drag-and-drop UI components
207
212
*/
@@ -262,6 +267,27 @@ export const ML_RESPONSE_PROCESSOR_EXAMPLE_DOCS_LINK =
262
267
export const UPDATE_MODEL_DOCS_LINK =
263
268
'https://opensearch.org/docs/latest/ml-commons-plugin/api/model-apis/update-model/' ;
264
269
270
+ // Large Language Models Documentation Links
271
+ export const BEDROCK_CLAUDE_3_SONNET_DOCS_LINK =
272
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md#claude-3-sonnet-hosted-on-amazon-bedrock' ;
273
+
274
+ export const OPENAI_GPT35_DOCS_LINK =
275
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md#openai-gpt-35' ;
276
+
277
+ export const DEEPSEEK_CHAT_DOCS_LINK =
278
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md#deepseek-chat' ;
279
+
280
+ // Embedding Models Documentation Links
281
+ export const COHERE_EMBEDDING_MODEL_DOCS_LINK =
282
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md#cohere-embed' ;
283
+
284
+ export const BEDROCK_TITAN_EMBEDDING_DOCS_LINK =
285
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md#amazon-bedrock-titan-text-embedding' ;
286
+
287
+ // ML Models setup Documentation Link
288
+ export const ML_MODELS_SETUP_DOCS_LINK =
289
+ 'https://github.com/opensearch-project/dashboards-flow-framework/blob/main/documentation/models.md' ;
290
+
265
291
/**
266
292
* Text chunking algorithm constants
267
293
*/
@@ -431,6 +457,24 @@ export const SEMANTIC_SEARCH_QUERY_NEURAL = {
431
457
} ,
432
458
} ,
433
459
} ;
460
+ export const SEMANTIC_SEARCH_TEMPLATE_QUERY = {
461
+ query : {
462
+ template : {
463
+ knn : {
464
+ [ VECTOR_FIELD_PATTERN ] : {
465
+ vector : VECTOR_PATTERN ,
466
+ k : 2 ,
467
+ } ,
468
+ } ,
469
+ } ,
470
+ } ,
471
+ ext : {
472
+ ml_inference : {
473
+ text : QUERY_TEXT_PATTERN ,
474
+ } ,
475
+ } ,
476
+ } ;
477
+
434
478
export const MULTIMODAL_SEARCH_QUERY_NEURAL = {
435
479
_source : {
436
480
excludes : [ VECTOR_FIELD_PATTERN ] ,
@@ -596,6 +640,14 @@ export const QUERY_PRESETS = [
596
640
name : WORKFLOW_TYPE . MULTIMODAL_SEARCH ,
597
641
query : customStringify ( MULTIMODAL_SEARCH_QUERY_BOOL ) ,
598
642
} ,
643
+ {
644
+ name : 'Semantic search (neural query)' ,
645
+ query : customStringify ( SEMANTIC_SEARCH_QUERY_NEURAL ) ,
646
+ } ,
647
+ {
648
+ name : 'Semantic search (template query)' ,
649
+ query : customStringify ( SEMANTIC_SEARCH_TEMPLATE_QUERY ) ,
650
+ } ,
599
651
{
600
652
name : `Hybrid search (match & k-NN queries)` ,
601
653
query : customStringify ( HYBRID_SEARCH_QUERY_MATCH_KNN ) ,
0 commit comments