Skip to content

badhope/DATA-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

DATA-AI CLI

A Production-Ready CLI AI Agent Framework with Advanced Capabilities

Python 3.10+ License: MIT Code style: ruff Tests Documentation

English | δΈ­ζ–‡


πŸš€ Quick Start

# Install from PyPI
pip install data-ai

# Or install from source
git clone https://github.com/badhope/DATA-AI.git
cd DATA-AI
pip install -e ".[all]"

# Run the CLI
data-ai

✨ Core Features

πŸ€– Multi-Model Support

  • Global Models: OpenAI GPT-4, Anthropic Claude, Google Gemini, Azure OpenAI, AWS Bedrock
  • Chinese Models: DeepSeek, Qwen, Zhipu AI, Baichuan, Moonshot, SiliconFlow
  • Local Models: Ollama, vLLM, LM Studio

🧠 Advanced Agent System

Component Description
Intent Recognition 24+ intent types with intelligent routing
Sequential Thinking Multi-step reasoning with hypothesis generation
Skill System Auto-extraction, progressive disclosure (L0/L1/L2)
Code Knowledge Graph Multi-language parsing, dependency tracking
Closed-Loop Learning Execute β†’ Evaluate β†’ Extract β†’ Retrieve

πŸ› οΈ Tool Ecosystem (60+ Tools)

Category Tools
File Operations Read, write, search, replace, batch operations
Code Execution Python sandbox, Bash, Node.js
Browser Navigation, click, screenshot, form filling
Search DuckDuckGo, multi-engine aggregation
Documents PDF, Word, Excel, PPT, Markdown, HTML
Data Analysis Pandas, Matplotlib, Plotly

πŸ“š RAG System

  • Document Loaders: PDF, Word, Markdown, HTML, TXT
  • Text Splitting: Recursive character, token-based
  • Vector Stores: In-memory, FAISS, ChromaDB, LanceDB
  • Retrieval: Similarity search, MMR diversity

πŸ’Ύ Memory System

  • Session Memory: Multi-session management
  • Semantic Memory: Vector storage, similarity search
  • Self-Learning: Pattern recognition, preference learning
  • Closed-Loop: Continuous improvement from interactions

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     DATA-AI CLI                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚   Intent    β”‚  β”‚  Reasoning  β”‚  β”‚    Skill    β”‚         β”‚
β”‚  β”‚ Recognition β”‚  β”‚   Engine    β”‚  β”‚   System    β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚   Code KG   β”‚  β”‚   Memory    β”‚  β”‚   Tool      β”‚         β”‚
β”‚  β”‚   (CKG)     β”‚  β”‚ Closed-Loop β”‚  β”‚Orchestrator β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚  Streaming  β”‚  β”‚   Polish    β”‚  β”‚   Sandbox   β”‚         β”‚
β”‚  β”‚   Output    β”‚  β”‚   Engine    β”‚  β”‚   Security  β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚              Multi-Agent Collaboration Layer                 β”‚
β”‚     (Coordinator + Communication + Consensus + Workflow)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“– Documentation


🎯 Usage Examples

Basic Usage

from data_ai import create_client

# Create a client
client = create_client()

# Execute a task
response = client.execute("Analyze the sales data in data.csv")

Advanced Usage with Intent Recognition

from data_ai.core import IntentRecognizer, IntentRouter

# Recognize intent
recognizer = IntentRecognizer()
intent = recognizer.recognize("Search for Python tutorials")

# Route to appropriate handler
router = IntentRouter()
result = router.route(intent)

Multi-Agent Collaboration

from data_ai.core.agent import CollaborationSession, AgentRole

# Create collaboration session
session = CollaborationSession()
session.register_agent("coder", AgentRole.WORKER)
session.register_agent("reviewer", AgentRole.REVIEWER)

# Execute collaborative task
result = session.execute("Implement a sorting algorithm")

πŸ›‘οΈ Security

  • Sandboxed Execution: Isolated environments for code execution
  • Permission System: Fine-grained access control
  • Resource Limits: CPU, memory, time constraints
  • Policy Management: Strict, moderate, permissive presets

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.


πŸ“„ License

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


πŸ™ Acknowledgments


πŸ“ž Support


⭐ Star us on GitHub if you find this project helpful!

About

A comprehensive AI assistant framework built on LangChain ecosystem with advanced agent orchestration, RAG capabilities, multi-modal document processing, and office automation

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages