From e0aa30f2f8a958bd2c7649d4729d9cc061c888bf Mon Sep 17 00:00:00 2001 From: zhichao-aws Date: Thu, 6 Jun 2024 04:45:12 +0800 Subject: [PATCH] Small fix in blueprint docs (#2501) * fix region Signed-off-by: zhichao-aws * small fix Signed-off-by: zhichao-aws --------- Signed-off-by: zhichao-aws (cherry picked from commit 865a424940e55d4944b08bd9e16d0b9ebce02f4a) --- .../bedrock_connector_anthropic_claude_blueprint.md | 4 ++-- .../bedrock_connector_titan_embedding_blueprint.md | 2 +- .../bedrock_connector_titan_multimodal_embedding_blueprint.md | 4 ++-- .../open_ai_connector_completion_blueprint.md | 2 +- .../sagemaker_connector_blueprint.md | 2 +- .../agent_framework/RAG_with_conversational_flow_agent.md | 2 +- docs/tutorials/agent_framework/build_your_own_chatbot.md | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/remote_inference_blueprints/bedrock_connector_anthropic_claude_blueprint.md b/docs/remote_inference_blueprints/bedrock_connector_anthropic_claude_blueprint.md index 5e99440593..b3411c5d5b 100644 --- a/docs/remote_inference_blueprints/bedrock_connector_anthropic_claude_blueprint.md +++ b/docs/remote_inference_blueprints/bedrock_connector_anthropic_claude_blueprint.md @@ -42,7 +42,7 @@ POST /_plugins/_ml/connectors/_create "headers": { "content-type": "application/json" }, - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-v2/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/anthropic.claude-v2/invoke", "request_body": "{\"prompt\":\"\\n\\nHuman: ${parameters.inputs}\\n\\nAssistant:\",\"max_tokens_to_sample\":300,\"temperature\":0.5,\"top_k\":250,\"top_p\":1,\"stop_sequences\":[\"\\\\n\\\\nHuman:\"]}" } ] @@ -73,7 +73,7 @@ POST /_plugins/_ml/connectors/_create "headers": { "content-type": "application/json" }, - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-v2/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/anthropic.claude-v2/invoke", "request_body": "{\"prompt\":\"\\n\\nHuman: ${parameters.inputs}\\n\\nAssistant:\",\"max_tokens_to_sample\":300,\"temperature\":0.5,\"top_k\":250,\"top_p\":1,\"stop_sequences\":[\"\\\\n\\\\nHuman:\"]}" } ] diff --git a/docs/remote_inference_blueprints/bedrock_connector_titan_embedding_blueprint.md b/docs/remote_inference_blueprints/bedrock_connector_titan_embedding_blueprint.md index 299ab321d9..3e01a12d1e 100644 --- a/docs/remote_inference_blueprints/bedrock_connector_titan_embedding_blueprint.md +++ b/docs/remote_inference_blueprints/bedrock_connector_titan_embedding_blueprint.md @@ -76,7 +76,7 @@ POST /_plugins/_ml/connectors/_create { "action_type": "predict", "method": "POST", - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-embed-text-v1/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/amazon.titan-embed-text-v1/invoke", "headers": { "content-type": "application/json", "x-amz-content-sha256": "required" diff --git a/docs/remote_inference_blueprints/bedrock_connector_titan_multimodal_embedding_blueprint.md b/docs/remote_inference_blueprints/bedrock_connector_titan_multimodal_embedding_blueprint.md index 83fb63b429..2b483c29fa 100644 --- a/docs/remote_inference_blueprints/bedrock_connector_titan_multimodal_embedding_blueprint.md +++ b/docs/remote_inference_blueprints/bedrock_connector_titan_multimodal_embedding_blueprint.md @@ -40,7 +40,7 @@ POST /_plugins/_ml/connectors/_create { "action_type": "predict", "method": "POST", - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-embed-image-v1/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/amazon.titan-embed-image-v1/invoke", "headers": { "content-type": "application/json", "x-amz-content-sha256": "required" @@ -75,7 +75,7 @@ POST /_plugins/_ml/connectors/_create { "action_type": "predict", "method": "POST", - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/amazon.titan-embed-image-v1/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/amazon.titan-embed-image-v1/invoke", "headers": { "content-type": "application/json", "x-amz-content-sha256": "required" diff --git a/docs/remote_inference_blueprints/open_ai_connector_completion_blueprint.md b/docs/remote_inference_blueprints/open_ai_connector_completion_blueprint.md index b7e6269a96..b0705a1c19 100644 --- a/docs/remote_inference_blueprints/open_ai_connector_completion_blueprint.md +++ b/docs/remote_inference_blueprints/open_ai_connector_completion_blueprint.md @@ -45,7 +45,7 @@ POST /_plugins/_ml/connectors/_create POST /_plugins/_ml/models//_predict { "parameters": { - "prompt": ["Say this is a test"] + "prompt": "Say this is a test" } } ``` diff --git a/docs/remote_inference_blueprints/sagemaker_connector_blueprint.md b/docs/remote_inference_blueprints/sagemaker_connector_blueprint.md index 4dd7eb7ea5..2635adb61f 100644 --- a/docs/remote_inference_blueprints/sagemaker_connector_blueprint.md +++ b/docs/remote_inference_blueprints/sagemaker_connector_blueprint.md @@ -49,7 +49,7 @@ POST /_plugins/_ml/connectors/_create "url": "", "request_body": "${parameters.input}", "pre_process_function": "connector.pre_process.default.embedding", - "post_process_function": "connector.post_process.default.embedding" + "post_process_function": "connector.post_process.default.embedding" \\ remove this parameter for sparse_encoding SageMaker endpoint } ] } diff --git a/docs/tutorials/agent_framework/RAG_with_conversational_flow_agent.md b/docs/tutorials/agent_framework/RAG_with_conversational_flow_agent.md index fda8810f37..e457ab0f57 100644 --- a/docs/tutorials/agent_framework/RAG_with_conversational_flow_agent.md +++ b/docs/tutorials/agent_framework/RAG_with_conversational_flow_agent.md @@ -174,7 +174,7 @@ POST /_plugins/_ml/connectors/_create { "action_type": "predict", "method": "POST", - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-instant-v1/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/anthropic.claude-instant-v1/invoke", "headers": { "content-type": "application/json", "x-amz-content-sha256": "required" diff --git a/docs/tutorials/agent_framework/build_your_own_chatbot.md b/docs/tutorials/agent_framework/build_your_own_chatbot.md index 169f2bd9b0..707b5e6925 100644 --- a/docs/tutorials/agent_framework/build_your_own_chatbot.md +++ b/docs/tutorials/agent_framework/build_your_own_chatbot.md @@ -116,7 +116,7 @@ POST /_plugins/_ml/connectors/_create { "action_type": "predict", "method": "POST", - "url": "https://bedrock-runtime.us-east-1.amazonaws.com/model/anthropic.claude-instant-v1/invoke", + "url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/anthropic.claude-instant-v1/invoke", "headers": { "content-type": "application/json", "x-amz-content-sha256": "required"