# tlokeshkumar1/gen-ai-analytics-platform architecture

> Architecture diagram of the GitHub repository tlokeshkumar1/gen-ai-analytics-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tlokeshkumar1/gen-ai-analytics-platform
- Repository: https://github.com/tlokeshkumar1/gen-ai-analytics-platform

## Overview

GEN-AI Analytics Platform is a governed, metadata-driven analytics product: users upload or connect data, review inferred semantics, then explore datasets through deterministic analytics, dashboards, graph tools, or conversational RAG. Its backend also supports versioned dataset management, enterprise connectors, HANA administration, and asynchronous ingestion/sync. The README describes several capabilities beyond the sampled source; those documented relationships are labeled with README evidence, while uncertain internal wiring is omitted.

Main entry points: [`frontend/src/App.tsx`](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/App.tsx) (React application), [`backend/api/rag/pipeline.py`](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/rag/pipeline.py) (RAG pipeline), [`backend/api/app.py`](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/app.py) (FastAPI application), [`frontend/src/screens/DatasetIngestion.tsx`](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/DatasetIngestion.tsx) (Dataset ingestion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User Experience"]
  node_webapp["React application<br/>[App.tsx]"]
  node_dataset_ingestion["Dataset ingestion"]
  node_ingestion_stepper["Agent progress UI"]
  node_executive_dashboard["Executive dashboard"]
  node_graph_studio["KPI graph studio<br/>[GraphStudio.tsx]"]
  node_rag_chat["RAG chat<br/>[RAGChat.tsx]"]
  node_api_client["API client<br/>[api.ts]"]
end

subgraph group_ingestion["Data Ingestion"]
  node_upload_service["Upload service<br/>[upload_service.py]"]
  node_ingestion_agents["Ingestion and semantics<br/>[ingestion.py]"]
end

subgraph group_analytics["Analytics and AI"]
  node_intent_engine["Intent and query planning<br/>[intent_engine.py]"]
  node_analytics_engine["Deterministic analytics"]
  node_rag_pipeline["RAG pipeline<br/>[pipeline.py]"]
  node_graph_agent["Python graph agent"]
  node_ai_service["AI inference service<br/>[ai_core_service.py]"]
end

subgraph group_platform["Platform Services"]
  node_api_server["FastAPI application<br/>[app.py]"]
  node_dataset_catalog["Dataset service<br/>[dataset_service.py]"]
  node_semantic_registry["Semantic registry<br/>[semantic.py]"]
  node_execution_context["Pinned dataset context"]
  node_job_worker["Async job worker<br/>[worker.py]"]
end

subgraph group_storage["Persistence and Integrations"]
  node_hana_tables["HANA table service"]
  node_hana_database[("SAP HANA Cloud")]
  node_connectors["Enterprise connectors<br/>[connectors.py]"]
end

node_user(("Enterprise user"))

node_user -->|"uses"| node_webapp
node_webapp -->|"opens"| node_dataset_ingestion
node_dataset_ingestion -->|"renders"| node_ingestion_stepper
node_dataset_ingestion -->|"requests"| node_api_client
node_webapp -->|"opens"| node_executive_dashboard
node_webapp -->|"opens"| node_graph_studio
node_webapp -->|"opens"| node_rag_chat
node_api_client -->|"calls REST/SSE"| node_api_server
node_api_server -->|"routes uploads"| node_upload_service
node_upload_service -->|"orchestrates"| node_ingestion_agents
node_ingestion_agents -->|"registers datasets"| node_dataset_catalog
node_dataset_catalog -->|"versions semantics"| node_semantic_registry
node_api_server -->|"binds requests"| node_execution_context
node_api_server -.->|"serves chat"| node_rag_pipeline
node_rag_pipeline -->|"plans queries"| node_intent_engine
node_rag_pipeline -->|"executes plans"| node_analytics_engine
node_rag_pipeline -->|"delegates graph work"| node_graph_agent
node_rag_pipeline -.->|"generates responses"| node_ai_service
node_analytics_engine -.->|"queries data"| node_hana_tables
node_hana_tables -->|"reads and writes"| node_hana_database
node_job_worker -->|"syncs data"| node_hana_database
node_job_worker -->|"syncs sources"| node_connectors
node_connectors -.->|"loads datasets"| node_hana_database
node_ai_service -.->|"uses AI inference"| node_user

click node_webapp "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/App.tsx"
click node_dataset_ingestion "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/DatasetIngestion.tsx"
click node_ingestion_stepper "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/components/AIAgentIngestionStepper.tsx"
click node_executive_dashboard "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/ExecutiveDashboard.tsx"
click node_graph_studio "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/GraphStudio.tsx"
click node_rag_chat "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/RAGChat.tsx"
click node_api_client "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/services/api.ts"
click node_api_server "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/app.py"
click node_upload_service "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/upload_service.py"
click node_ingestion_agents "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/ingestion.py"
click node_dataset_catalog "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/dataset_service.py"
click node_semantic_registry "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/semantic.py"
click node_execution_context "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/models/execution_context.py"
click node_intent_engine "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/intent_engine.py"
click node_analytics_engine "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/analytics_engine.py"
click node_rag_pipeline "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/rag/pipeline.py"
click node_graph_agent "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/python_graph_agent.py"
click node_hana_tables "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/database/hana_table_service.py"
click node_connectors "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/connectors.py"
click node_job_worker "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/worker.py"
click node_ai_service "https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/ai_core_service.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_webapp,node_dataset_ingestion,node_ingestion_stepper,node_executive_dashboard,node_graph_studio,node_rag_chat,node_api_client,node_user toneBlue
class node_upload_service,node_ingestion_agents toneAmber
class node_intent_engine,node_analytics_engine,node_rag_pipeline,node_graph_agent,node_ai_service toneMint
class node_api_server,node_dataset_catalog,node_semantic_registry,node_execution_context,node_job_worker toneRose
class node_hana_tables,node_hana_database,node_connectors toneIndigo
```

## Components

### User Experience

- [React application](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Dataset ingestion](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/DatasetIngestion.tsx): `frontend/src/screens/DatasetIngestion.tsx`
- [Agent progress UI](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/components/AIAgentIngestionStepper.tsx): `frontend/src/components/AIAgentIngestionStepper.tsx`
- [Executive dashboard](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/ExecutiveDashboard.tsx): `frontend/src/screens/ExecutiveDashboard.tsx`
- [KPI graph studio](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/GraphStudio.tsx): `frontend/src/screens/GraphStudio.tsx`
- [RAG chat](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/screens/RAGChat.tsx): `frontend/src/screens/RAGChat.tsx`
- [API client](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/frontend/src/services/api.ts): `frontend/src/services/api.ts`

### Data Ingestion

- [Upload service](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/upload_service.py): `backend/api/services/upload_service.py`
- [Ingestion and semantics](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/ingestion.py): `backend/api/platform/ingestion.py`

### Analytics and AI

- [Intent and query planning](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/intent_engine.py): `backend/api/services/intent_engine.py`
- [Deterministic analytics](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/analytics_engine.py): `backend/api/services/analytics_engine.py`
- [RAG pipeline](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/rag/pipeline.py): `backend/api/rag/pipeline.py`
- [Python graph agent](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/python_graph_agent.py): `backend/api/services/python_graph_agent.py`
- [AI inference service](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/ai_core_service.py): `backend/api/services/ai_core_service.py`

### Platform Services

- [FastAPI application](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/app.py): `backend/api/app.py`
- [Dataset service](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/services/dataset_service.py): `backend/api/services/dataset_service.py`
- [Semantic registry](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/semantic.py): `backend/api/platform/semantic.py`
- [Pinned dataset context](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/models/execution_context.py): `backend/api/models/execution_context.py`
- [Async job worker](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/worker.py): `backend/api/worker.py`

### Persistence and Integrations

- [HANA table service](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/database/hana_table_service.py): `backend/api/database/hana_table_service.py`
- **SAP HANA Cloud**
- [Enterprise connectors](https://github.com/tlokeshkumar1/gen-ai-analytics-platform/blob/main/backend/api/platform/connectors.py): `backend/api/platform/connectors.py`

### Other components

- **Enterprise user**

## Connections

- Enterprise user → React application: uses
- React application → Dataset ingestion: opens (evidence: `frontend/src/App.tsx`)
- Dataset ingestion → Agent progress UI: renders (evidence: `frontend/src/screens/DatasetIngestion.tsx`)
- Dataset ingestion → API client: requests (evidence: `frontend/src/screens/DatasetIngestion.tsx`)
- React application → Executive dashboard: opens (evidence: `frontend/src/App.tsx`)
- React application → KPI graph studio: opens (evidence: `frontend/src/App.tsx`)
- React application → RAG chat: opens (evidence: `frontend/src/App.tsx`)
- API client → FastAPI application: calls REST/SSE
- FastAPI application → Upload service: routes uploads
- Upload service → Ingestion and semantics: orchestrates
- Ingestion and semantics → Dataset service: registers datasets
- Dataset service → Semantic registry: versions semantics (evidence: `backend/api/platform/semantic.py`)
- FastAPI application → Pinned dataset context: binds requests
- FastAPI application → RAG pipeline: serves chat
- RAG pipeline → Intent and query planning: plans queries (evidence: `backend/api/rag/pipeline.py`)
- RAG pipeline → Deterministic analytics: executes plans (evidence: `backend/api/rag/pipeline.py`)
- RAG pipeline → Python graph agent: delegates graph work (evidence: `backend/api/rag/pipeline.py`)
- RAG pipeline → AI inference service: generates responses
- Deterministic analytics → HANA table service: queries data
- HANA table service → SAP HANA Cloud: reads and writes
- Async job worker → SAP HANA Cloud: syncs data
- Async job worker → Enterprise connectors: syncs sources
- Enterprise connectors → SAP HANA Cloud: loads datasets
- AI inference service → Enterprise user: uses AI inference
