How sayash42/ai-business-analyst works
AI Business Analyst is a Streamlit application that turns business questions into validated SQL, database results, analytical findings, generated insights, and charts. The principal route is documented in the README and the main app’s references; SQL validation and execution ownership are visible in excerpts. The graph also preserves the separately implemented question analyzer and database-loading path. Some UI modules and prompt resources are present in the tree but their runtime wiring is not shown, so no connections to them are inferred.
Components 12
Application
- Streamlit app
Question To SQL
- Question analyzer
- SQL generator
- SQL validator
Data Access
- Query executor
- Business database
- Database loader
- CSV business data
Analysis And Reporting
- Analysis engine
- Insight generator
- Visualization engine
Other components
- Business user
Connections 11
- Business user → Streamlit app: asks question
README.md - Streamlit app → SQL generator: generates SQL
- Streamlit app → Query executor: runs queries
- Streamlit app → Analysis engine: analyzes results
- Streamlit app → Insight generator: generates insights
- Streamlit app → Visualization engine: creates charts
- SQL generator → SQL validator: validates SQL
- Query executor → SQL validator: validates SQL
- Query executor → Business database: queries
- Database loader → CSV business data: reads CSVs
- Database loader → Business database: loads tables