Chatbot using Amazon Bedrock, Langchain & Streamlit
Leveraging LangChain and Amazon Bedrock, we develop a context-enhanced chatbot utilizing ConversationSummaryBufferMemory for historical context retention, ConversationChain for dialogue orchestration, and Streamlit for UI deployment. This guide covers environment setup, LM configuration, memory handling, and UI development for advanced, context-aware chatbot creation, targeting developers and AI aficionados to elevate digital user interaction and engagement.
For an in-depth guide on the implementation, please visit: Medium Blog
- Repository Cloning: Clone the repository to initiate your local setup.
- Virtual Environment: Establish an isolated environment for dependency management
conda create -p env_name python==3.10 -y
- Dependency Installation: Install necessary dependencies using
requirements.txt
pip install -r requirements.txt
- Application Initialization: Launch the application through Streamlit
streamlit run app.py
- AWS Configuration: To configure AWS please run the following in the terminal and provide AWS credentials.
aws configure