# oussama-inchallah/university-data-platform-mvp architecture

> Architecture diagram of the GitHub repository oussama-inchallah/university-data-platform-mvp, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/oussama-inchallah/university-data-platform-mvp
- Repository: https://github.com/oussama-inchallah/university-data-platform-mvp

## Overview

University Data Platform is a Moroccan-university data lakehouse: Airflow coordinates web and OpenAlex ingestion, raw storage, Silver normalization, Gold search indexing, and catalog synchronization. Users can search through the REST API and Streamlit interface; the platform also documents RAG and Metabase analytics. The DAG excerpt shows crawler and Spark task configuration, while README documents the broader Medallion flow. Several API, frontend, and job internals were not excerpted, so their links are limited to documented capabilities.

Main entry points: [`src/processing/jobs/process_raw_to_hudi.py`](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_raw_to_hudi.py) (Silver Job), [`src/processing/jobs/process_hudi_to_search.py`](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_hudi_to_search.py) (Gold Search Job), [`dags/dag_fsac.py`](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/dags/dag_fsac.py) (Airflow DAGs), [`src/api/search_rag_api.py`](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/api/search_rag_api.py) (Search and RAG API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Orchestration"]
  node_airflow["Airflow DAGs<br/>[dag_fsac.py]"]
  node_alerts["Email Alerts<br/>[alerts.py]"]
end

subgraph group_ingest["Ingestion"]
  node_crawler["Web Crawler<br/>[engine.py]"]
  node_openalex_fetcher["OpenAlex Fetcher<br/>[fetcher.py]"]
  node_storage_router["Storage Router<br/>[storage.py]"]
end

subgraph group_lakehouse["Lakehouse Processing"]
  node_raw_minio[("Raw MinIO")]
  node_silver_job["Silver Job"]
  node_config_loader["Config Loader<br/>[config_loader.py]"]
  node_parser_suite["Document Parsers"]
  node_router["Semantic Router<br/>[router.py]"]
  node_cleaner["Data Cleaner<br/>[data_cleaner.py]"]
  node_hudi_writer["Hudi Writer<br/>[hudi_writer.py]"]
  node_hudi_tables[("Hudi Tables")]
end

subgraph group_serving["Search and API"]
  node_gold_job["Gold Search Job"]
  node_nlp["Chunking and Embeddings<br/>[nlp_processor.py]"]
  node_es_writer["Elasticsearch Writer<br/>[es_writer.py]"]
  node_qdrant_writer["Qdrant Writer<br/>[qdrant_writer.py]"]
  node_elasticsearch[("Elasticsearch")]
  node_qdrant[("Qdrant")]
  node_search_api["Search and RAG API<br/>[search_rag_api.py]"]
  node_frontend["Streamlit Frontend<br/>[app.py]"]
end

subgraph group_analytics["Analytics and Ops"]
  node_catalog_sync["Hive Catalog Sync"]
  node_hive[("Hive Metastore")]
  node_metabase["Metabase BI"]
  node_platform_logger["Platform Logger<br/>[platform_logger.py]"]
end

node_university_sites(("University Sites"))
node_openalex_api(("OpenAlex API"))
node_gemini["Gemini"]
node_user(("Platform User"))
node_smtp["SMTP Email"]

node_airflow -->|"runs crawl"| node_crawler
node_airflow -->|"submits job"| node_silver_job
node_airflow -->|"submits job"| node_gold_job
node_airflow -->|"runs sync"| node_catalog_sync
node_airflow -->|"configures failure alerts"| node_alerts
node_university_sites -->|"provides pages"| node_crawler
node_openalex_api -->|"provides works"| node_openalex_fetcher
node_airflow -->|"runs ingestion"| node_openalex_fetcher
node_crawler -->|"stores crawled content"| node_storage_router
node_openalex_fetcher -->|"uploads JSON pages"| node_storage_router
node_storage_router -->|"writes raw objects"| node_raw_minio
node_silver_job -->|"reads raw zone"| node_raw_minio
node_silver_job -->|"loads rules"| node_config_loader
node_silver_job -->|"parses documents"| node_parser_suite
node_silver_job -->|"routes records"| node_router
node_silver_job -->|"cleans records"| node_cleaner
node_silver_job -->|"writes tables"| node_hudi_writer
node_hudi_writer -->|"writes curated data"| node_hudi_tables
node_gold_job -->|"reads tables"| node_hudi_tables
node_gold_job -->|"loads rules"| node_config_loader
node_gold_job -->|"chunks and embeds"| node_nlp
node_gold_job -->|"indexes text"| node_es_writer
node_gold_job -->|"indexes vectors"| node_qdrant_writer
node_es_writer -->|"writes index"| node_elasticsearch
node_qdrant_writer -->|"writes vectors"| node_qdrant
node_user -->|"uses interface"| node_frontend
node_user -->|"requests search"| node_search_api
node_search_api -->|"full-text search"| node_elasticsearch
node_search_api -->|"semantic search"| node_qdrant
node_search_api -.->|"generates RAG answers"| node_gemini
node_catalog_sync -->|"syncs catalog"| node_hive
node_hive -->|"serves SQL analytics"| node_metabase
node_silver_job -->|"reports job status"| node_platform_logger
node_gold_job -->|"reports job status"| node_platform_logger
node_alerts -->|"sends notifications"| node_smtp

click node_airflow "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/dags/dag_fsac.py"
click node_alerts "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/dags/utils/alerts.py"
click node_crawler "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/crawler/engine.py"
click node_openalex_fetcher "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/openalex/fetcher.py"
click node_storage_router "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/crawler/storage.py"
click node_silver_job "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_raw_to_hudi.py"
click node_config_loader "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/config_loader.py"
click node_parser_suite "https://github.com/oussama-inchallah/university-data-platform-mvp/tree/main/src/processing/core/parsers"
click node_router "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/router.py"
click node_cleaner "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/transformers/data_cleaner.py"
click node_hudi_writer "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/hudi_writer.py"
click node_gold_job "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_hudi_to_search.py"
click node_nlp "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/transformers/nlp_processor.py"
click node_es_writer "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/es_writer.py"
click node_qdrant_writer "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/qdrant_writer.py"
click node_search_api "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/api/search_rag_api.py"
click node_frontend "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/frontend/app.py"
click node_catalog_sync "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/sync_hudi_catalog.py"
click node_platform_logger "https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/utils/platform_logger.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_airflow,node_alerts,node_user toneBlue
class node_crawler,node_openalex_fetcher,node_storage_router toneAmber
class node_raw_minio,node_silver_job,node_config_loader,node_parser_suite,node_router,node_cleaner,node_hudi_writer,node_hudi_tables,node_openalex_api toneMint
class node_gold_job,node_nlp,node_es_writer,node_qdrant_writer,node_elasticsearch,node_qdrant,node_search_api,node_frontend toneRose
class node_catalog_sync,node_hive,node_metabase,node_platform_logger,node_university_sites,node_gemini,node_smtp toneIndigo
```

## Components

### Orchestration

- [Airflow DAGs](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/dags/dag_fsac.py): `dags/dag_fsac.py`
- [Email Alerts](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/dags/utils/alerts.py): `dags/utils/alerts.py`

### Ingestion

- [Web Crawler](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/crawler/engine.py): `src/ingestion/crawler/engine.py`
- [OpenAlex Fetcher](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/openalex/fetcher.py): `src/ingestion/openalex/fetcher.py`
- [Storage Router](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/ingestion/crawler/storage.py): `src/ingestion/crawler/storage.py`

### Lakehouse Processing

- **Raw MinIO**
- [Silver Job](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_raw_to_hudi.py): `src/processing/jobs/process_raw_to_hudi.py`
- [Config Loader](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/config_loader.py): `src/processing/core/config_loader.py`
- [Document Parsers](https://github.com/oussama-inchallah/university-data-platform-mvp/tree/main/src/processing/core/parsers): `src/processing/core/parsers`
- [Semantic Router](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/router.py): `src/processing/core/router.py`
- [Data Cleaner](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/transformers/data_cleaner.py): `src/processing/core/transformers/data_cleaner.py`
- [Hudi Writer](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/hudi_writer.py): `src/processing/core/writers/hudi_writer.py`
- **Hudi Tables**

### Search and API

- [Gold Search Job](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/process_hudi_to_search.py): `src/processing/jobs/process_hudi_to_search.py`
- [Chunking and Embeddings](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/transformers/nlp_processor.py): `src/processing/core/transformers/nlp_processor.py`
- [Elasticsearch Writer](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/es_writer.py): `src/processing/core/writers/es_writer.py`
- [Qdrant Writer](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/writers/qdrant_writer.py): `src/processing/core/writers/qdrant_writer.py`
- **Elasticsearch**
- **Qdrant**
- [Search and RAG API](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/api/search_rag_api.py): `src/api/search_rag_api.py`
- [Streamlit Frontend](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/frontend/app.py): `src/frontend/app.py`

### Analytics and Ops

- [Hive Catalog Sync](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/jobs/sync_hudi_catalog.py): `src/processing/jobs/sync_hudi_catalog.py`
- **Hive Metastore**
- **Metabase BI**
- [Platform Logger](https://github.com/oussama-inchallah/university-data-platform-mvp/blob/main/src/processing/core/utils/platform_logger.py): `src/processing/core/utils/platform_logger.py`

### Other components

- **University Sites**
- **OpenAlex API**
- **Gemini**
- **Platform User**
- **SMTP Email**

## Connections

- Airflow DAGs → Web Crawler: runs crawl (evidence: `dags/dag_fsac.py`)
- Airflow DAGs → Silver Job: submits job (evidence: `dags/dag_fsac.py`)
- Airflow DAGs → Gold Search Job: submits job (evidence: `dags/dag_fsac.py`)
- Airflow DAGs → Hive Catalog Sync: runs sync (evidence: `README.md`)
- Airflow DAGs → Email Alerts: configures failure alerts (evidence: `dags/dag_fsac.py`)
- University Sites → Web Crawler: provides pages (evidence: `README.md`)
- OpenAlex API → OpenAlex Fetcher: provides works (evidence: `src/ingestion/openalex/fetcher.py`)
- Airflow DAGs → OpenAlex Fetcher: runs ingestion (evidence: `README.md`)
- Web Crawler → Storage Router: stores crawled content (evidence: `src/ingestion/crawler/engine.py`)
- OpenAlex Fetcher → Storage Router: uploads JSON pages (evidence: `src/ingestion/openalex/fetcher.py`)
- Storage Router → Raw MinIO: writes raw objects (evidence: `README.md`)
- Silver Job → Raw MinIO: reads raw zone (evidence: `README.md`)
- Silver Job → Config Loader: loads rules (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Silver Job → Document Parsers: parses documents (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Silver Job → Semantic Router: routes records (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Silver Job → Data Cleaner: cleans records (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Silver Job → Hudi Writer: writes tables (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Hudi Writer → Hudi Tables: writes curated data (evidence: `README.md`)
- Gold Search Job → Hudi Tables: reads tables (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Gold Search Job → Config Loader: loads rules (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Gold Search Job → Chunking and Embeddings: chunks and embeds (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Gold Search Job → Elasticsearch Writer: indexes text (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Gold Search Job → Qdrant Writer: indexes vectors (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Elasticsearch Writer → Elasticsearch: writes index (evidence: `README.md`)
- Qdrant Writer → Qdrant: writes vectors (evidence: `README.md`)
- Platform User → Streamlit Frontend: uses interface (evidence: `README.md`)
- Platform User → Search and RAG API: requests search (evidence: `README.md`)
- Search and RAG API → Elasticsearch: full-text search (evidence: `README.md`)
- Search and RAG API → Qdrant: semantic search (evidence: `README.md`)
- Search and RAG API → Gemini: generates RAG answers (evidence: `README.md`)
- Hive Catalog Sync → Hive Metastore: syncs catalog (evidence: `README.md`)
- Hive Metastore → Metabase BI: serves SQL analytics (evidence: `README.md`)
- Silver Job → Platform Logger: reports job status (evidence: `src/processing/jobs/process_raw_to_hudi.py`)
- Gold Search Job → Platform Logger: reports job status (evidence: `src/processing/jobs/process_hudi_to_search.py`)
- Email Alerts → SMTP Email: sends notifications (evidence: `dags/utils/alerts.py`)
