Chat Assistant is an AI-powered chatbot built using Groq and LangChain. It provides an interactive chat experience through Streamlit, allowing users to select AI models, manage conversation memory, and maintain chat history.
To use the Groq AI models, follow these steps:
- Visit Groq Console.
- Sign In or Create an Account.
- Navigate to API Keys in the console.
- Generate a New API Key.
- Copy the Key and store it safely.
- Add the Key to a
.env
file in your project:GROQ_API_KEY=your_api_key_here
- Python 3.8 or later installed.
- Pip installed.
Clone the repository and install the required dependencies:
git clone https://github.com/your-repo/chat-assistant.git
cd chat-assistant
pip install -r requirements.txt
Ensure your .env
file is correctly set up, then run the following command:
streamlit run app.py
This will start the chatbot on your local machine.
├── app.py # Main application script
├── requirements.txt # Dependencies
├── .env # API Key Storage
├── README.md # Documentation
Model Name | Description |
---|---|
llama-3.1-8b-instant |
Fast and efficient AI model |
deepseek-r1-distill-qwen-32b |
Advanced model with higher accuracy |
- Start the app using
streamlit run app.py
. - Select AI Model from the sidebar.
- Set memory length to decide how many messages the AI remembers.
- Chat with the AI by entering your queries.
- Monitor API Status in the sidebar.
The sidebar will indicate whether the API key is connected. If not, check your .env
file to ensure the key is correctly set.