Skip to content

A simple and clear example for implement a chatbot with Bedrock(Claude) + LangChain + Streamlit. Powered by Docker

Notifications You must be signed in to change notification settings

r0achnnan9p/Bedrock-ChatBot-with-LangChain-and-Streamlit-Docker

 
 

Repository files navigation

Bedrock ChatBot with LangChain and Streamlit 💬

A simple and clear example for implement a chatbot with Bedrock(Claude) + LangChain + Streamlit. Just cd to the corresponding folder and run the code:

streamlit run bedrock_chatbot.py

The bot is equipped with chat history using ConversationBufferWindowMemory and StreamlitChatMessageHistory, and provided with both simple(batch) and streaming modes. Demo shown as below:

Bedrock_Chat_Fast.mp4

Streaming mode demo shown as below:

Bedrock_Chat_Streaming_Fast.mp4

Configuration AWS credentials

  • Copy the .env_aws.example file to a new file named .env_aws.
  • Replace the placeholder values in .env_aws with your actual AWS credentials.
  • Note: Do not commit the .env_aws file to the repository. It is included in the .gitignore file to prevent sensitive information from being exposed.

Run

docker compose up

About

A simple and clear example for implement a chatbot with Bedrock(Claude) + LangChain + Streamlit. Powered by Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.8%
  • Dockerfile 7.2%