Skip to content

Commit

Permalink
use case name changes
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Galitzky <[email protected]>
  • Loading branch information
amitgalitz committed Mar 28, 2024
1 parent 4a12730 commit ab2381b
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,31 @@ public enum DefaultUseCases {
),
/** defaults file and substitution ready template for Cohere embedding model */
COHERE_EMBEDDING_MODEL_DEPLOY(
"cohere-embedding_model_deploy",
"cohere_embedding_model_deploy",
"defaults/cohere-embedding-defaults.json",
"substitutionTemplates/deploy-remote-model-extra-params-template.json"
),
/** defaults file and substitution ready template for Bedrock Titan embedding model */
BEDROCK_TITAN_EMBEDDING_MODEL_DEPLOY(
"bedrock-titan-embedding_model_deploy",
"bedrock_titan_embedding_model_deploy",
"defaults/bedrock-titan-embedding-defaults.json",
"substitutionTemplates/deploy-remote-bedrock-model-template.json"
),
/** defaults file and substitution ready template for Bedrock Titan multimodal embedding model */
BEDROCK_TITAN_MULTIMODAL_MODEL_DEPLOY(
"bedrock-titan-multimodal_model_deploy",
"bedrock_titan_multimodal_model_deploy",
"defaults/bedrock-titan-multimodal-defaults.json",
"substitutionTemplates/deploy-remote-bedrock-model-template.json"
),
/** defaults file and substitution ready template for Cohere chat model */
COHERE_CHAT_MODEL_DEPLOY(
"cohere-chat_model_deploy",
"cohere_chat_model_deploy",
"defaults/cohere-chat-defaults.json",
"substitutionTemplates/deploy-remote-model-chat-template.json"
),
/** defaults file and substitution ready template for OpenAI chat model */
OPENAI_CHAT_MODEL_DEPLOY(
"openai-chat_model_deploy",
"openai_chat_model_deploy",
"defaults/openai-chat-defaults.json",
"substitutionTemplates/deploy-remote-model-chat-template.json"
),
Expand All @@ -64,20 +64,20 @@ public enum DefaultUseCases {
SEMANTIC_SEARCH("semantic_search", "defaults/semantic-search-defaults.json", "substitutionTemplates/semantic-search-template.json"),
/** defaults file and substitution ready template for multimodal search, no model creation*/
MULTI_MODAL_SEARCH(
"multi_modal_search",
"multimodal_search",
"defaults/multi-modal-search-defaults.json",
"substitutionTemplates/multi-modal-search-template.json"
),
/** defaults file and substitution ready template for multimodal search, no model creation*/
MULTI_MODAL_SEARCH_WITH_BEDROCK_TITAN(
"multi_modal_search_with_bedrock_titan_multi_modal",
"multimodal_search_with_bedrock_titan",
"defaults/multimodal-search-bedrock-titan-defaults.json",
"substitutionTemplates/multi-modal-search-with-bedrock-titan-template.json"
),
/** defaults file and substitution ready template for semantic search with query enricher processor attached, no model creation*/
SEMANTIC_SEARCH_WITH_QUERY_ENRICHER(
"semantic_search_with_query_enricher",
"defaults/semantic-search-defaults.json",
"defaults/semantic-search-query-enricher-defaults.json",
"substitutionTemplates/semantic-search-with-query-enricher-template.json"
),
/** defaults file and substitution ready template for semantic search with cohere embedding model*/
Expand All @@ -89,7 +89,7 @@ public enum DefaultUseCases {
/** defaults file and substitution ready template for semantic search with query enricher processor attached and cohere embedding model*/
SEMANTIC_SEARCH_WITH_COHERE_EMBEDDING_AND_QUERY_ENRICHER(
"semantic_search_with_cohere_embedding_query_enricher",
"defaults/cohere-embedding-semantic-search-defaults.json",
"defaults/cohere-embedding-semantic-search-with-query-enricher-defaults.json",
"substitutionTemplates/semantic-search-with-model-and-query-enricher-template.json"
),
/** defaults file and substitution ready template for hybrid search, no model creation*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-bedrock-titan-embedding-model",
"template.name": "bedrock_titan_embedding_model_deploy",
"template.description": "Deploying Amazon Bedrock Titan embedding model ",
"create_connector.name": "Amazon Bedrock Connector: embedding",
"create_connector.description": "The connector to bedrock Titan embedding model",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-bedrock-titan-multimodal-embedding-model",
"template.name": "bedrock_titan_multimodal_model_deploy",
"template.description": "Deploying Amazon Bedrock Titan multimodal embedding model ",
"create_connector.name": "Amazon Bedrock Connector: multi-modal embedding",
"create_connector.description": "The connector to bedrock Titan multi-modal embedding model",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/defaults/cohere-chat-defaults.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-cohere-chat-model",
"template.name": "cohere_chat_model_deploy",
"template.description": "Deploying a Cohere chat model",
"create_connector.name": "Cohere Chat Model",
"create_connector.description": "The connector to Cohere's public chat API",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/defaults/cohere-embedding-defaults.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-cohere-model",
"template.name": "cohere_embedding_model_deploy",
"template.description": "Deploying a Cohere embedding model",
"create_connector.name": "cohere-embedding-connector",
"create_connector.description": "The connector to Cohere's public embed API",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"template.name": "semantic search with cohere embedding",
"template.description": "Setting up semantic search, with a Cohere embedding model",
"create_connector.name": "cohere-embedding-connector",
"create_connector.description": "The connector to Cohere's public embed API",
"create_connector.protocol": "http",
"create_connector.model": "embed-english-v3.0",
"create_connector.input_type": "search_document",
"create_connector.truncate": "end",
"create_connector.credential.key": "123",
"create_connector.actions.url": "https://api.cohere.ai/v1/embed",
"create_connector.actions.request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\", \"input_type\": \"${parameters.input_type}\" }",
"create_connector.actions.pre_process_function": "connector.pre_process.cohere.embedding",
"create_connector.actions.post_process_function": "connector.post_process.cohere.embedding",
"register_remote_model.name": "Cohere english embed model",
"register_remote_model.description": "cohere-embedding-model",
"create_ingest_pipeline.pipeline_id": "nlp-ingest-pipeline",
"create_ingest_pipeline.description": "A text embedding pipeline",
"text_embedding.field_map.input": "passage_text",
"text_embedding.field_map.output": "passage_embedding",
"create_index.name": "my-nlp-index",
"create_index.settings.number_of_shards": "2",
"create_index.mappings.method.engine": "lucene",
"create_index.mappings.method.space_type": "l2",
"create_index.mappings.method.name": "hnsw",
"text_embedding.field_map.output.dimension": "1024",
"create_search_pipeline.pipeline_id": "default_model_pipeline"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "local-model-neural-sparse-search",
"template.name": "local_neural_sparse_search_bi_encoder",
"template.description": "Setting up neural sparse search with pretrained local model",
"register_local_sparse_encoding_model.name": "amazon/neural-sparse/opensearch-neural-sparse-encoding-v1",
"register_local_sparse_encoding_model.description": "This is a neural sparse encoding model",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "multi-modal-search",
"template.name": "multimodal_search",
"template.description": "Setting up multimodal search, ingest pipeline and index",
"create_ingest_pipeline.pipeline_id": "nlp-multimodal-ingest-pipeline",
"create_ingest_pipeline.description": "A text/image embedding pipeline",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "multimodal-search-with-bedrock-titan-deployment",
"template.name": "multimodal_search_with_bedrock_titan",
"template.description": "Setting up multimodal search with Amazon Bedrock Titan embedding model deployment",
"create_connector.name": "Amazon Bedrock Connector: multi-modal embedding",
"create_connector.description": "The connector to bedrock Titan multi-modal embedding model",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/defaults/openai-chat-defaults.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-openai-chat-model",
"template.name": "openai_chat_model_deploy",
"template.description": "Deploying an OpenAI chat model",
"create_connector.name": "OpenAI Chat Connector",
"create_connector.description": "Connector to public OpenAI model",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/defaults/openai-embedding-defaults.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "deploy-openai-model",
"template.name": "open_ai_embedding_model_deploy",
"template.description": "Deploying an OpenAI embedding model",
"create_connector.name": "OpenAI-embedding-connector",
"create_connector.description": "Connector to public OpenAI model",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/defaults/semantic-search-defaults.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"template.name": "semantic-search",
"template.name": "semantic_search",
"template.description": "Setting up semantic search, ingest pipeline and index",
"create_ingest_pipeline.pipeline_id": "nlp-ingest-pipeline",
"create_ingest_pipeline.description": "A text embedding pipeline",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"template.name": "semantic-search",
"template.name": "semantic_search",
"template.description": "Setting up semantic search, ingest pipeline and index",
"create_ingest_pipeline.pipeline_id": "nlp-ingest-pipeline",
"create_ingest_pipeline.description": "A text embedding pipeline",
"create_ingest_pipeline.model_id": "123",
"text_embedding.field_map.input": "passage_text",
"text_embedding.field_map.output": "passage_embedding",
"create_search_pipeline.pipeline_id": "default_model_pipeline",
"create_index.name": "my-nlp-index",
"create_index.settings.number_of_shards": "2",
"create_index.mappings.method.engine": "lucene",
"create_index.mappings.method.space_type": "l2",
"create_index.mappings.method.name": "hnsw"
"create_index.mappings.method.name": "hnsw",
"text_embedding.field_map.output.dimension": "1024",
"create_search_pipeline.pipeline_id": "default_model_pipeline"
}

0 comments on commit ab2381b

Please sign in to comment.