DataAgent  by spring-ai-alibaba

AI-powered enterprise data analyst for deep insights and automated reporting

Created 4 months ago
340 stars

Top 81.2% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Spring AI Alibaba DataAgent provides an enterprise-grade AI data analyst solution, extending beyond Text-to-SQL. It empowers users with deep Python-based analysis, automated multi-dimensional report generation, and flexible integration with various LLMs and vector databases. The agent offers a controllable, scalable platform for deriving actionable data insights, suitable for private deployments and mainstream LLM services.

How It Works

The core architecture leverages StateGraph for robust Text-to-SQL conversion, handling complex queries and multi-turn dialogues. It integrates Python execution environments (Docker/Local) for advanced statistical analysis and machine learning tasks, automatically generating and running code. Analysis outcomes are compiled into HTML/Markdown reports featuring ECharts visualizations. A novel Human-in-the-loop mechanism allows plan intervention, while RAG integration with vector databases enhances SQL generation accuracy.

Quick Start & Requirements

  • Prerequisites: JDK 17+, MySQL 5.7+, Node.js 16+.
  • Installation: Import database schema (schema.sql), start backend (./mvnw spring-boot:run in data-agent-management), start frontend (npm install && npm run dev in data-agent-frontend).
  • Access: http://localhost:3000
  • Documentation: Refer to the "Quick Start" documentation for detailed setup.

Highlighted Details

  • StateGraph-powered Text-to-SQL with multi-table and multi-turn support.
  • Built-in Python executor for statistical analysis and ML predictions.
  • Automated HTML/Markdown report generation with ECharts.
  • Human-in-the-loop mechanism for plan intervention.
  • RAG integration with vector databases for improved SQL accuracy.
  • Dynamic multi-model (LLM/Embedding) scheduling.
  • MCP Server capability for NL2SQL and agent management.

Maintenance & Community

  • Community: DingTalk group: 154405001431 ("DataAgent用户1群").
  • Contribution: Guidelines available in the Developer documentation.

Licensing & Compatibility

  • License: Apache License 2.0.
  • Compatibility: Permissive license suitable for commercial use.

Limitations & Caveats

The provided README does not explicitly detail project limitations, known bugs, or alpha/beta status.

Health Check
Last Commit

2 days ago

Responsiveness

Inactive

Pull Requests (30d)
60
Issues (30d)
59
Star History
120 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.