forked from opensearch-project/flow-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into reprovision
- Loading branch information
Showing
32 changed files
with
911 additions
and
65 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin # Temurin is a distribution of adoptium | ||
java-version: 17 | ||
java-version: 21 | ||
- uses: actions/checkout@v4 | ||
- uses: aws-actions/[email protected] | ||
with: | ||
|
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 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 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 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
35 changes: 35 additions & 0 deletions
35
src/main/resources/defaults/conversational-search-rag-tool-defaults.json
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,35 @@ | ||
{ | ||
"template.name": "deploy-bedrock-chat-model", | ||
"template.description": "A template to deploy a Bedrock chat model", | ||
"create_bedrock_connector.name": "Amazon Bedrock Connector: Claude Instant V1", | ||
"create_bedrock_connector.description": "The connector to bedrock Claude model", | ||
"create_bedrock_connector.protocol": "aws_sigv4", | ||
"create_bedrock_connector.actions.url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/anthropic.claude-instant-v1/invoke", | ||
"create_bedrock_connector.actions.request_body": "{\"prompt\":\"${parameters.prompt}\", \"max_tokens_to_sample\":${parameters.max_tokens_to_sample}, \"temperature\":${parameters.temperature}, \"anthropic_version\":\"${parameters.anthropic_version}\" }", | ||
"create_bedrock_connector.credential.access_key": "", | ||
"create_bedrock_connector.credential.secret_key": "", | ||
"create_bedrock_connector.credential.session_token": "", | ||
"create_bedrock_connector.region": "us-west-2", | ||
"create_embedding_connector.name": "Amazon Bedrock Connector: embedding", | ||
"create_embedding_connector.description": "The connector to bedrock Titan embedding model", | ||
"create_embedding_connector.protocol": "aws_sigv4", | ||
"create_embedding_connector.actions.url": "https://bedrock-runtime.us-west-2.amazonaws.com/model/amazon.titan-embed-text-v2:0/invoke", | ||
"create_embedding_connector.actions.request_body": "{ \"inputText\": \"${parameters.inputText}\" }", | ||
"register_bedrock_model.name": "anthropic.claude-v2", | ||
"register_bedrock_model.description": "bedrock-chat-model", | ||
"register_bedrock_embedding_model.name": "Bedrock embedding model v2", | ||
"register_bedrock_embedding_model.description": "Bedrock embedding model v2", | ||
"create_ingest_pipeline.pipeline_id": "nlp-ingest-pipeline", | ||
"create_ingest_pipeline.description": "A neural ingest pipeline", | ||
"text_embedding.field_map.input": "passage_text", | ||
"text_embedding.field_map.output": "passage_embedding", | ||
"create_index.name": "my-nlp-index", | ||
"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", | ||
"rag_tool.parameters.prompt": "\n\nHuman:You are a professional data analysist. You will always answer question based on the given context first. If the answer is not directly shown in the context, you will analyze the data and find the answer. If you don't know the answer, just say don't know. \n\n Context:\n${parameters.output_field:-}\n\n\nHuman:${parameters.question}\n\nAssistant:", | ||
"root_agent.parameters.parameters": "Answer the question as best you can.", | ||
"root_agent.name": "Root agent", | ||
"root_agent.description": "this is the root agent" | ||
} |
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
23 changes: 23 additions & 0 deletions
23
src/main/resources/defaults/hybrid-search-with-local-model-defaults.json
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 @@ | ||
{ | ||
"template.name": "hybrid-search", | ||
"template.description": "Setting up hybrid search, ingest pipeline and index", | ||
"register_local_pretrained_model.name": "huggingface/sentence-transformers/paraphrase-MiniLM-L3-v2", | ||
"register_local_pretrained_model.description": "This is a sentence transformer model", | ||
"register_local_pretrained_model.model_format": "TORCH_SCRIPT", | ||
"register_local_pretrained_model.deploy": "true", | ||
"register_local_pretrained_model.version": "1.0.1", | ||
"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_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": "768", | ||
"create_search_pipeline.pipeline_id": "nlp-search-pipeline", | ||
"normalization-processor.normalization.technique": "min_max", | ||
"normalization-processor.combination.technique": "arithmetic_mean" | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/resources/defaults/semantic-search-with-local-model-defaults.json
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 @@ | ||
{ | ||
"template.name": "semantic search with local pretrained model", | ||
"template.description": "Setting up semantic search, with a local pretrained embedding model", | ||
"register_local_pretrained_model.name": "huggingface/sentence-transformers/paraphrase-MiniLM-L3-v2", | ||
"register_local_pretrained_model.description": "This is a sentence transformer model", | ||
"register_local_pretrained_model.model_format": "TORCH_SCRIPT", | ||
"register_local_pretrained_model.deploy": "true", | ||
"register_local_pretrained_model.version": "1.0.1", | ||
"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": "768", | ||
"create_search_pipeline.pipeline_id": "default_model_pipeline" | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/resources/defaults/semantic-search-with-reindex-defaults.json
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,31 @@ | ||
{ | ||
"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", | ||
"reindex.source_index": "", | ||
"reindex.requests_per_second": "-1", | ||
"reindex.slices": "1" | ||
} |
Oops, something went wrong.