How yanhuo8024/data-tool works
data.tool is a local Flask data workbench. Users bring in files or external data, prepare and analyze it, then build models, run financial and causal analyses, and generate reports; AI assistants and knowledge retrieval provide an additional path through the same workspace. The graph preserves the README’s major capability areas. Several subsystem links are documented at product level rather than demonstrated in sampled implementation, so those edges cite the README.
Main entry points: routes API routes · ai_agent.py Tool-using agent · llm_client.py LLM provider client · agent_pipeline.py Agent pipeline
Components 21
Web workspace
- Web interface
static/static/js/core.js - API routes
routes
Data workflow
- Data acquisition
scraper.py - Data preparation
clean_advanced.py - Data lineage
data_lineage.py
Analytics and finance
- Statistical analysis
ai_analysis_engine.py - Chart insights
chart_insight_engine.py - Machine learning
ml_module.py - Quant and valuation
finance_quant.py - DID analysis
did.py - Company reports
company_analysis.py
AI and knowledge
- AI assistant
ai_assistant.py - Tool-using agent
ai_agent.py - Agent pipeline
agent_pipeline.py - Agent debate
debate_engine.py - Knowledge RAG
knowledge_rag.py - Natural-language SQL
nlq_engine.py
Shared platform
- LLM provider client
llm_client.py - Authentication
auth.py - Local data store
database.py
Other components
- Workbench user
Connections 26
- Workbench user → Web interface: uses
- Web interface → API routes: requests
- API routes → Authentication: guards
routes/ai_assistant_routes.py - API routes → Data acquisition: offers acquisition
- API routes → Data preparation: offers cleaning
- API routes → Statistical analysis: runs analysis
routes/ai_assistant_routes.py - API routes → Chart insights: requests insights
routes/data_routes.py - API routes → Machine learning: runs models
routes/ml_routes.py - API routes → Quant and valuation: serves finance
routes/finance_routes.py - API routes → DID analysis: serves DID
- API routes → Company reports: requests reports
routes/system_routes.py - API routes → AI assistant: serves assistant
routes/ai_assistant_routes.py - API routes → Tool-using agent: starts agent
routes/ai_assistant_routes.py - API routes → Agent pipeline: starts pipeline
routes/ai_assistant_routes.py - API routes → Natural-language SQL: serves NLQ
- API routes → Data lineage: uses lineage
routes/data_routes.py - Data preparation → Local data store: persists data
- Data lineage → Local data store: records provenance
- Statistical analysis → DID analysis: runs regressions
ai_analysis_engine.py - AI assistant → LLM provider client: requests completion
ai_assistant.py - Tool-using agent → LLM provider client: requests completion
ai_agent.py - Tool-using agent → Knowledge RAG: retrieves knowledge
ai_agent.py - Agent pipeline → LLM provider client: requests completion
agent_pipeline.py - Agent pipeline → Tool-using agent: runs agent stages
agent_pipeline.py - Agent debate → LLM provider client: calls roles
debate_engine.py - Company reports → Quant and valuation: uses valuation
company_analysis.py