Sample chatbot application to experience Amazon Bedrock, using Chainlit and LangChain.
You can interact with the AI assistant while switching between multiple models.
Please ensure you enable access to each model in Amazon Bedrock beforehand.
- Customizable Chat Settings: Through Chainlit, it offers a user-friendly interface to select models and adjust settings before initializing the chat.
- Model Selection: Amazon Bedrock model list is automatically retrieved and can be selected.
- Image Processing (Anthropic Models Only): Supports image input for Claude 3 models.
Before deploying this application, ensure you have the following:
- AWS Copilot CLI installed
- Enable access to each model in Amazon Bedrock
Deploy to AWS App Runner using AWS Copilot CLI. To deploy this application:
git clone https://github.com/hayao-k/Bedrock-AIChatbot-Sample
cd Bedrock-AIChatbot-Sample
export AWS_REGION=us-east-1
copilot app init bedrockchat-app
copilot deploy --name bedrockchat --env dev
Follow the prompts in the deployment process to set up the application.
Of course, you can also manually build a Dockerfile and deploy it to the infrastructure of your choice.
Enjoy!
To delete the application and its resources:
-
Run the following command:
copilot app delete
-
Follow the prompts to confirm deletion.