AOSSIE-Org/EduAid
View on GitHub[GOOD FIRST ISSUE]: main.py too large and hard to maintain
Open
#603 opened on Mar 18, 2026
good first issue
Repository metrics
- Stars
- (172 stars)
- PR merge metrics
- (PR metrics pending)
Description
Context
The main.py file has grown to ~800 lines with multiple responsibilities.
Problems
- Difficult to navigate and maintain
- Multiple unrelated classes in a single file
- Hard to test and extend
Affected Files
- backend/Generator/main.py
What Needs to Be Done
- Split large
main.pyinto focused modules:- question_generators.py
- answer_predictor.py
- utilities.py
- advanced_qa.py
- Updated
server.pyimports to use new structure - Preserved all existing logic and functionality
Resources
Getting Started
- I have joined the Discord server and will post updates there
- I have read the Contribution Guide
- I understand this issue is assigned on a first-come, first-served basis