Spaces:
Runtime error
Runtime error
RNGAI-WEB Chatbot
This is an AI-powered chatbot for RNG Patel Institute of Technology (RNGPIT) that uses RAG (Retrieval Augmented Generation) to answer questions about courses, admissions, facilities, placements, and campus life.
Features
- π Comprehensive information about RNGPIT
- π€ Powered by Groq AI (LLaMA models)
- π RAG-based knowledge retrieval
- π¨ Beautiful, modern UI with dark/light theme
- π Admin dashboard with analytics
- π³ Docker support for easy deployment
Setup
1. Clone and Install
cd RNGAI-WEB
pip install -r requirements.txt
2. Configure Environment Variables
Copy the example environment file:
copy .env.example .env
Then edit .env and add your credentials:
GROQ_API_KEY=your_groq_api_key_here
SUPABASE_URL=your_supabase_url_here
SUPABASE_KEY=your_supabase_key_here
Get your credentials:
- Groq API: https://console.groq.com
- Supabase: https://supabase.com
3. Run the Application
Local Development:
python app.py
Using Docker:
docker-compose up -d
The application will be available at: http://localhost:5000
Project Structure
RNGAI-WEB/
βββ app.py # Main Flask application
βββ requirements.txt # Python dependencies
βββ .env # Environment variables (not in git)
βββ .env.example # Environment template
βββ Dockerfile # Docker configuration
βββ docker-compose.yml # Docker Compose config
βββ templates/
β βββ index.html # Main chat interface
βββ static/
β βββ RNGPIT.png # College logo
βββ data/
βββ link17.txt # Knowledge base
Environment Variables
| Variable | Description | Required |
|---|---|---|
GROQ_API_KEY |
API key from Groq Console | Yes |
SUPABASE_URL |
Your Supabase project URL | Yes |
SUPABASE_KEY |
Your Supabase API key | Yes |
Tech Stack
- Backend: Flask, Python 3.11
- AI: Groq (LLaMA 3.3), Sentence Transformers
- Vector DB: ChromaDB
- Database: Supabase
- Frontend: HTML, CSS, JavaScript with Three.js
Security
β οΈ Important: Never commit your .env file to version control. The .env file contains sensitive credentials and should be kept private.
License
Private project for RNG Patel Institute of Technology