Spaces:
Sleeping
Sleeping
|
Download README.md from edichat/edi.chat.test: direct link, hf CLI and curl.
- Browser
- Download file 6.86 kB
-
https://huggingface.co/spaces/edichat/edi.chat.test/resolve/main/README.md
- Command line
-
hf download hf://spaces/edichat/edi.chat.test/README.md
-
curl -L -o README.md https://huggingface.co/spaces/edichat/edi.chat.test/resolve/main/README.md
6.86 kB
metadata
title: edi.chat - Optimized
emoji: π
colorFrom: red
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
license: mit
app_file: Dockerfile
edi.chat - UGA AI Assistant
An intelligent, agentic AI assistant for the University of Georgia community, now available at edi.chat
π― Key Features
Agentic Capabilities
- Action Execution: Actually performs tasks, not just provides information
- Course Registration: Register for classes directly through the chat
- Financial Transactions: Make tuition payments and manage accounts
- Room Booking: Reserve study spaces and meeting rooms
- Grade Submission: Faculty can submit grades through conversational interface
UGA-Specific Intelligence
- Comprehensive Knowledge: Deep understanding of UGA systems, policies, and procedures
- Athens Integration: Information about local businesses, transportation, and community
- Real-time Data: Live information from UGA systems (Athena, eLC, dining services)
- Personalization: Tailored responses based on user role and academic standing
AI Models Supported (Privacy-First)
- π Ollama Models (Recommended): Complete privacy, local inference
- llama3:8b - Best balanced model for UGA use cases
- llama3:70b - Maximum intelligence for complex queries
- mistral:7b - Fast responses, excellent reasoning
- phi3:mini - Lightweight option for basic hardware
- Hugging Face: Cloud-hosted open-source models (fallback)
- OpenAI GPT-4: Premium cloud AI (not recommended for privacy)
System Architecture
Core Components
- Backend: Node.js with Express.js
- Frontend: React with TypeScript
- Database: MongoDB for conversation history and user preferences
- AI/NLP: Multiple AI providers (OpenAI, Ollama, Hugging Face)
- Authentication: Integration with UGA MyID system
- Caching: Redis for session management and quick responses
UGA System Integrations
- MyID/ArchPass: Two-step authentication
- eLC (eLearning Commons): Course assignments, grades, materials
- Athena: Student information system
- UGA Mobile App APIs: Campus services, dining, transportation
- EITS Services: IT support and campus resources
Project Structure
uga-chatbot/
βββ backend/
β βββ src/
β β βββ controllers/
β β βββ middleware/
β β βββ models/
β β βββ routes/
β β βββ services/
β β βββ utils/
β βββ package.json
β βββ server.js
βββ frontend/
β βββ src/
β β βββ components/
β β βββ pages/
β β βββ services/
β β βββ utils/
β βββ package.json
β βββ public/
βββ Dockerfile
βββ docs/
π Quick Start
Prerequisites
- Node.js 18+ and npm
- MongoDB 4.4+
- Redis 6.0+ (optional)
- AI API keys (OpenAI, Hugging Face, or Ollama setup)
Environment Variables
# π€ LOCAL AI CONFIGURATION (Recommended)
USE_LOCAL_AI=true
LOCAL_AI_URL=http://localhost:11434
LOCAL_AI_MODEL=llama3:8b
# π« DISABLE ONLINE AI (Privacy-First)
USE_HUGGINGFACE=false
USE_OPENAI=false
# Server Configuration
PORT=7860
NODE_ENV=production
# Database (Optional)
MONGODB_URI=mongodb://localhost:27017/edichat_local
REDIS_URL=redis://localhost:6379
# Security
JWT_SECRET=your_secure_secret_min_32_chars
JWT_REFRESH_SECRET=your_secure_refresh_secret_min_32_chars
# UGA Integration (for production)
UGA_API_BASE_URL=https://api.uga.edu
UGA_API_KEY=your_uga_api_key_here
π Quick Start (Local AI)
Install Ollama
# macOS/Linux curl -fsSL https://ollama.com/install.sh | sh # Start Ollama service ollama serveDownload AI Models
# Recommended model (4.7GB) ollama pull llama3:8b # Lightweight option (2.3GB) ollama pull phi3:miniDeploy with Docker
# Clone and start git clone https://huggingface.co/spaces/edichat/edi.chat.test cd edi.chat.test # Start everything (includes Ollama + edi.chat) docker-compose -f docker-compose.local.yml upAccess edi.chat
- Application: http://localhost:7860
- Health Check: http://localhost:7860/health
Manual Installation
Clone the repository
git clone https://huggingface.co/spaces/edichat/edi.chat.test cd edi.chat.testInstall dependencies
# Backend dependencies cd backend npm install # Frontend dependencies cd ../frontend npm installConfigure for Local AI
# Set environment variables export USE_LOCAL_AI=true export LOCAL_AI_URL=http://localhost:11434 export LOCAL_AI_MODEL=llama3:8bStart the services
# Build frontend cd frontend && npm run build && cd .. # Start backend cd backend && npm start
π³ Docker Deployment
Local Docker Run
docker build -t edichat .
docker run -p 7860:7860 -e USE_LOCAL_AI=false -e USE_HUGGINGFACE=true edichat
Hugging Face Spaces
This app is configured to deploy automatically to Hugging Face Spaces with Docker SDK.
π§ͺ Testing
Backend Tests
cd backend
npm test
npm run test:coverage
Frontend Tests
cd frontend
npm test
npm run test:coverage
π API Documentation
Authentication
POST /api/auth/login- Standard loginPOST /api/auth/myid-login- UGA MyID loginGET /api/auth/me- Get current userPOST /api/auth/refresh- Refresh tokens
Chat
GET /api/chat/conversations- List conversationsPOST /api/chat/message- Send messagePOST /api/chat/conversations- Create conversation
Student Services
GET /api/students/courses- Get coursesPOST /api/students/courses/register- Register for courseGET /api/students/financial- Financial information
Faculty Services
GET /api/faculty/dashboard- Faculty dashboardGET /api/faculty/analytics- Student analyticsPOST /api/faculty/grades- Submit grades
π‘οΈ Security
- JWT authentication with refresh tokens
- Role-based access control
- UGA MyID integration
- Data encryption and FERPA compliance
π Deployment Options
Hugging Face Spaces (Recommended for Demo)
- Free hosting with Docker support
- Custom domain support available
- Built-in secrets management
- Automatic deployments from git
Production Deployment
npm run build
npm start
Docker
docker-compose up -d
π€ Support
- EITS Support: eits@uga.edu
- Phone: 706-542-3106
- Documentation: docs/
Built for the University of Georgia community with β€οΈ
Available at: edi.chat