This project is an AI Tutor ChatBot named Swara, built with GROQ. It uses the Streamlit library for the web interface and the GROQ API for the AI model. The application is deployed at ai-swara.
- Select between different LLM models.
- Adjustable conversation memory length.
- Interactive chat interface. -Detailed and comprehensive answers, including examples, code snippets, and real-world applications where appropriate. -Included chat history on user on-demand
- Python 3.7 or higher
- Streamlit
- GROQ
- Langchain
- Langchain_groq
- Dotenv
Before installing
requirement.txt
please make sure to make new virtual environment.
You can install these requirements using the requirements.txt
file:
pip install -r requirements.txt
You need to set the following environment variable:
GROQ_API_KEY
: Your GROQ API key.
You can set this in a .env
file. This file is ignored by git (see .gitignore
), so you won't accidentally commit your secret keys.
To run the app, use the following command:
streamlit run app.py
or
python app.py
This will start the Streamlit server and you can access the app in your web browser.
- Open the app in your web browser.
- Select the LLM Model from the sidebar.
- Adjust the conversation memory length using the slider in the sidebar.
- Enter your question in the text area and click "Submit".
- The AI's response will appear in the chat history.
- You can access the deployed application at ai-swara.
http://ai-swara.streamlit-app is the deployed URL.