This project is based on the demo presented during my talk at AWS Summit Jakarta 2024 (September 5, 2024).
-
AWS Account: Ensure you have an active AWS account.
-
AWS CLI Configuration: Set up your AWS CLI with the necessary credentials.
-
Frontend Setup: Place your frontend web application with chatbot functionality inside the
./src/web/public
directory. -
Model Access: Make sure you already request model access the model you are going to use in your Amazon Bedrock Console in AWS
us-east-1
region. . -
Environment Variables: Configure the following in the
.env
file:AWS_REGION=us-east-1 # Get your Pinecone credentials from https://www.pinecone.io/ PINECONE_CONNECTION_STRING=<pinecone connection string> PINECONE_API_KEY=<pinecone API key> CRAWL_TARGET_URL=<your target URL, obtained after deploying your frontend stack or using your custom domain> FROM_EMAIL=<sender email for notifications, must be configured in Amazon SES> EMAIL_DOMAIN=<email domain identity, also configured in Amazon SES>
-
Clone the Repository:
git clone <repository-url> cd <repository-directory>
-
Install Dependencies:
npm install && npm install --prefix src/crawler
-
Deploy the Stacks:
cdk deploy KnowledgeBaseStack CrawlerWebStack AgentStack QueryStack
-
Configure Frontend:
-
Deploy Frontend:
cdk deploy FrontendStack
-
Prepare Knowledgebases:
-
Interact with the Chatbot: