crazycloud/data-analysis-llm-agent
A Data analysis agent powered by llm for querying database and visualizing results
Built on Chainlit with GPT-3.5-turbo and OpenAI function calling, it enables multi-turn conversations where the LLM autonomously decides when to query databases or generate visualizations, with automatic retry logic on database errors. The agent introspects database schema to generate SQL queries and handles errors through iterative refinement—feeding error messages back into conversation context so the LLM can self-correct up to a configurable maximum iterations. Integrates with SQLite and matplotlib for charting, though the README emphasizes key limitations: the LLM can generate syntactically valid but semantically incorrect queries, lacks awareness of actual data distributions, and may struggle with different numeric scales across columns.
No commits in the last 6 months.
Stars
83
Forks
18
Language
Python
License
Apache-2.0
Category
Last pushed
May 06, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/crazycloud/data-analysis-llm-agent"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
oracle-samples/oracle-aidp-samples
Oracle AI Data Platform Workbench Samples
Ifeanyi55/Gapminder-Dash
A dashboard that lets you query the Gapminder dataset using natural language. Powered by Gemini...
frankbria/narrative-modeling-app
An AI-driven platform for exploratory data analysis and model building. The Narrative Modeling...
FireBird-Technologies/Auto-Dash
A AI visualization tool that uses Plotly to build visualizations and Data apps
spandan114/LuminAI-Data-Analyst
LUMIN: Your data analysis companion that turns natural language questions into powerful insights...