How chittaranjanp51/data_analyzer_gpt works
AutoGen Data Analyzer GPT turns an uploaded CSV and plain-English question into a Markdown report and charts. Users enter through the Streamlit app or CLI; both call the analysis runner, which stages the input, configures an executor, and runs either a six-stage agent team or a quick analyst team. In the full workflow, agents clean data, engineer features, analyze results, visualize findings, and report them, passing work through files. The README documents stage handoffs and optional Docker/local execution; unsampled internals are represented only where documented.
Main entry points: pipeline.py Analysis runner · executor.py Code executor · prompts.py DataCleaner · team.py Team orchestration
Components 21
User interfaces
- Streamlit UI
app.py - CLI runner
main.py
Analysis runtime
- Analysis runner
data_analyzer/pipeline.py - Team orchestration
data_analyzer/team.py - Agent instructions
data_analyzer/prompts.py - Runtime settings
data_analyzer/config.py - Code executor
data_analyzer/executor.py - Cleaning toolkit
data_analyzer/helpers.py
Agent workflow
- DataLoader
data_analyzer/prompts.py - DataCleaner
data_analyzer/prompts.py - FeatureEngineer
data_analyzer/prompts.py - DataAnalyzer
data_analyzer/prompts.py - Visualizer
data_analyzer/prompts.py - ReportGenerator
data_analyzer/prompts.py - Quick analyst
data_analyzer/prompts.py
Run artifacts
- Input CSV
- Cleaned data
- Feature data
- Report and plots
Other components
- Analyst
- OpenAI model API
Connections 37
- Analyst → Streamlit UI: uploads and asks
README.md - Analyst → CLI runner: provides CSV and question
README.md - Streamlit UI → Analysis runner: calls analysis
app.py - CLI runner → Analysis runner: calls analysis
main.py - Analysis runner → Team orchestration: builds and runs
data_analyzer/pipeline.py - Analysis runner → Code executor: creates and prepares
data_analyzer/pipeline.py - Code executor → Runtime settings: reads settings
data_analyzer/executor.py - Analysis runner → Runtime settings: reads settings
data_analyzer/pipeline.py - Team orchestration → Agent instructions: uses instructions
data_analyzer/team.py - Team orchestration → DataLoader: dispatches stage
README.md - DataLoader → DataCleaner: passes data
README.md - DataCleaner → FeatureEngineer: passes data
README.md - FeatureEngineer → DataAnalyzer: passes data
README.md - DataAnalyzer → Visualizer: passes findings
README.md - Visualizer → ReportGenerator: passes charts
README.md - Team orchestration → Quick analyst: selects quick mode
README.md - Quick analyst → Code executor: submits code
README.md - DataLoader → Code executor: submits code
README.md - DataCleaner → Code executor: submits code
README.md - FeatureEngineer → Code executor: submits code
README.md - DataAnalyzer → Code executor: submits code
README.md - Visualizer → Code executor: submits code
README.md - Analysis runner → Input CSV: copies CSV
data_analyzer/pipeline.py - Analysis runner → Cleaning toolkit: copies toolkit
data_analyzer/pipeline.py - DataCleaner → Cleaning toolkit: uses cleaning functions
README.md - DataLoader → Input CSV: reads CSV
README.md - DataCleaner → Cleaned data: writes cleaned data
README.md - FeatureEngineer → Cleaned data: reads cleaned data
README.md - FeatureEngineer → Feature data: writes features
README.md - DataAnalyzer → Feature data: reads features
README.md - Visualizer → Feature data: reads features
README.md - Visualizer → Report and plots: writes charts
README.md - ReportGenerator → Report and plots: writes report
README.md - Analysis runner → Report and plots: collects report and plots
data_analyzer/pipeline.py - Analysis runner → OpenAI model API: uses model client
- Analysis runner → Streamlit UI: streams messages and result
app.py - Analysis runner → CLI runner: yields messages and result
main.py