diff --git a/docs/DEPLOY_OPTION.md b/docs/DEPLOY_OPTION.md index 5da2710c..47c53fe1 100644 --- a/docs/DEPLOY_OPTION.md +++ b/docs/DEPLOY_OPTION.md @@ -269,6 +269,9 @@ Knowledge base プロンプト例: キーワードで検索し情報を取得し "anthropic.claude-3-sonnet-20240229-v1:0", "anthropic.claude-3-haiku-20240307-v1:0", "amazon.titan-text-premier-v1:0", +"meta.llama3-1-8b-instruct-v1:0", +"meta.llama3-1-70b-instruct-v1:0", +"meta.llama3-1-405b-instruct-v1:0", "meta.llama3-70b-instruct-v1:0", "meta.llama3-8b-instruct-v1:0", "cohere.command-r-plus-v1:0", @@ -315,6 +318,26 @@ Knowledge base プロンプト例: キーワードで検索し情報を取得し ], ``` +### us-west-2 (オレゴン) の Amazon Bedrock のモデルを利用する例 + +```bash + "modelRegion": "us-west-2", + "modelIds": [ + "anthropic.claude-3-opus-20240229-v1:0", + "anthropic.claude-3-sonnet-20240229-v1:0", + "anthropic.claude-3-haiku-20240307-v1:0", + "meta.llama3-1-70b-instruct-v1:0", + "meta.llama3-1-8b-instruct-v1:0", + "cohere.command-r-plus-v1:0", + "cohere.command-r-v1:0", + "mistral.mistral-large-2402-v1:0" + ], + "imageGenerationModelIds": [ + "amazon.titan-image-generator-v1", + "stability.stable-diffusion-xl-v1" + ], +``` + ### ap-northeast-1 (東京) の Amazon Bedrock のモデルを利用する例 ```bash diff --git a/packages/cdk/lambda/utils/models.ts b/packages/cdk/lambda/utils/models.ts index 2ca07b8b..3969fdea 100644 --- a/packages/cdk/lambda/utils/models.ts +++ b/packages/cdk/lambda/utils/models.ts @@ -529,6 +529,30 @@ export const BEDROCK_TEXT_GEN_MODELS: { extractConverseOutputText: extractConverseOutputText, extractConverseStreamOutputText: extractConverseStreamOutputText, }, + 'meta.llama3-1-8b-instruct-v1:0': { + defaultParams: LLAMA_DEFAULT_PARAMS, + usecaseParams: USECASE_DEFAULT_PARAMS, + createConverseCommandInput: createConverseCommandInput, + createConverseStreamCommandInput: createConverseStreamCommandInput, + extractConverseOutputText: extractConverseOutputText, + extractConverseStreamOutputText: extractConverseStreamOutputText, + }, + 'meta.llama3-1-70b-instruct-v1:0': { + defaultParams: LLAMA_DEFAULT_PARAMS, + usecaseParams: USECASE_DEFAULT_PARAMS, + createConverseCommandInput: createConverseCommandInput, + createConverseStreamCommandInput: createConverseStreamCommandInput, + extractConverseOutputText: extractConverseOutputText, + extractConverseStreamOutputText: extractConverseStreamOutputText, + }, + 'meta.llama3-1-405b-instruct-v1:0': { + defaultParams: LLAMA_DEFAULT_PARAMS, + usecaseParams: USECASE_DEFAULT_PARAMS, + createConverseCommandInput: createConverseCommandInput, + createConverseStreamCommandInput: createConverseStreamCommandInput, + extractConverseOutputText: extractConverseOutputText, + extractConverseStreamOutputText: extractConverseStreamOutputText, + }, 'meta.llama2-13b-chat-v1': { defaultParams: LLAMA_DEFAULT_PARAMS, usecaseParams: USECASE_DEFAULT_PARAMS, diff --git a/packages/cdk/lib/construct/api.ts b/packages/cdk/lib/construct/api.ts index 623e042a..809d1745 100644 --- a/packages/cdk/lib/construct/api.ts +++ b/packages/cdk/lib/construct/api.ts @@ -77,6 +77,9 @@ export class Api extends Construct { 'amazon.titan-image-generator-v1', 'meta.llama3-8b-instruct-v1:0', 'meta.llama3-70b-instruct-v1:0', + 'meta.llama3-1-8b-instruct-v1:0', + 'meta.llama3-1-70b-instruct-v1:0', + 'meta.llama3-1-405b-instruct-v1:0', 'meta.llama2-13b-chat-v1', 'meta.llama2-70b-chat-v1', 'mistral.mistral-7b-instruct-v0:2',