SkyLearn AI is a Django-based Learning Management System forked from SkyCascade/SkyLearn. This version adds AI lesson generation, RAG-based document retrieval, AI quiz generation, chatbot tutoring, and Yolo:Farm AIoT lesson support with Google Gemini.
Video demo: Google Drive
- Course, user, role, semester, grade, quiz, payment, and material management
- Student, lecturer, parent, department head, and admin workflows
- AI lesson generation from topics and uploaded documents
- RAG pipeline for PDF, DOCX, and PPTX context retrieval
- AI quiz generation from lesson content
- Floating AI chatbot tutor
- Yolo:Farm lessons with MicroPython code and Web Serial upload support
- DOCX export for generated lessons
| Area | Technology |
|---|---|
| Backend | Django 4.2, Python 3.8+ |
| AI | Google Gemini, LangChain |
| Database | PostgreSQL or Neon |
| Media | Cloudinary |
| Frontend | Bootstrap, jQuery, FontAwesome, SCSS |
| Documents | PyPDF2, python-docx, python-pptx, htmldocx |
| Payments | Stripe |
SkyLearnAI/
|-- ai_core/ # AI lesson, quiz, chatbot, RAG services
|-- accounts/ # User management
|-- config/ # Django settings and root URLs
|-- core/ # News, events, sessions, semesters
|-- course/ # Programs, courses, uploads, videos
|-- payments/ # Stripe payment and invoicing
|-- quiz/ # Quiz system
|-- result/ # Grades, GPA, CGPA
|-- search/ # Search
|-- static/ # CSS, JS, assets
|-- templates/ # Django templates
|-- requirements/ # Dependency files
`-- manage.py
- Python 3.8+
- PostgreSQL or Neon
- Google Gemini API key
- Cloudinary account
git clone https://github.com/nat50/SkyLearnAI.git
cd SkyLearnAI
python -m venv .venvActivate the virtual environment:
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activateInstall dependencies and set up the app:
pip install -r requirements.txt
cp .env.example .env
python manage.py migrate
python manage.py createsuperuser
python manage.py runserverOpen http://127.0.0.1:8000 in your browser.
Create .env from .env.example and update these values:
DEBUG=True
SECRET_KEY=your-secret-key
EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_FROM_ADDRESS=SkyLearn <youremail@example.com>
EMAIL_HOST_USER=youremail@example.com
EMAIL_HOST_PASSWORD=yourpassword
DB_NAME=your_db_name
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_HOST=your_db_host
DB_PORT=5432
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
GOOGLE_API_KEY=your_gemini_api_key| Endpoint | Method | Purpose |
|---|---|---|
/ai/lesson/generate/ |
POST | Generate a lesson |
/ai/lesson/save-doc/ |
POST | Save a lesson as DOCX |
/ai/lesson/<id>/html/ |
GET | Retrieve lesson HTML |
/ai/quiz/generate/ |
POST | Generate a quiz |
/ai/chatbot/ |
POST | Send a chatbot message |
This project is licensed under the MIT License.
Original SkyLearn (c) 2023 Adil Mohak.
