How ritual1127/naverogq works
CADLens is a web-based checker for mechanical-drawing exam submissions. A student uploads a DWG/DXF; the server analyzes the drawing, runs rule-based and AI grading, and returns findings with a marked-up preview and correction examples. The README also documents KS-reference and accuracy pages, delayed AI explanations/translations, usage statistics, and a separate presentation-deck module. Edges reflect the README and shown imports/calls; unsampled implementation details are not inferred.
Main entry points: main.py Web server · ai_review.py AI grader · check.py Check orchestrator · home.js Upload and results
Components 21
Web experience
- Upload and results
static/home.js - Shared UI
static/common.js - KS references
static/ks.js - Accuracy page
static/accuracy.js - Web server
main.py
Drawing analysis
- Drawing reader
dwg.py - Check orchestrator
check.py
Grading and feedback
- Rule grader
exam.py - AI grader
ai_review.py - Correction examples
fixdraw.py - AI response cache
aicache
Service operations
- Usage statistics
stats.py - OGQ sticker client
ogq.py
Presentation materials
- 10-minute talk
presenter/talk10.js - Talk utilities
presenter/talk.js
Other components
- Drawing student
- Gemini API
- Workers AI
- Mistral API
- Groq API
- OGQ API
Connections 22
- Drawing student → Upload and results: uploads drawing
README.md - Upload and results → Web server: submits file
README.md - Web server → Check orchestrator: starts analysis
main.py - Check orchestrator → Drawing reader: reads drawing
check.py - Check orchestrator → AI grader: requests AI grade
check.py - Check orchestrator → Rule grader: grades rules
check.py - AI grader → Gemini API: calls first
README.md - AI grader → Workers AI: fallback call
README.md - AI grader → Mistral API: fallback call
README.md - AI grader → Groq API: fallback call
README.md - AI grader → AI response cache: reads and writes
ai_review.py - Web server → Correction examples: builds examples
main.py - Web server → Upload and results: returns results
README.md - Web server → Usage statistics: records visits
main.py - Web server → OGQ sticker client: serves stickers
main.py - OGQ sticker client → OGQ API: fetches pack
ogq.py - Web server → KS references: serves page
main.py - Web server → Accuracy page: serves page
main.py - Upload and results → Shared UI: uses shared UI
README.md - KS references → Shared UI: uses shared UI
README.md - Accuracy page → Shared UI: uses shared UI
README.md - 10-minute talk → Talk utilities: uses utilities
presenter/talk10.js