How devikark049/ai-assignement-assistent works
This is a browser-based AI assignment assistant backed by a FastAPI service and a local Ollama model. The main workflow collects assignment settings, requests an answer, and displays structured results. Separate branches support model health checks, document uploads and text extraction, and study-note generation. The excerpts show the key route and helper relationships; frontend markup and some implementation details are unsampled, so the graph omits those connections rather than inferring them.
Main entry points: main.py FastAPI service · app.js Assignment interface
Components 12
Browser interface
- Assignment interface
frontend/app.js
API and documents
- FastAPI service
backend/main.py - Model health check
backend/main.py - Upload handler
backend/main.py - Document text extraction
backend/main.py - Uploaded files
backend/main.py
AI generation
- Answer workflow
backend/main.py - Assignment prompt
backend/main.py - JSON extraction
backend/main.py - Study notes
backend/main.py
Other components
- Student
- Ollama model
Connections 16
- Student → Assignment interface: submits question
frontend/app.js - Assignment interface → FastAPI service: requests answer
frontend/app.js - FastAPI service → Answer workflow: routes request
backend/main.py - Answer workflow → Assignment prompt: builds prompt
backend/main.py - Answer workflow → Ollama model: requests generation
backend/main.py - Answer workflow → JSON extraction: parses response
backend/main.py - Assignment interface → FastAPI service: checks health
frontend/app.js - FastAPI service → Model health check: routes check
backend/main.py - Model health check → Ollama model: checks models
backend/main.py - Assignment interface → FastAPI service: uploads document
frontend/app.js - FastAPI service → Upload handler: routes upload
backend/main.py - Upload handler → Uploaded files: writes file
backend/main.py - Upload handler → Document text extraction: extracts text
backend/main.py - Assignment interface → FastAPI service: requests notes
frontend/app.js - FastAPI service → Study notes: routes notes
backend/main.py - Study notes → Ollama model: requests generation
backend/main.py