랭킹으로 돌아가기

starpig1129/DATAGEN

Python

DATAGEN: AI-driven multi-agent research assistant automating hypothesis generation, data analysis, and report writing.

artificial-intelligencedata-analysisdata-analyticsdata-sciencelangchainlanggraphlarge-language-modellarge-language-modelsmultiagent-systemspythonai-data-analysisai
스타 성장
스타
1.8k
포크
239
주간 성장
이슈
0
5001k1.5k
25년 9월25년 12월26년 4월26년 7월
아티팩트PyPIpip install datagen
README

DATAGEN (Previously AI-Data-Analysis-MultiAgent)

DATAGEN Banner

About DATAGEN

DATAGEN is a powerful brand name that represents our vision of leveraging artificial intelligence technology for data generation and analysis. The name combines "DATA" and "GEN"(generation), perfectly embodying the core functionality of this project - automated data analysis and research through a multi-agent system.

System Architecture

Overview

DATAGEN is an advanced AI-powered data analysis and research platform that utilizes multiple specialized agents to streamline tasks such as data analysis, visualization, and report generation. Our platform leverages cutting-edge technologies including LangChain, OpenAI's GPT models, and LangGraph to handle complex research processes, integrating diverse AI architectures for optimal performance.

Key Features

Intelligent Analysis Core

  • Advanced Hypothesis Engine
    • AI-driven hypothesis generation and validation
    • Automated research direction optimization
    • Real-time hypothesis refinement
  • Enterprise Data Processing
    • Robust data cleaning and transformation
    • Scalable analysis pipelines
    • Automated quality assurance
  • Dynamic Visualization Suite
    • Interactive data visualization
    • Custom report generation
    • Automated insight extraction

Advanced Technical Architecture

  • Multi-Agent Intelligence
    • Specialized agents for diverse tasks
    • Intelligent task distribution
    • Real-time coordination and optimization
  • Smart Memory Management
    • State-of-the-art Note Taker agent
    • Efficient context retention system
    • Seamless workflow integration
  • Adaptive Processing Pipeline
    • Dynamic workflow adjustment
    • Automated resource optimization
    • Real-time performance monitoring

Why DATAGEN Stands Out

DATAGEN revolutionizes data analysis through its innovative multi-agent architecture and intelligent automation capabilities:

  1. Advanced Multi-Agent System

    • Specialized agents working in harmony
    • Intelligent task distribution and coordination
    • Real-time adaptation to complex analysis requirements
  2. Smart Context Management

    • Pioneering Note Taker agent for state tracking
    • Efficient memory utilization and context retention
    • Seamless integration across analysis phases
  3. Enterprise-Grade Performance

    • Robust and scalable architecture
    • Consistent and reliable outcomes
    • Production-ready implementation

System Requirements

  • Python 3.10 or higher

Installation

  1. Clone the repository:
git clone https://github.com/starpig1129/DATAGEN.git
  1. Create and activate a Conda virtual environment:
conda create -n datagen python=3.10
conda activate datagen
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables: Rename .env Example to .env and fill all the values
# Your data storage path (required)
# Also used by filesystem MCP server
WORKING_DIRECTORY = ./data/

# Configuration directory path (optional)
# All config files (agent_models.yaml, agents/, mcp.yaml) are relative to this directory.
# Default is config/
# Use 'config_local' for local development to avoid Git tracking (already in .gitignore)
CONFIG_DIRECTORY = config

# Conda environment name (required)
CONDA_ENV = datagen

# ChromeDriver executable path (required)
CHROMEDRIVER_PATH = ./chromedriver-linux64/chromedriver

# Firecrawl API key (optional)
# Note: If this key is missing, query capabilities may be reduced
FIRECRAWL_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# fastCRW (Firecrawl-compatible web scraper; single binary, self-host or cloud) (optional)
# API key for the managed cloud; optional for self-host
CRW_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Defaults to the managed cloud; override for self-host (e.g. http://localhost:3000)
CRW_API_URL = https://fastcrw.com/api

# OpenAI API key (optional)
OPENAI_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Anthropic API key (optional)
ANTHROPIC_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# Google API key (optional)
GOOGLE_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# LangChain API key (optional)
# Used for monitoring the processing
LANGCHAIN_TRACING_V2 = true
LANGCHAIN_PROJECT = "Multi-agent-DataAnalysis"
LANGCHAIN_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

# MCP (Model Context Protocol) Settings (optional)
# Tavily API key for web-search MCP server
TAVILY_API_KEY = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
# GitHub token for github MCP server
GITHUB_TOKEN = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Usage

Using Python Script

You can run the system using main.py:

  1. Place your data file (e.g., YourDataName.csv) in the data directory

  2. Modify the user_input variable in the main() function of main.py:

user_input = '''
datapath:YourDataName.csv
Use machine learning to perform data analysis and write complete graphical reports
'''

ˇ. Run the script:

python main.py

Main Components

  • hypothesis_agent: Generates research hypotheses
  • process_agent: Supervises the entire research process
  • visualization_agent: Creates data visualizations
  • code_agent: Writes data analysis code
  • searcher_agent: Conducts literature and web searches
  • report_agent: Writes research reports
  • quality_review_agent: Performs quality reviews
  • note_agent: Records the research process

Workflow

The system uses LangGraph to create a state graph that manages the entire research process. The workflow includes the following steps:

  1. Hypothesis generation
  2. Human choice (continue or regenerate hypothesis)
  3. Processing (including data analysis, visualization, search, and report writing)
  4. Quality review
  5. Revision as needed

Agent Model Configuration

Users can customize each agent's language model provider and model configuration by editing the agent_models.yaml file (located in your CONFIG_DIRECTORY). This allows for seamless environment switching (dev/prod) by simply pointing to a different configuration folder.

Here's an example structure of agent_models.yaml:

agents:
  hypothesis_agent:
    provider: openai
    model_config:
      model: gpt-5-nano
      temperature: 1.0
  note_agent:
    provider: google
    model_config:
      model: gemini-2.5-pro
      temperature: 1.0
  code_agent:
    provider: anthropic
    model_config:
      model: claude-haiku-4-5
      temperature: 1.0
  • provider: Specifies the language model provider to use (e.g., openai, google, anthropic, ollama, groq)
  • model_config: Contains model-specific configuration parameters
    • model: The specific model name to use
    • temperature: Controls the randomness of model output (range: 0.0-2.0)

Advanced Configuration System

DATAGEN implements a powerful Progressive Disclosure architecture for agent configuration, inspired by Claude Agent Skills.

Documentation

Guide Description
System Architecture High-level overview and core concepts
Quick Start Create a new agent in 5 minutes
Agent Config Reference AGENT.md and config.yaml full reference
Tool Configuration Available tools and custom tool creation
Skill Configuration Create and use reusable knowledge modules
MCP Configuration Model Context Protocol server setup

Key Features

  • Unified Config Root: All core settings are managed via the CONFIG_DIRECTORY environment variable.
  • Skill-Based Architecture: Reusable skills stored in skills/ (within the config root)
  • Dynamic Tool Loading: Tools configured via config.yaml using ToolFactory
  • Model Context Protocol (MCP): External server integration (Filesystem, GitHub, Web Search)
  • Progressive Disclosure: Three-level loading strategy for Context Window optimization

Notes

  • Ensure you have sufficient API credits, as the system will make multiple API calls.
  • The system may take some time to complete the entire research process, depending on the complexity of the task.
  • WARNING: The agent system may modify the data being analyzed. It is highly recommended to backup your data before using this system.
  • DATAGEN does not ship or train on project-provided training datasets. Users provide their own analysis data at runtime through WORKING_DIRECTORY.

Current Issues and Solutions

  1. NoteTaker Efficiency Improvement
  2. Overall Runtime Optimization
  3. Refiner needs to be better

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Star History

Star History Chart

Other Projects

Here are some of my other notable projects:

PheroPath

PheroPath is a filesystem-based stigmergy communication protocol that allows agents and humans to leave invisible "pheromones" (signals) on files. It enables communicating context, risks (DANGER), or status (TODO, SAFE) without modifying the file content itself, facilitating better multi-agent collaboration.

PigPig: Advanced Multi-modal LLM Discord Bot:

A powerful Discord bot based on multi-modal Large Language Models (LLM), designed to interact with users through natural language. It combines advanced AI capabilities with practical features, offering a rich experience for Discord communities.

관련 저장소
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

PythonPyPIOtheraiopenai
agpt.co
185.6k46.1k
f/prompts.chat

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

HTMLOtherchatgptai
prompts.chat
166.2k21.5k
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

Jupyter NotebookOthergptlarge-language-models
amzn.to/4fqvn0D
99.5k15.3k
hacksider/Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image

PythonPyPIGNU Affero General Public License v3.0ai-facedeepfake
deeplivecam.net
95.1k13.8k
thedotmack/claude-mem

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

JavaScriptnpmApache License 2.0aiai-agents
claude-mem.ai
88.2k7.7k
OpenHands/OpenHands

🙌 OpenHands: AI-Driven Development

PythonPyPIOtheragentartificial-intelligence
openhands.dev
81.6k10.4k
FlowiseAI/Flowise

Build AI Agents, Visually

TypeScriptnpmOtherartificial-intelligencechatgpt
flowiseai.com
54.8k24.7k
jingyaogong/minimind

🧠「大模型」2小时完全从0训练64M的小参数LLM!Train a 64M-parameter LLM from scratch in just 2h!

PythonPyPIApache License 2.0artificial-intelligencelarge-language-model
jingyaogong.github.io/minimind
53.7k7k
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

Jupyter NotebookMIT Licensedeep-learningartificial-intelligence
52.5k10.6k
All-Hands-AI/OpenHands

🙌 OpenHands: Code Less, Make More

PythonPyPIMIT Licenseagentartificial-intelligence
all-hands.dev
49.7k5.5k
Kong/kong

🦍 The API and AI Gateway

LuaApache License 2.0api-gatewaymicroservices
konghq.com/install/
43.8k5.2k
usestrix/strix

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

PythonPyPIApache License 2.0agentsartificial-intelligence
strix.ai
43.2k4.5k