Alpaca is a chill, interactive AI chatbot built using Streamlit and powered by the Groq API (LLaMA 3.1). It allows you to chat in a smooth, conversational interface, save/load chat history, and vibe with a cool assistant.
- π Streamlit web interface with responsive design
- π§ LLaMa-3.1-8b-instant (Groq API)
- π¬ Persistent local chat history (
chat_history.json
) - π Sidebar tools: Save, Load, Clear history
- π API key handled via config or environment variable
- πΌοΈ Lottie animation for aesthetics
- πͺ΅ Logging and error handling for reliability
- Clone the repository
git clone https://github.com/KaisoX24/LLama.git cd LLama
- Create and activate a virtual environment
python -m venv venv venv\Scripts\activate #on Mac source venv/bin/activate
- Install the Dependencies
pip install -r requirements.txt
- Add Your API Key
{ "GROQ_API_KEY": "your_groq_api_key_here" }
- Run the APP
streamlit run main.py
LLama/
βββ app.py # Main Streamlit application
βββ config.json # API key config file (not tracked)
βββ chat_history.json # Chat logs saved locally
βββ requirements.txt # Python dependencies
Technology | Purpose |
---|---|
Python | Core programming language |
Streamlit | Frontend Web App framework |
Groq API | For using the llama-3.1-8b-instant model |
Lottie Animations | Animated visuals |
JSON | For configuration and saving chat history |
Logging (Python standard library) | For error tracking and debug logging |
Developed by Pramit Acharjya.
This project is licensed under the MIT License. Feel free to use, modify, and share!