How code-mkumar/project works
This is a Streamlit university portal with guest information and AI-assisted Q&A, plus login and role-specific student, staff, and administrator pages. The main flow is a visitor entering through the guest page or login, then—after role lookup and credential verification—being routed to the appropriate page. Guest Q&A retrieves text context before generating an answer; staff and admin pages manage academic records through database operations. MFA components and QR/OTP helpers are present. The README provides no feature overview, and several page implementations are unsampled, so those capabilities and links are shown only where supported by the tree or source index.
Main entry points: app.py Page router · guest.py Guest Q&A · staff.py Staff portal · dboperation.py Database operations
Components 18
App and access
- Page router
app.py - Login
components/login.py - QR setup
components/qrsetupp.py - OTP verification
components/otpVerify.py
Guest information
- Guest Q&A
components/guest.py - College documents
files
Academic operations
- Student portal
components/student.py - Staff portal
components/staff.py - Admin portal
components/admin.py
Internal services
- Database operations
operation/dboperation.py - University records
dbs/university.db - File operations
operation/fileoperations.py - Text retrieval
operation/preprocessing.py - Gemini generation
genai/gemini.py - Guest content helpers
operation/otheroperation.py - QR and OTP helpers
operation/qrsetter.py
Other components
- Visitor or user
- Google Generative AI
Connections 24
- Visitor or user → Page router: uses
app.py - Page router → Guest Q&A: routes to
app.py - Page router → Login: routes to
app.py - Page router → QR setup: routes to
app.py - Page router → OTP verification: routes to
app.py - Page router → Student portal: routes to
app.py - Page router → Staff portal: routes to
app.py - Page router → Admin portal: routes to
app.py - Login → Database operations: checks credentials
components/login.py - OTP verification → QR and OTP helpers: uses OTP
components/otpVerify.py - Guest Q&A → Guest content helpers: gets greeting and facts
components/guest.py - Guest Q&A → Database operations: stores feedback
components/guest.py - Guest Q&A → File operations: reads prompt files
components/guest.py - File operations → College documents: reads documents
- Guest Q&A → Text retrieval: ranks text chunks
components/guest.py - Guest Q&A → Gemini generation: generates answer
components/guest.py - Staff portal → Text retrieval: builds prompt
components/staff.py - Staff portal → Gemini generation: requests response
components/staff.py - Staff portal → Database operations: manages records
components/staff.py - Staff portal → File operations: uses file operations
components/staff.py - Staff portal → QR and OTP helpers: verifies OTP
components/staff.py - Admin portal → Database operations: manages records
components/admin.py - Gemini generation → Google Generative AI: generates content
genai/gemini.py - Database operations → University records: reads and writes
operation/dboperation.py