# abhiram235/ai-driven-adaptive-learning-system architecture

> Architecture diagram of the GitHub repository abhiram235/ai-driven-adaptive-learning-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhiram235/ai-driven-adaptive-learning-system
- Repository: https://github.com/abhiram235/ai-driven-adaptive-learning-system

## Overview

This Django adaptive quiz system takes learners from uploading study documents through AI-assisted question generation, quiz creation and attempts, then records answers, updates spaced-review progress, and presents mastery analytics. Views orchestrate the user-facing workflow; models persist documents, questions, quizzes, attempts, and progress. Optional model providers are shown separately. The README contains no capability detail, and some view code is omitted, so edges are limited to relationships evidenced by excerpts, the source index, or explicit documentation.

Main entry points: [`config/quiz_app/views.py`](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/views.py) (Request workflows), [`config/quiz_app/question_generator.py`](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/question_generator.py) (Question generation), [`config/quiz_app/models.py`](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py) (Quiz and attempts), [`config/quiz_app/urls.py`](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/urls.py) (App routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning workflow"]
  node_routes["App routes<br/>[urls.py]"]
  node_views["Request workflows<br/>[views.py]"]
  node_generator["Question generation"]
  node_t5{{"T5 model"}}
  node_gemini{{"Gemini service"}}
end

subgraph group_assessment["Quizzes and review"]
  node_spacedreview["SM-2 scheduling<br/>[sm2.py]"]
  node_webclient["Quiz interface"]
end

subgraph group_insights["Mastery insights"]
  node_mastery["Bayesian mastery<br/>[analytics.py]"]
end

subgraph group_persistence["Application data"]
  node_documents[("Document records<br/>[models.py]")]
  node_questionbank[("Question bank<br/>[models.py]")]
  node_quizdata[("Quiz and attempts<br/>[models.py]")]
  node_reviewdata[("Question progress<br/>[models.py]")]
end

node_learner(("Learner"))

node_learner -->|"requests pages"| node_routes
node_routes -->|"dispatches requests"| node_views
node_views -.->|"renders pages"| node_webclient
node_views -->|"generates questions"| node_generator
node_views -.->|"creates documents"| node_documents
node_views -->|"saves questions"| node_questionbank
node_generator -->|"generates prompts"| node_t5
node_generator -->|"enriches questions"| node_gemini
node_views -->|"records attempts"| node_quizdata
node_views -.->|"loads questions"| node_questionbank
node_views -->|"updates reviews"| node_spacedreview
node_spacedreview -->|"saves schedule"| node_reviewdata
node_views -->|"computes analytics"| node_mastery
node_mastery -->|"reads attempts"| node_quizdata
node_views -.->|"reads results"| node_quizdata

click node_routes "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/urls.py"
click node_views "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/views.py"
click node_generator "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/question_generator.py"
click node_documents "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py"
click node_questionbank "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py"
click node_quizdata "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py"
click node_reviewdata "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py"
click node_mastery "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/analytics.py"
click node_spacedreview "https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/sm2.py"
click node_webclient "https://github.com/abhiram235/ai-driven-adaptive-learning-system/tree/main/config/quiz_app/templates/quiz_app"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_views,node_generator,node_t5,node_gemini toneBlue
class node_spacedreview,node_webclient toneAmber
class node_mastery toneMint
class node_documents,node_questionbank,node_quizdata,node_reviewdata toneRose
class node_learner toneIndigo
```

## Components

### Learning workflow

- [App routes](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/urls.py): `config/quiz_app/urls.py`
- [Request workflows](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/views.py): `config/quiz_app/views.py`
- [Question generation](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/question_generator.py): `config/quiz_app/question_generator.py`
- **T5 model**
- **Gemini service**

### Quizzes and review

- [SM-2 scheduling](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/sm2.py): `config/quiz_app/sm2.py`
- [Quiz interface](https://github.com/abhiram235/ai-driven-adaptive-learning-system/tree/main/config/quiz_app/templates/quiz_app): `config/quiz_app/templates/quiz_app`

### Mastery insights

- [Bayesian mastery](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/analytics.py): `config/quiz_app/analytics.py`

### Application data

- [Document records](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py): `config/quiz_app/models.py`
- [Question bank](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py): `config/quiz_app/models.py`
- [Quiz and attempts](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py): `config/quiz_app/models.py`
- [Question progress](https://github.com/abhiram235/ai-driven-adaptive-learning-system/blob/main/config/quiz_app/models.py): `config/quiz_app/models.py`

### Other components

- **Learner**

## Connections

- Learner → App routes: requests pages (evidence: `config/quiz_app/urls.py`)
- App routes → Request workflows: dispatches requests (evidence: `config/quiz_app/urls.py`)
- Request workflows → Quiz interface: renders pages
- Request workflows → Question generation: generates questions (evidence: `config/quiz_app/views.py`)
- Request workflows → Document records: creates documents (evidence: `config/quiz_app/views.py`)
- Request workflows → Question bank: saves questions (evidence: `config/quiz_app/views.py`)
- Question generation → T5 model: generates prompts (evidence: `config/quiz_app/question_generator.py`)
- Question generation → Gemini service: enriches questions (evidence: `config/quiz_app/question_generator.py`)
- Request workflows → Quiz and attempts: records attempts (evidence: `config/quiz_app/views.py`)
- Request workflows → Question bank: loads questions (evidence: `config/quiz_app/views.py`)
- Request workflows → SM-2 scheduling: updates reviews (evidence: `config/quiz_app/views.py`)
- SM-2 scheduling → Question progress: saves schedule (evidence: `config/quiz_app/sm2.py`)
- Request workflows → Bayesian mastery: computes analytics (evidence: `config/quiz_app/views.py`)
- Bayesian mastery → Quiz and attempts: reads attempts (evidence: `config/quiz_app/analytics.py`)
- Request workflows → Quiz and attempts: reads results (evidence: `config/quiz_app/views.py`)
