# ishwinderkaur8/ucs503p-202627-autoclean-ai architecture

> Architecture diagram of the GitHub repository ishwinderkaur8/ucs503p-202627-autoclean-ai, 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/ishwinderkaur8/ucs503p-202627-autoclean-ai
- Repository: https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai

## Overview

AutoClean AI turns uploaded CSV, TSV, Excel, or JSON datasets into profiled, cleaned, model-ready datasets with an audit trail. The main workflow runs from browser upload through ingestion and in-memory storage, then profiling and configurable pipeline execution, before users inspect and download results. Separate capabilities combine datasets, generate synthetic data, recommend algorithms, and answer dataset questions through an offline assistant. The graph reflects documented behavior and sampled calls; unsampled implementation details are represented only where the README establishes the capability.

Main entry points: [`frontend/src/App.tsx`](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/App.tsx) (Workspace), [`backend/app/api/routes_pipeline.py`](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_pipeline.py) (Pipeline API), [`backend/app/core/pipeline/orchestrator.py`](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/orchestrator.py) (Pipeline orchestrator), [`frontend/src/api/client.ts`](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/api/client.ts) (API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_app["Workspace<br/>[App.tsx]"]
  node_api_client["API client<br/>[client.ts]"]
  node_upload_ui["File upload<br/>[FileUpload.tsx]"]
  node_profile_ui["Profile and preview"]
  node_config_ui["Pipeline controls"]
  node_audit_ui["Audit display<br/>[AuditTrailView.tsx]"]
  node_download_ui["Result download<br/>[DownloadResult.tsx]"]
  node_recommend_ui["Recommendations"]
  node_chat_ui["Chat assistant<br/>[ChatAssistant.tsx]"]
end

subgraph group_data["Dataset management"]
  node_dataset_routes["Dataset API<br/>[routes_dataset.py]"]
  node_ingestion["File ingestion<br/>[ingestion.py]"]
  node_store[("Dataset session store<br/>[session_store.py]")]
  node_profiling["Dataset profiling<br/>[profiling.py]"]
end

subgraph group_transform["Data transformation"]
  node_pipeline_routes["Pipeline API<br/>[routes_pipeline.py]"]
  node_orchestrator["Pipeline orchestrator<br/>[orchestrator.py]"]
  node_cleaning["Cleaning and imputation<br/>[cleaning.py]"]
  node_outliers["Outlier handling<br/>[outliers.py]"]
  node_encoding["Categorical encoding<br/>[encoding.py]"]
  node_features["Feature engineering"]
  node_scaling["Feature scaling<br/>[scaling.py]"]
  node_combining["Dataset combining<br/>[combine.py]"]
  node_synthetic["Synthetic data<br/>[synthetic.py]"]
  node_audit["Audit and safeguards<br/>[audit.py]"]
end

subgraph group_insights["Insights and assistance"]
  node_assistant_routes["Assistant API"]
  node_chat_engine["Chat reasoning<br/>[chat_assistant.py]"]
  node_recommender["Algorithm recommender<br/>[recommender.py]"]
  node_advisor["Column and step advisor<br/>[llm_advisor.py]"]
end

node_user(("Dataset user"))
node_browser_speech["Browser speech services"]

node_user -->|"uses"| node_app
node_app -->|"renders"| node_upload_ui
node_app -->|"renders"| node_profile_ui
node_app -->|"renders"| node_config_ui
node_app -->|"renders"| node_audit_ui
node_app -->|"renders"| node_download_ui
node_app -->|"renders"| node_recommend_ui
node_app -->|"renders"| node_chat_ui
node_app -->|"calls"| node_api_client
node_upload_ui -.->|"provides files"| node_app
node_config_ui -->|"provides settings"| node_app
node_api_client -->|"sends dataset requests"| node_dataset_routes
node_api_client -->|"sends pipeline requests"| node_pipeline_routes
node_api_client -->|"sends chat requests"| node_assistant_routes
node_dataset_routes -->|"ingests uploads"| node_ingestion
node_dataset_routes -->|"stores and retrieves"| node_store
node_dataset_routes -->|"profiles datasets"| node_profiling
node_dataset_routes -.->|"reads audit trail"| node_audit
node_pipeline_routes -->|"loads and saves"| node_store
node_pipeline_routes -->|"runs pipeline"| node_orchestrator
node_pipeline_routes -->|"combines datasets"| node_combining
node_pipeline_routes -->|"generates or augments"| node_synthetic
node_pipeline_routes -->|"explains steps"| node_advisor
node_pipeline_routes -->|"profiles for suggestions"| node_profiling
node_orchestrator -->|"calls"| node_cleaning
node_orchestrator -->|"calls"| node_outliers
node_orchestrator -->|"calls"| node_encoding
node_orchestrator -->|"calls"| node_features
node_orchestrator -->|"calls"| node_scaling
node_orchestrator -->|"records steps"| node_audit
node_cleaning -->|"inspects columns"| node_profiling
node_features -->|"classifies columns"| node_profiling
node_combining -->|"reports changes"| node_audit
node_synthetic -->|"reports changes"| node_audit
node_assistant_routes -.->|"loads dataset"| node_store
node_assistant_routes -.->|"handles questions"| node_chat_engine
node_chat_engine -->|"gets recommendations"| node_recommender
node_chat_engine -->|"examines data"| node_profiling
node_recommender -->|"uses profiles"| node_profiling
node_recommend_ui -.->|"requests advice"| node_api_client
node_chat_ui -->|"sends questions"| node_api_client
node_chat_ui -->|"uses speech"| node_browser_speech

click node_app "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/App.tsx"
click node_api_client "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/api/client.ts"
click node_upload_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/FileUpload.tsx"
click node_profile_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/ColumnProfileTable.tsx"
click node_config_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/PipelineConfigPanel.tsx"
click node_audit_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/AuditTrailView.tsx"
click node_download_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/DownloadResult.tsx"
click node_recommend_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/RecommendationPanel.tsx"
click node_chat_ui "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/ChatAssistant.tsx"
click node_dataset_routes "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_dataset.py"
click node_ingestion "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/ingestion.py"
click node_store "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/services/session_store.py"
click node_profiling "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/profiling.py"
click node_pipeline_routes "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_pipeline.py"
click node_orchestrator "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/orchestrator.py"
click node_cleaning "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/cleaning.py"
click node_outliers "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/outliers.py"
click node_encoding "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/encoding.py"
click node_features "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/feature_engineering.py"
click node_scaling "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/scaling.py"
click node_combining "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/combine.py"
click node_synthetic "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/synthetic.py"
click node_audit "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/audit.py"
click node_assistant_routes "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_assistant.py"
click node_chat_engine "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/chat_assistant.py"
click node_recommender "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/recommender.py"
click node_advisor "https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/llm_advisor.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_app,node_api_client,node_upload_ui,node_profile_ui,node_config_ui,node_audit_ui,node_download_ui,node_recommend_ui,node_chat_ui,node_user,node_browser_speech toneBlue
class node_dataset_routes,node_ingestion,node_store,node_profiling toneAmber
class node_pipeline_routes,node_orchestrator,node_cleaning,node_outliers,node_encoding,node_features,node_scaling,node_combining,node_synthetic,node_audit toneMint
class node_assistant_routes,node_chat_engine,node_recommender,node_advisor toneRose
```

## Components

### User interface

- [Workspace](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/App.tsx): `frontend/src/App.tsx`
- [API client](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/api/client.ts): `frontend/src/api/client.ts`
- [File upload](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/FileUpload.tsx): `frontend/src/components/FileUpload.tsx`
- [Profile and preview](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/ColumnProfileTable.tsx): `frontend/src/components/ColumnProfileTable.tsx`
- [Pipeline controls](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/PipelineConfigPanel.tsx): `frontend/src/components/PipelineConfigPanel.tsx`
- [Audit display](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/AuditTrailView.tsx): `frontend/src/components/AuditTrailView.tsx`
- [Result download](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/DownloadResult.tsx): `frontend/src/components/DownloadResult.tsx`
- [Recommendations](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/RecommendationPanel.tsx): `frontend/src/components/RecommendationPanel.tsx`
- [Chat assistant](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/frontend/src/components/ChatAssistant.tsx): `frontend/src/components/ChatAssistant.tsx`

### Dataset management

- [Dataset API](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_dataset.py): `backend/app/api/routes_dataset.py`
- [File ingestion](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/ingestion.py): `backend/app/core/pipeline/ingestion.py`
- [Dataset session store](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/services/session_store.py): `backend/app/services/session_store.py`
- [Dataset profiling](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/profiling.py): `backend/app/core/pipeline/profiling.py`

### Data transformation

- [Pipeline API](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_pipeline.py): `backend/app/api/routes_pipeline.py`
- [Pipeline orchestrator](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/orchestrator.py): `backend/app/core/pipeline/orchestrator.py`
- [Cleaning and imputation](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/cleaning.py): `backend/app/core/pipeline/cleaning.py`
- [Outlier handling](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/outliers.py): `backend/app/core/pipeline/outliers.py`
- [Categorical encoding](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/encoding.py): `backend/app/core/pipeline/encoding.py`
- [Feature engineering](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/feature_engineering.py): `backend/app/core/pipeline/feature_engineering.py`
- [Feature scaling](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/scaling.py): `backend/app/core/pipeline/scaling.py`
- [Dataset combining](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/combine.py): `backend/app/core/pipeline/combine.py`
- [Synthetic data](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/synthetic.py): `backend/app/core/pipeline/synthetic.py`
- [Audit and safeguards](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/audit.py): `backend/app/core/audit.py`

### Insights and assistance

- [Assistant API](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/api/routes_assistant.py): `backend/app/api/routes_assistant.py`
- [Chat reasoning](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/chat_assistant.py): `backend/app/core/pipeline/chat_assistant.py`
- [Algorithm recommender](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/recommender.py): `backend/app/core/pipeline/recommender.py`
- [Column and step advisor](https://github.com/ishwinderkaur8/ucs503p-202627-autoclean-ai/blob/master/backend/app/core/pipeline/llm_advisor.py): `backend/app/core/pipeline/llm_advisor.py`

### Other components

- **Dataset user**
- **Browser speech services**

## Connections

- Dataset user → Workspace: uses (evidence: `README.md`)
- Workspace → File upload: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Profile and preview: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Pipeline controls: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Audit display: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Result download: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Recommendations: renders (evidence: `frontend/src/App.tsx`)
- Workspace → Chat assistant: renders (evidence: `frontend/src/App.tsx`)
- Workspace → API client: calls (evidence: `frontend/src/App.tsx`)
- File upload → Workspace: provides files (evidence: `frontend/src/App.tsx`)
- Pipeline controls → Workspace: provides settings (evidence: `frontend/src/components/PipelineConfigPanel.tsx`)
- API client → Dataset API: sends dataset requests (evidence: `frontend/src/api/client.ts`)
- API client → Pipeline API: sends pipeline requests (evidence: `frontend/src/api/client.ts`)
- API client → Assistant API: sends chat requests (evidence: `frontend/src/api/client.ts`)
- Dataset API → File ingestion: ingests uploads (evidence: `backend/app/api/routes_dataset.py`)
- Dataset API → Dataset session store: stores and retrieves (evidence: `backend/app/api/routes_dataset.py`)
- Dataset API → Dataset profiling: profiles datasets (evidence: `backend/app/api/routes_dataset.py`)
- Dataset API → Audit and safeguards: reads audit trail
- Pipeline API → Dataset session store: loads and saves (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline API → Pipeline orchestrator: runs pipeline (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline API → Dataset combining: combines datasets (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline API → Synthetic data: generates or augments (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline API → Column and step advisor: explains steps (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline API → Dataset profiling: profiles for suggestions (evidence: `backend/app/api/routes_pipeline.py`)
- Pipeline orchestrator → Cleaning and imputation: calls (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Pipeline orchestrator → Outlier handling: calls (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Pipeline orchestrator → Categorical encoding: calls (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Pipeline orchestrator → Feature engineering: calls (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Pipeline orchestrator → Feature scaling: calls (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Pipeline orchestrator → Audit and safeguards: records steps (evidence: `backend/app/core/pipeline/orchestrator.py`)
- Cleaning and imputation → Dataset profiling: inspects columns (evidence: `backend/app/core/pipeline/cleaning.py`)
- Feature engineering → Dataset profiling: classifies columns (evidence: `backend/app/core/pipeline/feature_engineering.py`)
- Dataset combining → Audit and safeguards: reports changes (evidence: `backend/app/core/pipeline/combine.py`)
- Synthetic data → Audit and safeguards: reports changes (evidence: `backend/app/core/pipeline/synthetic.py`)
- Assistant API → Dataset session store: loads dataset (evidence: `backend/app/api/routes_assistant.py`)
- Assistant API → Chat reasoning: handles questions (evidence: `backend/app/api/routes_assistant.py`)
- Chat reasoning → Algorithm recommender: gets recommendations (evidence: `backend/app/core/pipeline/chat_assistant.py`)
- Chat reasoning → Dataset profiling: examines data (evidence: `backend/app/core/pipeline/chat_assistant.py`)
- Algorithm recommender → Dataset profiling: uses profiles (evidence: `backend/app/core/pipeline/recommender.py`)
- Recommendations → API client: requests advice (evidence: `frontend/src/components/RecommendationPanel.tsx`)
- Chat assistant → API client: sends questions (evidence: `frontend/src/components/ChatAssistant.tsx`)
- Chat assistant → Browser speech services: uses speech (evidence: `frontend/src/components/ChatAssistant.tsx`)
