You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html) (AWS CDK) v2 Installed
9
9
-[NodeJS and NPM](https://nodejs.org/en/download/) Installed
10
-
-[Bedrock Model Access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) Request Access for Anthropic Claude V1 Instant
10
+
-[Bedrock Model Access](https://docs.aws.amazon.com/bedrock/latest/userguide/model-access.html) Request Access for Anthropic Claude 3 Sonnet.
11
11
-[Bedrock Knowledge Base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) Create a Knowledge Base, set a data source, and sync it
12
12
-[Langsmith](https://python.langchain.com/docs/get_started/quickstart) Generate a Langchain API key (free)
13
13
@@ -42,7 +42,7 @@ cp .env.sample .env
42
42
npm install
43
43
```
44
44
45
-
5. The package [https://github.com/awslabs/generative-ai-cdk-constructs](generative-ai-cdk-constructs) should be added to your package.json.
45
+
5. The package [generative-ai-cdk-constructs](https://github.com/awslabs/generative-ai-cdk-constructs) should be added to your package.json.
46
46
47
47
```
48
48
npm install @cdklabs/generative-ai-cdk-constructs
@@ -60,6 +60,21 @@ npx cdk synth
60
60
npx cdk deploy --require-approval never
61
61
```
62
62
63
+
## Use the Pre-Built AWS CloudFormation Template
64
+
1. Log into the [AWS Console](https://us-east-1.console.aws.amazon.com/console/home?region=us-east-1) if you are not already.
65
+
2. Choose the Launch Stack button below for your desired AWS region to open the [AWS CloudFormation console](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks?filteringText=&filteringStatus=active&viewNested=true) and create a new stack.
66
+
3. Enter the following parameters:
67
+
- StackName: Name your Stack, e.g. WhatsAppAIStack.
68
+
- LangchainAPIKey: The API key generated through [LangChain](https://docs.smith.langchain.com/how_to_guides/setup/create_account_api_key).
69
+
- Check the box to acknowledge creating IAM resources and click “Create Stack”.
70
+
- Wait for the stack creation to complete.
71
+
72
+
Region | Easy Deploy Button | Template URL - use to upgrade existing stack to a new release
73
+
--- | --- | ---
74
+
N. Virginia (us-east-1) | [](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?templateURL=https://aws-blogs-artifacts-public.s3.amazonaws.com/ML-16776/template.yml) | [YML](https://aws-blogs-artifacts-public.s3.amazonaws.com/ML-16776/template.yml)
75
+
76
+
Note: Upload files to the data source (S3) created for WhatsApp. As soon as you upload a file, the data source will synchronize automatically.
77
+
63
78
## Testing
64
79
65
80
1. Navigate to Amazon Lex in your AWS account.
@@ -70,7 +85,7 @@ npx cdk deploy --require-approval never
70
85
71
86
4. Enter a message in the text box and press the Enter key.
72
87
73
-
5. Navigate to [https://smith.langchain.com](Langsmith) and check the trace of the app.
88
+
5. Navigate to [Langsmith](https://smith.langchain.com) and check the trace of the app.
0 commit comments