Backend (encoach_ai_course):
- workbook_attempt model + scoring + REST endpoints for student attempts
- dialogue_parser splits scripts by speaker, classifies gender, strips labels
- media_service: multi-voice TTS via Polly/ElevenLabs, ffmpeg concatenation,
manual media upload endpoint (audio/image/video) with size validation
- source_indexer: OCR fallback (pytesseract + pdf2image) for scanned PDFs,
page-streaming to stay under memory limit
- exercise_extractor + rag_context for RAG-grounded interactive workbooks
- course_plan_pipeline: v2 generator that grounds week material on indexed
sources and persists grounded_on_json metadata
- security: access rules for new models
Backend (encoach_lms_api):
- branches model + controller (entity-scoped LMS branches)
- classroom_ext + course_ext (assignment + section workflow)
- classrooms controller: students/teachers/assign-course endpoints
Frontend:
- StudentDashboard: surface assigned AI course plans alongside enrollments;
enrolled-courses stat now counts plans+enrollments
- InteractiveWorkbook + PlanReader components
- AdminCoursePlanDetail: media drawer with upload buttons (audio/image/video),
hidden file inputs, upload mutation
- AdminBranches page + sidebar entry
- coursePlan/lms/classrooms services + types updated for new endpoints
- i18n: studentDash.myCoursePlans/noCoursePlans (en + ar)
Infra & docs:
- odoo.conf: bump memory limits to 4G/5G for OCR + sentence-transformers
- .gitignore: ignore *.tsbuildinfo
- docs/ASSIGNMENT_WORKFLOW.{md,pdf}
- smoke_*.py end-to-end tests for assignment workflow, entity isolation,
course-plan RAG pipeline
Made-with: Cursor
32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
[options]
|
|
db_user = yamenahmad
|
|
db_password =
|
|
db_host = localhost
|
|
db_port = 5432
|
|
db_name = encoach_v2
|
|
dbfilter = ^encoach_v2$
|
|
http_interface = 127.0.0.1
|
|
http_port = 8069
|
|
addons_path = /Users/yamenahmad/projects2026/odoo/odoo19/backend/custom_addons,/Users/yamenahmad/projects2026/odoo/odoo19/backend/openeducat_erp-19.0/openeducat_erp-19.0,/Users/yamenahmad/projects2026/odoo/odoo19/addons_extra,/Users/yamenahmad/projects2026/odoo/odoo19/addons_enterprise,/Users/yamenahmad/projects2026/odoo/odoo19/odoo/addons
|
|
admin_passwd = admin123
|
|
workers = 0
|
|
max_cron_threads = 1
|
|
; AI generation + module-submit can take >2 minutes on slow upstream calls.
|
|
; Bumped to 10 min CPU / 15 min wall-clock so we stop hitting 504 on /api/exam/generation/submit.
|
|
limit_time_cpu = 600
|
|
limit_time_real = 900
|
|
; Raise the multipart body ceiling so PDF/image resources and
|
|
; "submit exam with all generated questions" (≈2-5 MB JSON) no longer fail
|
|
; with HTTP 413. Default is 4 MB; 128 MB covers videos + bulk question JSON.
|
|
limit_request = 134217728
|
|
; OCR (tesseract + 200dpi rasterization) + sentence-transformers (~80 MB
|
|
; model + torch tensors) + Odoo baseline routinely cross 2 GB even with
|
|
; per-page streaming. Bump soft to 4 GB / hard to 5 GB so a 100-page
|
|
; scanned workbook doesn't trigger a worker reload mid-index.
|
|
limit_memory_hard = 5368709120
|
|
limit_memory_soft = 4294967296
|
|
db_maxconn = 32
|
|
data_dir = /tmp/odoo-data
|
|
|
|
|