# nandan5048310-spec/viva-lab-practice-partner architecture

> Architecture diagram of the GitHub repository nandan5048310-spec/viva-lab-practice-partner, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nandan5048310-spec/viva-lab-practice-partner
- Repository: https://github.com/nandan5048310-spec/viva-lab-practice-partner

## Overview

This is a Streamlit lab-viva study partner. The visible workflow lets a student enter notes or upload a document, extracts text from supported files, and presents sample MCQ and written-answer practice plus chat and revision placeholders. A separate AI backend implements question generation, answer evaluation, chat, and revision generation, but the sampled app does not connect to it. The README is empty; links below are limited to relationships shown in the sampled source, so backend integration is not inferred.

Main entry points: [`app.py`](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/app.py) (Study Partner UI), [`utils.py`](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/utils.py) (Document Text Extraction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study_material["Study Material"]
  node_streamlit_app["Study Partner UI<br/>[app.py]"]
  node_text_extraction["Document Text Extraction<br/>[utils.py]"]
end

subgraph group_practice_ui["Practice Interface"]
  node_practice_sections["Practice Sections<br/>[app.py]"]
end

subgraph group_ai_backend["AI Backend"]
  node_mcq_generation["MCQ Generation<br/>[ai_engine.py]"]
  node_written_generation["Written Questions<br/>[ai_engine.py]"]
  node_answer_evaluation["Answer Evaluation<br/>[ai_engine.py]"]
  node_study_chat["Study Chat<br/>[ai_engine.py]"]
  node_revision_generation["Revision Materials<br/>[ai_engine.py]"]
end

node_student(("Student"))

node_student -->|"uses"| node_streamlit_app
node_streamlit_app -->|"extracts text"| node_text_extraction
node_streamlit_app -->|"presents practice"| node_practice_sections

click node_streamlit_app "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/app.py"
click node_text_extraction "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/utils.py"
click node_practice_sections "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/app.py"
click node_mcq_generation "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py"
click node_written_generation "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py"
click node_answer_evaluation "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py"
click node_study_chat "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py"
click node_revision_generation "https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.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_streamlit_app,node_text_extraction toneBlue
class node_practice_sections toneAmber
class node_mcq_generation,node_written_generation,node_answer_evaluation,node_study_chat,node_revision_generation toneMint
class node_student toneIndigo
```

## Components

### Study Material

- [Study Partner UI](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/app.py): `app.py`
- [Document Text Extraction](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/utils.py): `utils.py`

### Practice Interface

- [Practice Sections](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/app.py): `app.py`

### AI Backend

- [MCQ Generation](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py): `ai_engine.py`
- [Written Questions](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py): `ai_engine.py`
- [Answer Evaluation](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py): `ai_engine.py`
- [Study Chat](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py): `ai_engine.py`
- [Revision Materials](https://github.com/nandan5048310-spec/viva-lab-practice-partner/blob/main/ai_engine.py): `ai_engine.py`

### Other components

- **Student**

## Connections

- Student → Study Partner UI: uses (evidence: `app.py`)
- Study Partner UI → Document Text Extraction: extracts text (evidence: `app.py`)
- Study Partner UI → Practice Sections: presents practice (evidence: `app.py`)
