How prathmesh4647/guidance-ai works
1. System Purpose and Runtime
Guidance.AI is a Django-based academic project-management platform for students and faculty. It manages ideas, teams, projects, evaluations, SDLC workbooks, notices, and public project presentation. Django is exposed through WSGI/ASGI entry points in guidance/wsgi.py and guidance/asgi.py; manage.py is the operational CLI entry point.
2. Application Composition and Routing
The Django project owns global configuration and route composition in guidance/settings.py and guidance/urls.py. Feature apps each provide model/view/URL boundaries:
• accounts/urls.py, accounts/views.py
• ideas/urls.py, ideas/views.py
• projects/urls.py, projects/views.py
• teams/urls.py, teams/views.py
• workbook/urls.py, workbook/views.py
• notices/urls.py, notices/views.py
• Showcase/urls.py, Showcase/views.py
3. Identity, Roles, and Access Boundary
Authentication and role-aware user behavior are centered in the accounts app. Its custom user schema is defined by accounts/models.py, including the phone-field evolution captured in accounts/migrations/0002_customuser_phone.py. Student and faculty views/dashboards form the primary authorization boundary before users can submit/review ideas, manage teams, or evaluate projects.
4. Idea Generation and Similarity Pipeline
The ideas domain accepts student proposals, invokes generative AI, and evaluates conceptual overlap. Core ownership is in ideas/models.py and ideas/views.py; AI integration is separated into ideas/gemini_engine.py and ideas/ai_engine.py. Idea migrations explicitly add embeddings and similarity scores in ideas/migrations/0002_idea_embedding_idea_similarity_score.py. The supplied Sentence Transformer model is local at local_model/model.safetensors, with module definition in local_model/modules.json. Google Gemini is the external idea-generation service; embeddings/similarity are intended for PostgreSQL pgvector storage/search.
5. Project Lifecycle and Faculty Evaluation
Approved work transitions into the projects domain, which stores submission state, assets/links, similarity metadata, likes, batch/year, and structured evaluation data. Main boundaries are projects/models.py, projects/views.py, and projects/urls.py. Schema history shows this lifecycle: embeddings in projects/migrations/0002_project_embedding_project_similarity_score.py, GitHub linkage in projects/migrations/0003_project_github_link.py, evaluation criteria in projects/migrations/0005_project_evaluation_coding_and_more.py, and status/leaderboard fields in projects/migrations/0006_alter_project_status.py and 0007_project_batch_year_project_likes.py.
6. Collaboration, Progress, and Communication
Teams represent student project groupings in teams/models.py and teams/views.py. The workbook app records project SDLC progress through workbook/models.py and workbook/views.py, with initial data support in workbook/seed_data.py. Faculty/student announcements are isolated in notices/models.py and notices/views.py; their team-association migrations establish the delivery relationship.
7. Presentation, Infrastructure, and UI
Public-facing showcase and project discovery are handled by Showcase/models.py, Showcase/views.py, and templates such as Showcase/templates/showcase.html. Server-rendered shared UI lives in templates/base.html, with static assets under static/css/base_style.css and static/js. PostgreSQL is the primary database, pgvector supports vector similarity, Docker deployment is defined in docker-compose.yml, and the stated deployment topology includes Nginx. Python dependencies are declared in requirements.txt; frontend package metadata is in package.json.
Main entry points: urls.py Django project · projects/models.py Projects and evaluation · ideas/models.py Ideas · accounts/models.py Accounts and roles
Components 17
Django runtime
- Operations CLI
manage.py - Django project · Composes global settings and feature routes.
guidance/urls.py - WSGI / ASGI entrypoints
guidance/wsgi.py
Application domains
- Accounts and roles · Custom users and student/faculty access boundary.
accounts/models.py - Ideas · Student proposal submission and similarity state.
ideas/models.py - Projects and evaluation · Approved work, submissions, evaluation, and leaderboard data.
projects/models.py - Teams
teams/models.py - SDLC workbook · Records project SDLC progress.
workbook/models.py - Notices
notices/models.py
AI and similarity
- Idea AI engines · Generates ideas and coordinates similarity processing.
ideas/gemini_engine.py - Google Gemini
- Local Sentence Transformer
local_model/model.safetensors - PostgreSQL with pgvector · Stores application data and vector similarity data.
Presentation and delivery
- Public showcase · Public project discovery and presentation.
Showcase/views.py - Server-rendered UI
templates/base.html - Nginx
- Docker deployment
docker-compose.yml
Connections 29
- Operations CLI → Django project: operates
- WSGI / ASGI entrypoints → Django project: loads
- Nginx → WSGI / ASGI entrypoints: proxies requests
- Django project → Accounts and roles: routes
- Django project → Ideas: routes
- Django project → Projects and evaluation: routes
- Django project → Teams: routes
- Django project → SDLC workbook: routes
- Django project → Notices: routes
- Django project → Public showcase: routes
- Accounts and roles → Ideas: authorizes proposals
- Accounts and roles → Projects and evaluation: authorizes evaluation
- Ideas → Idea AI engines: invokes
- Idea AI engines → Google Gemini: generates ideas
- Idea AI engines → Local Sentence Transformer: creates embeddings
- Ideas → Projects and evaluation: approved work transitions
- Teams → Projects and evaluation: groups collaborators
- Projects and evaluation → SDLC workbook: tracks SDLC progress
- Teams → Notices: receives announcements
- Projects and evaluation → Public showcase: publishes projects
- Accounts and roles → PostgreSQL with pgvector: persists
- Ideas → PostgreSQL with pgvector: stores vectors
- Projects and evaluation → PostgreSQL with pgvector: stores lifecycle data
- Teams → PostgreSQL with pgvector: persists
- SDLC workbook → PostgreSQL with pgvector: persists
- Notices → PostgreSQL with pgvector: persists
- Public showcase → Server-rendered UI: renders
- Docker deployment → Nginx: deploys
- Docker deployment → PostgreSQL with pgvector: provisions