# devarakondavivek/ai-powered-learning-system architecture

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

- Interactive diagram: https://gitdiagram.com/devarakondavivek/ai-powered-learning-system
- Repository: https://github.com/devarakondavivek/ai-powered-learning-system

## Overview

This is a personalized learning application: learners upload study materials, receive adaptive study plans, act on scheduled topics, and track progress alongside profile, analytics, motivation, and community features. The frontend routes users to feature pages and sends requests through a centralized API client to FastAPI endpoints. Syllabus processing and analysis feed the live scheduler; uploaded materials also support RAG study chat. The README documents these product flows, while some endpoint implementations and scheduler internals were not sampled, so those connections are shown only where documented.

Main entry points: [`src/api.js`](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/api.js) (API client), [`src/App.jsx`](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/App.jsx) (Web app routes), [`backend/app/api/v1/endpoints/content.py`](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/content.py) (Content endpoints), [`backend/app/api/v1/endpoints/schedule.py`](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/schedule.py) (Schedule endpoints)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Learner experience"]
  node_app["Web app routes<br/>[App.jsx]"]
  node_syllabus_ui["Syllabus manager"]
  node_dashboard["Study dashboard<br/>[Dashboard.jsx]"]
  node_tutor["Study tutor<br/>[StudyTutor.jsx]"]
  node_community_ui["Community page<br/>[Community.jsx]"]
  node_profile_ui["Profile page<br/>[Profile.jsx]"]
  node_analytics_ui["Analytics page<br/>[Analytics.jsx]"]
  node_api_client["API client<br/>[api.js]"]
end

subgraph group_api["Backend API"]
  node_fastapi["FastAPI app<br/>[main.py]"]
  node_content_api["Content endpoints<br/>[content.py]"]
  node_schedule_api["Schedule endpoints<br/>[schedule.py]"]
  node_feature_apis["Feature endpoints"]
end

subgraph group_learning["Learning services"]
  node_syllabus_processing["Syllabus processing"]
  node_syllabus_analysis["Syllabus intelligence"]
  node_rag["Material RAG<br/>[rag.py]"]
end

subgraph group_state["Persistence"]
  node_database[("Application database<br/>[models.py]")]
end

node_learner(("Learner"))
node_ollama["Ollama service"]

node_learner -->|"uses"| node_app
node_app -->|"routes to"| node_syllabus_ui
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_tutor
node_app -->|"routes to"| node_community_ui
node_app -->|"routes to"| node_profile_ui
node_app -->|"routes to"| node_analytics_ui
node_syllabus_ui -->|"requests data"| node_api_client
node_dashboard -->|"requests data"| node_api_client
node_tutor -->|"requests data"| node_api_client
node_community_ui -->|"requests data"| node_api_client
node_profile_ui -->|"requests data"| node_api_client
node_analytics_ui -.->|"requests data"| node_api_client
node_api_client -->|"HTTP requests"| node_fastapi
node_fastapi -->|"mounts routes"| node_content_api
node_fastapi -->|"mounts routes"| node_schedule_api
node_fastapi -->|"mounts routes"| node_feature_apis
node_api_client -->|"calls content routes"| node_content_api
node_api_client -->|"calls schedule routes"| node_schedule_api
node_content_api -->|"uses"| node_syllabus_processing
node_content_api -->|"uses"| node_syllabus_analysis
node_content_api -->|"uses"| node_rag
node_syllabus_analysis -->|"uses"| node_syllabus_processing
node_schedule_api -->|"loads topic state"| node_syllabus_analysis
node_schedule_api -->|"saves plans and history"| node_database
node_content_api -->|"reads and writes"| node_database
node_rag -->|"stores and retrieves chunks"| node_database
node_rag -->|"embeds and generates"| node_ollama
node_schedule_api -->|"ranks topics"| node_ollama
node_feature_apis -.->|"persists feature state"| node_database

click node_app "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/App.jsx"
click node_syllabus_ui "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/SyllabusManager.jsx"
click node_dashboard "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Dashboard.jsx"
click node_tutor "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/StudyTutor.jsx"
click node_community_ui "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Community.jsx"
click node_profile_ui "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Profile.jsx"
click node_analytics_ui "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Analytics.jsx"
click node_api_client "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/api.js"
click node_fastapi "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/main.py"
click node_content_api "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/content.py"
click node_schedule_api "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/schedule.py"
click node_feature_apis "https://github.com/devarakondavivek/ai-powered-learning-system/tree/main/backend/app/api/v1/endpoints"
click node_syllabus_processing "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/syllabus_processing.py"
click node_syllabus_analysis "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/syllabus_intelligence.py"
click node_rag "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/rag.py"
click node_database "https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/db/models.py"

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_app,node_syllabus_ui,node_dashboard,node_tutor,node_community_ui,node_profile_ui,node_analytics_ui,node_api_client toneBlue
class node_fastapi,node_content_api,node_schedule_api,node_feature_apis toneAmber
class node_syllabus_processing,node_syllabus_analysis,node_rag toneMint
class node_database toneRose
class node_learner,node_ollama toneIndigo
```

## Components

### Learner experience

- [Web app routes](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/App.jsx): `src/App.jsx`
- [Syllabus manager](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/SyllabusManager.jsx): `src/pages/SyllabusManager.jsx`
- [Study dashboard](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Dashboard.jsx): `src/pages/Dashboard.jsx`
- [Study tutor](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/StudyTutor.jsx): `src/pages/StudyTutor.jsx`
- [Community page](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Community.jsx): `src/pages/Community.jsx`
- [Profile page](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Profile.jsx): `src/pages/Profile.jsx`
- [Analytics page](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/pages/Analytics.jsx): `src/pages/Analytics.jsx`
- [API client](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/src/api.js): `src/api.js`

### Backend API

- [FastAPI app](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/main.py): `backend/app/main.py`
- [Content endpoints](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/content.py): `backend/app/api/v1/endpoints/content.py`
- [Schedule endpoints](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/api/v1/endpoints/schedule.py): `backend/app/api/v1/endpoints/schedule.py`
- [Feature endpoints](https://github.com/devarakondavivek/ai-powered-learning-system/tree/main/backend/app/api/v1/endpoints): `backend/app/api/v1/endpoints`

### Learning services

- [Syllabus processing](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/syllabus_processing.py): `backend/app/core/syllabus_processing.py`
- [Syllabus intelligence](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/syllabus_intelligence.py): `backend/app/core/syllabus_intelligence.py`
- [Material RAG](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/core/rag.py): `backend/app/core/rag.py`

### Persistence

- [Application database](https://github.com/devarakondavivek/ai-powered-learning-system/blob/main/backend/app/db/models.py): `backend/app/db/models.py`

### Other components

- **Learner**
- **Ollama service**

## Connections

- Learner → Web app routes: uses (evidence: `src/App.jsx`)
- Web app routes → Syllabus manager: routes to (evidence: `src/App.jsx`)
- Web app routes → Study dashboard: routes to (evidence: `src/App.jsx`)
- Web app routes → Study tutor: routes to (evidence: `src/App.jsx`)
- Web app routes → Community page: routes to (evidence: `src/App.jsx`)
- Web app routes → Profile page: routes to (evidence: `src/App.jsx`)
- Web app routes → Analytics page: routes to (evidence: `src/App.jsx`)
- Syllabus manager → API client: requests data (evidence: `src/pages/SyllabusManager.jsx`)
- Study dashboard → API client: requests data (evidence: `src/pages/Dashboard.jsx`)
- Study tutor → API client: requests data
- Community page → API client: requests data (evidence: `src/pages/Community.jsx`)
- Profile page → API client: requests data (evidence: `src/pages/Profile.jsx`)
- Analytics page → API client: requests data
- API client → FastAPI app: HTTP requests (evidence: `src/api.js`)
- FastAPI app → Content endpoints: mounts routes (evidence: `backend/app/main.py`)
- FastAPI app → Schedule endpoints: mounts routes (evidence: `backend/app/main.py`)
- FastAPI app → Feature endpoints: mounts routes (evidence: `backend/app/main.py`)
- API client → Content endpoints: calls content routes (evidence: `src/api.js`)
- API client → Schedule endpoints: calls schedule routes (evidence: `src/api.js`)
- Content endpoints → Syllabus processing: uses (evidence: `backend/app/api/v1/endpoints/content.py`)
- Content endpoints → Syllabus intelligence: uses (evidence: `backend/app/api/v1/endpoints/content.py`)
- Content endpoints → Material RAG: uses (evidence: `backend/app/api/v1/endpoints/content.py`)
- Syllabus intelligence → Syllabus processing: uses (evidence: `backend/app/core/syllabus_intelligence.py`)
- Schedule endpoints → Syllabus intelligence: loads topic state (evidence: `README.md`)
- Schedule endpoints → Application database: saves plans and history (evidence: `README.md`)
- Content endpoints → Application database: reads and writes (evidence: `backend/app/api/v1/endpoints/content.py`)
- Material RAG → Application database: stores and retrieves chunks (evidence: `backend/app/core/rag.py`)
- Material RAG → Ollama service: embeds and generates (evidence: `backend/app/core/rag.py`)
- Schedule endpoints → Ollama service: ranks topics (evidence: `README.md`)
- Feature endpoints → Application database: persists feature state (evidence: `backend/app/api/v1/endpoints/auth.py`)
