Agent for natural language to data visualization
Top 91.2% on sourcepulse
This project provides an AI agent that translates natural language questions into data visualizations, targeting users who need to explore datasets without writing SQL. It leverages LangGraph to orchestrate a multi-step process, enabling users to upload SQLite or CSV files and receive visual insights from their data.
How It Works
The agent uses LangGraph to manage a sequence of nodes: parsing the user's question against the database schema, extracting unique noun values from relevant columns for query precision, generating and validating SQL, executing the query, and finally selecting an appropriate visualization type and formatting the results. This modular, state-driven approach allows for clear inspection of the agent's internal workings and facilitates experimentation.
Quick Start & Requirements
cd sqlite_server && yarn install && yarn start
), configure backend (backend_py/.env
with OPENAI_API_KEY
and DB_ENDPOINT_URL=http://host.docker.internal:3001
), start Studio with backend_py/my_agent
, configure frontend (frontend/.env
with LANGGRAPH_API_URL
), and start frontend (cd frontend && yarn install && yarn dev
).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
9 months ago
Inactive