Problem
Exploratory data analysis (EDA) takes an analyst hours: writing code, choosing methods, reading charts and drafting a report. Managers who need a quick check of a hypothesis have to wait for that work. When an LLM picks analysis steps on its own, the actions turn chaotic and illogical.
Example from the article: four graduates of the MTS Data Analyst School built InsightFinder. A user uploads a CSV with a binary target (for example churn / no churn) and asks "Which factors influence customer churn?". The system returns a markdown report with conclusions and charts.
Solution in brief
Three LLM agents split the work: Analyst plans the next step, Executor runs one of 9 fixed statistical tools, Summarizer interprets the result and updates the report. A central orchestrator runs a loop that can take 20 steps. Every tool returns the same dictionary, and every LLM answer is validated against a schema, which keeps behavior predictable.
Questions this case answers
- How to automate a repetitive multi-step analysis of a tabular dataset with LLM agents so that the analysis stays on a sensible path and its output is machine-checkable
- How to automate exploratory data analysis of a CSV file with an LLM agent system?
- How to keep an LLM agent from choosing tools chaotically in a multi-step analysis?
- How to make agents return predictable, validated output instead of free text?
Tools and methods
- LangChain — agent framework: prompt templates, output parsers
- Pydantic and JsonOutputParser — schemas that force the Analyst to return a structured plan
- pandas, scikit-learn, SciPy — the statistics inside the 9 tools
- matplotlib, seaborn — charts
- Gradio, Docker — web interface and packaging
- OpenAI API with a Qwen model — the LLM behind the agents
Google or a one-time email code. No password.