How tanisha-s0212/ai-eda-assistant works
Intelligent Data Assistant is a guided data-science workspace: users upload a dataset, inspect and clean it, explore and forecast it, train models, make predictions, and generate a report. The Next.js frontend manages the workflow and calls a FastAPI backend, which owns dataset processing and analysis. The README documents PostgreSQL activity tracking and persisted trained models. Backend internals are represented by distinct documented capabilities, but the large backend module was only sampled in excerpts, so implementation-level links between those capabilities are not inferred.
Main entry points: page.tsx Guided workflow · main.py FastAPI service · ml-tab.tsx ML assistant · api.ts API client
Components 21
Workflow UI
- Guided workflow
frontend/src/app/page.tsx - Dataset upload
frontend/src/components/tabs/upload-tab.tsx - Data understanding
frontend/src/components/tabs/understanding-tab.tsx - Exploratory analysis
frontend/src/components/tabs/eda-tab.tsx - Data cleaning
frontend/src/components/tabs/cleaning-tab.tsx - Time-series forecast
frontend/src/components/tabs/time-series-forecast-tab.tsx - ML forecast
frontend/src/components/tabs/ml-forecast-tab.tsx - ML assistant
frontend/src/components/tabs/ml-tab.tsx - Prediction
frontend/src/components/tabs/prediction-tab.tsx - Report generation
frontend/src/components/tabs/report-tab.tsx - Loss forecast
frontend/src/components/tabs/loss-forecast-tab.tsx - Profit forecast
frontend/src/components/tabs/profit-forecast-tab.tsx
API Layer
- API client
frontend/src/lib/api.ts - Next API proxy
frontend/src/app/api/[...path]/route.ts
Data Analysis
- FastAPI service
backend/main.py - Dtype inference
backend/dtype_inference.py
State and Storage
- Dataset cache
backend/main.py - Workflow activity
backend/main.py - Persisted models
backend/main.py
Other components
- Workspace user
- PostgreSQL
Connections 20
- Workspace user → Guided workflow: uses
README.md - Guided workflow → Dataset upload: selects
frontend/src/app/page.tsx - Guided workflow → Data understanding: selects
frontend/src/app/page.tsx - Guided workflow → Exploratory analysis: selects
frontend/src/app/page.tsx - Guided workflow → Data cleaning: selects
frontend/src/app/page.tsx - Guided workflow → Time-series forecast: selects
frontend/src/app/page.tsx - Guided workflow → ML forecast: selects
frontend/src/app/page.tsx - Guided workflow → ML assistant: selects
frontend/src/app/page.tsx - Guided workflow → Prediction: selects
README.md - Guided workflow → Report generation: selects
README.md - Guided workflow → Loss forecast: includes
- Guided workflow → Profit forecast: includes
- ML assistant → API client: requests training
frontend/src/components/tabs/ml-tab.tsx - API client → Next API proxy: forwards API requests
README.md - Next API proxy → FastAPI service: proxies requests
frontend/src/app/api/[...path]/route.ts - FastAPI service → Dtype inference: uses inference
backend/main.py - FastAPI service → Dataset cache: caches datasets
backend/main.py - FastAPI service → Workflow activity: records actions
README.md - Workflow activity → PostgreSQL: persists activity
README.md - FastAPI service → Persisted models: persists trained models
README.md