# softchallenge2012/self-evolving-education-tool architecture

> Architecture diagram of the GitHub repository softchallenge2012/self-evolving-education-tool, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/softchallenge2012/self-evolving-education-tool
- Repository: https://github.com/softchallenge2012/self-evolving-education-tool

## Overview

Item Workbench is a Flask-based practice-question generator: learners provide a concept and worked examples, review a generated item, submit an answer and feedback, and request a summary visualization. The visible runtime routes delegate generation, feedback recording, and plotting to a separate agent module. The agent’s implementation was not included in the excerpts, so its internal generation, grading, and persistence flow cannot be confirmed; integrations are shown only as unverified where implied by configuration and dependencies.

Main entry points: [`app.py`](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/app.py) (Flask routes), [`test_generation_agent.py`](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/test_generation_agent.py) (Generation agent), [`templates/index.html`](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/templates/index.html) (Workbench page), [`static`](https://github.com/softchallenge2012/self-evolving-education-tool/tree/main/static) (Summary plot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Learner experience"]
  node_workbench["Workbench page<br/>[index.html]"]
end

subgraph group_runtime["Application runtime"]
  node_api["Flask routes<br/>[app.py]"]
  node_plot["Summary plot"]
end

subgraph group_services["Generation and storage"]
  node_agent["Generation agent"]
  node_model{{"Google GenAI"}}
  node_store[("Chroma store")]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_workbench
node_workbench -->|"submits requests"| node_api
node_api -->|"renders page"| node_workbench
node_api -->|"generates item"| node_agent
node_api -->|"records feedback"| node_agent
node_api -->|"requests summary"| node_agent
node_api -->|"saves PNG"| node_plot
node_agent -.->|"generates content"| node_model
node_agent -.->|"persists examples"| node_store

click node_workbench "https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/templates/index.html"
click node_api "https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/app.py"
click node_agent "https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/test_generation_agent.py"
click node_store "https://github.com/softchallenge2012/self-evolving-education-tool/tree/main/chroma_store"
click node_plot "https://github.com/softchallenge2012/self-evolving-education-tool/tree/main/static"

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_workbench toneBlue
class node_api,node_plot toneAmber
class node_agent,node_model,node_store toneMint
class node_learner toneIndigo
```

## Components

### Learner experience

- [Workbench page](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/templates/index.html): `templates/index.html`

### Application runtime

- [Flask routes](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/app.py): `app.py`
- [Summary plot](https://github.com/softchallenge2012/self-evolving-education-tool/tree/main/static): `static`

### Generation and storage

- [Generation agent](https://github.com/softchallenge2012/self-evolving-education-tool/blob/main/test_generation_agent.py): `test_generation_agent.py`
- **Google GenAI**
- [Chroma store](https://github.com/softchallenge2012/self-evolving-education-tool/tree/main/chroma_store): `chroma_store`

### Other components

- **Learner**

## Connections

- Learner → Workbench page: uses (evidence: `README.md`)
- Workbench page → Flask routes: submits requests (evidence: `app.py`)
- Flask routes → Workbench page: renders page (evidence: `app.py`)
- Flask routes → Generation agent: generates item (evidence: `app.py`)
- Flask routes → Generation agent: records feedback (evidence: `app.py`)
- Flask routes → Generation agent: requests summary (evidence: `app.py`)
- Flask routes → Summary plot: saves PNG (evidence: `app.py`)
- Generation agent → Google GenAI: generates content
- Generation agent → Chroma store: persists examples
