# adhyayankala43-hue/ai-mock-interview-assistant architecture

> Architecture diagram of the GitHub repository adhyayankala43-hue/ai-mock-interview-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adhyayankala43-hue/ai-mock-interview-assistant
- Repository: https://github.com/adhyayankala43-hue/ai-mock-interview-assistant

## Overview

AI Mock Interview Assistant is a Flask-based interview-practice product. A candidate selects or receives a domain question, submits a written or transcribed answer, and gets scored feedback; sessions feed history, dashboard, and simulation views. The runtime is centered on app.py, with NLP and Gemini assessment in nlp_engine.py and JSON-backed question and history data. The six domain builders are represented as content-generation modules, but their runtime connection is not shown. Edges rely on README statements or the SOURCE INDEX; unsampled implementation details are not inferred.

Main entry points: [`app.py`](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/app.py) (Flask routes), [`nlp_engine.py`](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/nlp_engine.py) (NLP evaluation), [`history.json`](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/history.json) (Session history), [`templates/index.html`](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/index.html) (Practice interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Practice Web App"]
  node_flask["Flask routes<br/>[app.py]"]
  node_practice_ui["Practice interface<br/>[index.html]"]
  node_history_ui["History interface<br/>[history.html]"]
  node_dashboard_ui["Dashboard interface<br/>[dashboard.html]"]
end

subgraph group_assessment["Answer Assessment"]
  node_nlp["NLP evaluation<br/>[nlp_engine.py]"]
  node_gemini["Gemini API"]
end

subgraph group_content["Question Content"]
  node_question_bank[("Question bank<br/>[questions.json]")]
  node_behavioral_builder["Behavioral questions<br/>[bh_builder.py]"]
  node_data_science_builder["Data science questions<br/>[ds_builder.py]"]
  node_forensic_builder["Forensic questions<br/>[fs_builder.py]"]
  node_product_builder["Product questions<br/>[pm_builder.py]"]
  node_python_builder["Python questions<br/>[py_builder.py]"]
  node_engineering_builder["Engineering questions<br/>[se_builder.py]"]
end

subgraph group_insights["Practice Insights"]
  node_history_store[("Session history<br/>[history.json]")]
end

node_candidate(("Candidate"))

node_candidate -->|"submits practice"| node_flask
node_flask -->|"renders"| node_practice_ui
node_flask -->|"renders"| node_history_ui
node_flask -->|"renders"| node_dashboard_ui
node_flask -->|"reads and updates"| node_question_bank
node_flask -->|"evaluates answers"| node_nlp
node_nlp -->|"requests assessment"| node_gemini
node_flask -->|"persists sessions"| node_history_store
node_flask -->|"aggregates dashboard data"| node_history_store

click node_flask "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/app.py"
click node_practice_ui "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/index.html"
click node_history_ui "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/history.html"
click node_dashboard_ui "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/dashboard.html"
click node_nlp "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/nlp_engine.py"
click node_question_bank "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/questions.json"
click node_behavioral_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/bh_builder.py"
click node_data_science_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/ds_builder.py"
click node_forensic_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/fs_builder.py"
click node_product_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/pm_builder.py"
click node_python_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/py_builder.py"
click node_engineering_builder "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/se_builder.py"
click node_history_store "https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/history.json"

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_flask,node_practice_ui,node_history_ui,node_dashboard_ui toneBlue
class node_nlp,node_gemini toneAmber
class node_question_bank,node_behavioral_builder,node_data_science_builder,node_forensic_builder,node_product_builder,node_python_builder,node_engineering_builder toneMint
class node_history_store toneRose
class node_candidate toneIndigo
```

## Components

### Practice Web App

- [Flask routes](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/app.py): `app.py`
- [Practice interface](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/index.html): `templates/index.html`
- [History interface](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/history.html): `templates/history.html`
- [Dashboard interface](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/templates/dashboard.html): `templates/dashboard.html`

### Answer Assessment

- [NLP evaluation](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/nlp_engine.py): `nlp_engine.py`
- **Gemini API**

### Question Content

- [Question bank](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/questions.json): `questions.json`
- [Behavioral questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/bh_builder.py): `question_data/bh_builder.py`
- [Data science questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/ds_builder.py): `question_data/ds_builder.py`
- [Forensic questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/fs_builder.py): `question_data/fs_builder.py`
- [Product questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/pm_builder.py): `question_data/pm_builder.py`
- [Python questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/py_builder.py): `question_data/py_builder.py`
- [Engineering questions](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/question_data/se_builder.py): `question_data/se_builder.py`

### Practice Insights

- [Session history](https://github.com/adhyayankala43-hue/ai-mock-interview-assistant/blob/main/history.json): `history.json`

### Other components

- **Candidate**

## Connections

- Candidate → Flask routes: submits practice (evidence: `README.md`)
- Flask routes → Practice interface: renders (evidence: `README.md`)
- Flask routes → History interface: renders (evidence: `README.md`)
- Flask routes → Dashboard interface: renders (evidence: `README.md`)
- Flask routes → Question bank: reads and updates (evidence: `README.md`)
- Flask routes → NLP evaluation: evaluates answers (evidence: `app.py`)
- NLP evaluation → Gemini API: requests assessment (evidence: `README.md`)
- Flask routes → Session history: persists sessions (evidence: `README.md`)
- Flask routes → Session history: aggregates dashboard data (evidence: `README.md`)
