Welcome to the ChatBode application repository! This project leverages Streamlit and LangChain to create an interactive, user-friendly chatbot interface. The bot is designed to assist users by answering their questions and maintaining a coherent conversation history.
- Interactive Chat Interface: Built with Streamlit, providing a smooth and responsive user experience.
- Conversation History: Maintains chat history for context-aware responses.
- Environment Variable Management: Securely manages API keys and other sensitive information using a
.env
file. - Dynamic Responses: Utilizes LangChain and ChatCohere for generating and streaming real-time responses.
To get started with the ChatBot application, follow these steps:
-
Clone the repository:
git clone https://github.com/joaovitormarianocorreia/chatbode.git cd chatbode
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up the environment variables:
Create a
.env
file in the root directory of the project and add your API keys:COHERE_API_KEY=your_actual_api_key_here
-
Run the application:
streamlit run src/app.py
- Chat with the Bot: Enter your queries in the chat input, and the bot will respond in real-time.
- Session Management: The bot maintains the chat history within the session to provide contextually relevant responses.
We welcome contributions to improve this project! Please fork the repository and submit pull requests with your enhancements or bug fixes.
- Streamlit: For the powerful framework that simplifies the creation of web apps.
- LangChain: For the seamless integration with language models.
Feel free to open issues or contact us for further assistance. Enjoy chatting with ChatBode!