The Groq Chatbot Application is a Streamlit-based interface that allows users to interact with a Groq-powered conversational AI. This application utilizes LangChain to handle conversational memory and provide context-aware responses to user queries.
- Conversational Memory: Remembers previous interactions to maintain context.
- Customizable Settings: Users can set a system prompt and select from various models.
- User-Friendly Interface: Built using Streamlit for easy interaction.
Before running the application, ensure you have the following installed:
- Python 3.11 or higher
- Streamlit
- LangChain
- Groq
-
Clone the Repository:
Clone this repository to your local machine using:
git clone https://github.com/yourusername/groq-chatbot.git cd groq-chatbot
You can install the necessary packages using pip:
pip install -r requirement.txt-
Set Up Environment Variables:
Create a
.envfile in the root of your project and add your Groq API key:GROQ=your_groq_api_key_here -
Run the Application:
Use the following command to start the Streamlit app:
streamlit run App.py
-
Access the Application:
Open your web browser and go to
http://localhost:8501to interact with the chatbot.
- Enter a question in the provided input box.
- Customize the system prompt and select your desired model from the sidebar.
- The chatbot will respond with context-aware answers based on your queries and previous interactions.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/YourFeature). - Make your changes and commit them (
git commit -m 'Add your feature'). - Push to the branch (
git push origin feature/YourFeature). - Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Below is a sample image illustrating the chatbot interface:
