# aammartufail/six-months_python_for_data_science-mentorship-program architecture

> Architecture diagram of the GitHub repository aammartufail/six-months_python_for_data_science-mentorship-program, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aammartufail/six-months_python_for_data_science-mentorship-program
- Repository: https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program

## Overview

This is a teaching repository for a six-month Python, data science, and AI mentorship program, not one integrated application. Its principal user-to-result pattern is to choose an independent demo, provide data or a prompt, and view a prediction, analysis, generated media, or document-chat response. The graph groups the examples by capability and shows selected internal stages where excerpts support them. Most demos are independent; unsampled examples are represented by their existing directories. The README describes the educational program, not runtime wiring between examples.

Main entry points: [`13_streamlit/16_RAG_based_chatpdf/app.py`](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/app.py) (RAG document chat), [`13_streamlit/16_RAG_based_chatpdf/htmlTemplates.py`](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/htmlTemplates.py) (Chat presentation), [`13_streamlit/15_chat_with_multiple_pdfs/app.py`](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/15_chat_with_multiple_pdfs/app.py) (Multi-PDF chat), [`13_streamlit/08_ask_the_doc/main.py`](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/08_ask_the_doc/main.py) (Single-document QA)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_docs["Document AI"]
  node_ragchat["RAG document chat<br/>[app.py]"]
  node_chattemplates["Chat presentation<br/>[htmlTemplates.py]"]
  node_multi_pdf["Multi-PDF chat<br/>[app.py]"]
  node_ask_doc["Single-document QA<br/>[main.py]"]
  node_ask_folder["Folder PDF questions<br/>[main.py]"]
  node_other_doc_demos["Other document-chat demos"]
end

subgraph group_data["Data Applications"]
  node_ml_app["Interactive ML<br/>[app.py]"]
  node_stock_app["Stock analysis<br/>[app.py]"]
  node_lida_csv["CSV charts and summaries<br/>[app.py]"]
  node_lida_app["Dataset analysis<br/>[main.py]"]
  node_other_data_demos["Other data demos"]
end

subgraph group_media["Media AI"]
  node_tts["Text to speech<br/>[app.py]"]
  node_stt["Speech to text<br/>[app.py]"]
  node_other_media_demos["Other media demos"]
end

subgraph group_web["Web App Examples"]
  node_flask_demos["Flask tutorial apps"]
  node_flask_apps["Flask app examples"]
  node_webcam["Webcam vision demo<br/>[02_webcam.py]"]
end

node_user(("Learner / user"))

node_user -->|"uploads, asks"| node_ragchat
node_ragchat -.->|"renders chat"| node_chattemplates
node_user -->|"uploads, asks"| node_multi_pdf
node_user -->|"uploads, asks"| node_ask_doc
node_user -->|"selects, asks"| node_ask_folder
node_user -->|"uploads data"| node_ml_app
node_user -->|"selects data"| node_stock_app
node_user -->|"uploads, queries"| node_lida_csv
node_user -->|"selects dataset"| node_lida_app
node_user -->|"enters text"| node_tts
node_user -->|"provides audio"| node_stt
node_user -.->|"uses demo"| node_flask_demos
node_user -.->|"uses demo"| node_flask_apps
node_user -.->|"uses demo"| node_webcam

click node_ragchat "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/app.py"
click node_chattemplates "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/htmlTemplates.py"
click node_multi_pdf "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/15_chat_with_multiple_pdfs/app.py"
click node_ask_doc "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/08_ask_the_doc/main.py"
click node_ask_folder "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/07_ask_the_documents/main.py"
click node_other_doc_demos "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit"
click node_ml_app "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/03_ml_app/app.py"
click node_stock_app "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/10_stock_market_app/app.py"
click node_lida_csv "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/17_chat_with_csv_lida/app.py"
click node_lida_app "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/18_lida_app/main.py"
click node_other_data_demos "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit"
click node_tts "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/12_text_to_speech/app.py"
click node_stt "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/13_speech_to_text/app.py"
click node_other_media_demos "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit"
click node_flask_demos "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/15_flask_web_apps/00_Complete_tutorials"
click node_flask_apps "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/15_flask_web_apps"
click node_webcam "https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/09_computer_vision/02_webcam.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_ragchat,node_chattemplates,node_multi_pdf,node_ask_doc,node_ask_folder,node_other_doc_demos,node_user toneBlue
class node_ml_app,node_stock_app,node_lida_csv,node_lida_app,node_other_data_demos toneAmber
class node_tts,node_stt,node_other_media_demos toneMint
class node_flask_demos,node_flask_apps,node_webcam toneRose
```

## Components

### Document AI

- [RAG document chat](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/app.py): `13_streamlit/16_RAG_based_chatpdf/app.py`
- [Chat presentation](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/16_RAG_based_chatpdf/htmlTemplates.py): `13_streamlit/16_RAG_based_chatpdf/htmlTemplates.py`
- [Multi-PDF chat](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/15_chat_with_multiple_pdfs/app.py): `13_streamlit/15_chat_with_multiple_pdfs/app.py`
- [Single-document QA](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/08_ask_the_doc/main.py): `13_streamlit/08_ask_the_doc/main.py`
- [Folder PDF questions](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/07_ask_the_documents/main.py): `13_streamlit/07_ask_the_documents/main.py`
- [Other document-chat demos](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit): `13_streamlit`

### Data Applications

- [Interactive ML](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/03_ml_app/app.py): `13_streamlit/03_ml_app/app.py`
- [Stock analysis](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/10_stock_market_app/app.py): `13_streamlit/10_stock_market_app/app.py`
- [CSV charts and summaries](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/17_chat_with_csv_lida/app.py): `13_streamlit/17_chat_with_csv_lida/app.py`
- [Dataset analysis](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/18_lida_app/main.py): `13_streamlit/18_lida_app/main.py`
- [Other data demos](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit): `13_streamlit`

### Media AI

- [Text to speech](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/12_text_to_speech/app.py): `13_streamlit/12_text_to_speech/app.py`
- [Speech to text](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/13_streamlit/13_speech_to_text/app.py): `13_streamlit/13_speech_to_text/app.py`
- [Other media demos](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/13_streamlit): `13_streamlit`

### Web App Examples

- [Flask tutorial apps](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/15_flask_web_apps/00_Complete_tutorials): `15_flask_web_apps/00_Complete_tutorials`
- [Flask app examples](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/tree/main/15_flask_web_apps): `15_flask_web_apps`
- [Webcam vision demo](https://github.com/aammartufail/six-months_python_for_data_science-mentorship-program/blob/main/09_computer_vision/02_webcam.py): `09_computer_vision/02_webcam.py`

### Other components

- **Learner / user**

## Connections

- Learner / user → RAG document chat: uploads, asks (evidence: `13_streamlit/16_RAG_based_chatpdf/app.py`)
- RAG document chat → Chat presentation: renders chat
- Learner / user → Multi-PDF chat: uploads, asks (evidence: `13_streamlit/15_chat_with_multiple_pdfs/app.py`)
- Learner / user → Single-document QA: uploads, asks (evidence: `13_streamlit/08_ask_the_doc/main.py`)
- Learner / user → Folder PDF questions: selects, asks (evidence: `13_streamlit/07_ask_the_documents/main.py`)
- Learner / user → Interactive ML: uploads data (evidence: `13_streamlit/03_ml_app/app.py`)
- Learner / user → Stock analysis: selects data (evidence: `13_streamlit/10_stock_market_app/app.py`)
- Learner / user → CSV charts and summaries: uploads, queries (evidence: `13_streamlit/17_chat_with_csv_lida/app.py`)
- Learner / user → Dataset analysis: selects dataset (evidence: `13_streamlit/18_lida_app/main.py`)
- Learner / user → Text to speech: enters text (evidence: `13_streamlit/12_text_to_speech/app.py`)
- Learner / user → Speech to text: provides audio (evidence: `13_streamlit/13_speech_to_text/app.py`)
- Learner / user → Flask tutorial apps: uses demo
- Learner / user → Flask app examples: uses demo
- Learner / user → Webcam vision demo: uses demo
