Merged
feature_1130 #61
FoucktttAdd on 13 hours ago
feature_1130 #61
Merged
Total: 5 files changed+68-27
| @@ -64,19 +64,19 @@ From natural language straight to trustworthy analytical conclusions, audited en | |||
| 64 | 64 | ||
| 65 | ## Architecture Overview | 65 | ## Architecture Overview |
| 66 | 66 | ||
| 67 | -``` | 67 | + |
| 68 | -┌─────────────────────────────────────────────────────┐ | 68 | + |
| 69 | -│ DataSwarm Workbench (Web) CLI (dwcli) │ | 69 | +DataSwarm is built primarily on the openJiuwen JiuwenSwarm foundation and can connect to different LLMs and enterprise data infrastructure. The system consists of the following components: |
| 70 | -├─────────────────────────────────────────────────────┤ | 70 | + |
| 71 | -│ DataSwarm Capability Domain (this repository) │ | 71 | +**DataSwarm Architecture** |
| 72 | -│ Data Onboarding (datasource/metadata/knowledge) │ | 72 | + |
| 73 | -│ Data Analysis (dw-analysis chain/metric-v2/ │ | 73 | +- **Application layer**: two entry points — the user workbench (sessions, uploads, artifact management) and the admin console (workspaces, resources, knowledge, review, and policies) |
| 74 | -│ glossary/semantic) │ | 74 | +- **Access layer**: unified channel, account, authentication, and routing capabilities |
| 75 | -├─────────────────────────────────────────────────────┤ | 75 | +- **Data & Knowledge Services**: full knowledge lifecycle — ingestion, storage, processing, retrieval, and management |
| 76 | -│ JiuwenSwarm Foundation (multi-agent collaboration/ │ | 76 | +- **Intelligent Collaboration Runtime**: data capabilities (development, analysis, governance, operations, data science), kernel extensions (context, traces, sub-agents, semantic compilation), and built-in safeguards (input protection, tool admission, execution authorization, sandboxing, auditing) |
| 77 | -│ channels/tools/memory) │ | 77 | +- **JiuwenSwarm execution foundation**: Harness / Swarm / RSI engines and Agent Memory |
| 78 | -└─────────────────────────────────────────────────────┘ | 78 | +- **Integration layer**: metadata query and data access via open protocols such as MCP and OpenLineage |
| 79 | -``` | 79 | +- **Enterprise infrastructure**: integrates with the enterprise's existing lakehouse computing, scheduling, and governance facilities |
| 80 | 80 | ||
| 81 | Tech stack: Python ≥ 3.11 · FastAPI · React + TypeScript + Vite · sqlglot · SQLite / MySQL dual-dialect metadata database. | 81 | Tech stack: Python ≥ 3.11 · FastAPI · React + TypeScript + Vite · sqlglot · SQLite / MySQL dual-dialect metadata database. |
| 82 | 82 | ||
| @@ -102,6 +102,8 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for the contribution and verification f | |||
| 102 | 102 | ||
| 103 | ## Quick Start | 103 | ## Quick Start |
| 104 | 104 | ||
| 105 | + | ||
| 106 | + | ||
| 105 | > Installing from a released whl package instead? See [docs/en/DataSwarmInstallGuideWHL.md](./docs/en/DataSwarmInstallGuideWHL.md). | 107 | > Installing from a released whl package instead? See [docs/en/DataSwarmInstallGuideWHL.md](./docs/en/DataSwarmInstallGuideWHL.md). |
| 106 | 108 | ||
| 107 | ### Prerequisites | 109 | ### Prerequisites |
| @@ -220,9 +222,27 @@ See [TESTING.md](./TESTING.md) for details. | |||
| 220 | ## Contributing | 222 | ## Contributing |
| 221 | 223 | ||
| 222 | Restore the project (clone the base tag + apply patch) → code and verify on the | 224 | Restore the project (clone the base tag + apply patch) → code and verify on the |
| 223 | -restored project → submit contributions as patches (see | 225 | +restored project → submit contributions as patches (state motivation and |
| 224 | -[CONTRIBUTING.md](./CONTRIBUTING.md) for the flow). Commit messages follow | 226 | +verification in the issue; see [CONTRIBUTING.md](./CONTRIBUTING.md) for the |
| 225 | -Conventional Commits, written in Chinese. | 227 | +flow). Commit messages follow Conventional Commits, written in Chinese. |
| 228 | + | ||
| 229 | +All forms of contribution are welcome: reporting issues, suggesting features, | ||
| 230 | +improving documentation, submitting code, and sharing experience. | ||
| 231 | + | ||
| 232 | +### Contribution Guidelines | ||
| 233 | + | ||
| 234 | +- Keep each patch focused on a single logical change — small and precise, easy to review and merge | ||
| 235 | +- Docs-only changes (README, examples, docstrings, etc.) are equally welcome and usually reviewed faster | ||
| 236 | +- Code changes must come with new or updated tests, and local tests must pass before submitting | ||
| 237 | +- Follow the existing code style of the repository; run the formatter the repo provides (e.g. `ruff`) before submitting | ||
| 238 | +- Never commit secrets, credentials, or any personal or sensitive information | ||
| 239 | + | ||
| 240 | +## Community | ||
| 241 | + | ||
| 242 | +- Project homepage: https://gitcode.com/openJiuwen/DataSwarm | ||
| 243 | +- Official website: https://www.openjiuwen.com | ||
| 244 | +- Contact email: [dataswarm_email](mailto:dataswarm@jyaidgrjt.wecom.work) | ||
| 245 | +- Feedback: [Issues](https://gitcode.com/openJiuwen/DataSwarm/issues) | ||
| 226 | 246 | ||
| 227 | ## Acknowledgements | 247 | ## Acknowledgements |
| 228 | 248 | ||
| @@ -63,17 +63,19 @@ | |||
| 63 | 63 | ||
| 64 | ## 架构总览 | 64 | ## 架构总览 |
| 65 | 65 | ||
| 66 | -``` | 66 | + |
| 67 | -┌─────────────────────────────────────────────────────┐ | 67 | + |
| 68 | -│ DataSwarm 工作台(Web) CLI(dwcli) │ | 68 | +DataSwarm 主要基于 openJiuwen JiuwenSwarm 基座构建,可对接不同大模型及企业数据设施。系统主要由以下部分组成: |
| 69 | -├─────────────────────────────────────────────────────┤ | 69 | + |
| 70 | -│ DataSwarm 能力域(本仓库) │ | 70 | +**DataSwarm 架构** |
| 71 | -│ 数据接入(datasource/元数据/知识派生) │ | 71 | + |
| 72 | -│ 数据分析(dw-analysis 链路/指标 metric-v2/术语/语义) │ | 72 | +- **应用层**:提供用户工作台(会话、上传、产物管理)与管理控制台(空间、资源、知识、审核、策略)两类入口 |
| 73 | -├─────────────────────────────────────────────────────┤ | 73 | +- **接入层**:统一提供渠道、账号、鉴权、路由等接入能力 |
| 74 | -│ JiuwenSwarm 基座(多智能体协作 / 渠道 / 工具 / 记忆)│ | 74 | +- **数据与知识服务**:提供知识接入、存储、加工、检索、管理等知识全生命周期能力 |
| 75 | -└─────────────────────────────────────────────────────┘ | 75 | +- **智能协作运行时**:提供数据开发、分析、治理、运维、科学等数据能力,以及上下文、轨迹、SubAgent、语义编译等内核扩展,并内嵌输入防护、工具准入、执行授权、沙箱、审计等安全防护 |
| 76 | -``` | 76 | +- **JiuwenSwarm 执行底座**:提供 Harness / Swarm / RSI 引擎与 Agent Memory 等执行基础 |
| 77 | +- **集成适配层**:通过 MCP、OpenLineage 等开放协议提供元数据查询与数据访问能力 | ||
| 78 | +- **企业基础设施**:接入企业既有的湖仓计算、调度与治理设施 | ||
| 77 | 79 | ||
| 78 | 技术栈:Python ≥ 3.11 · FastAPI · React + TypeScript + Vite · sqlglot · SQLite / MySQL 双方言元数据库。 | 80 | 技术栈:Python ≥ 3.11 · FastAPI · React + TypeScript + Vite · sqlglot · SQLite / MySQL 双方言元数据库。 |
| 79 | 81 | ||
| @@ -97,6 +99,8 @@ python scripts/dataswarm/assemble_build.py # 还原:clone 基座 tag + app | |||
| 97 | 99 | ||
| 98 | ## 快速开始 | 100 | ## 快速开始 |
| 99 | 101 | ||
| 102 | + | ||
| 103 | + | ||
| 100 | > 使用已发布 whl 包安装?见 [docs/zh/DataSwarmWHL安装指南.md](./docs/zh/DataSwarmWHL安装指南.md)。 | 104 | > 使用已发布 whl 包安装?见 [docs/zh/DataSwarmWHL安装指南.md](./docs/zh/DataSwarmWHL安装指南.md)。 |
| 101 | 105 | ||
| 102 | ### 前置要求 | 106 | ### 前置要求 |
| @@ -212,6 +216,23 @@ cd build | |||
| 212 | (issue 说明动机与验证,详见 [CONTRIBUTING.md](./CONTRIBUTING.md))。提交信息使用中文 | 216 | (issue 说明动机与验证,详见 [CONTRIBUTING.md](./CONTRIBUTING.md))。提交信息使用中文 |
| 213 | Conventional Commits。 | 217 | Conventional Commits。 |
| 214 | 218 | ||
| 219 | +欢迎一切形式的贡献:报告问题、提出功能建议、改进文档、提交代码、分享使用经验。 | ||
| 220 | + | ||
| 221 | +### 贡献规范 | ||
| 222 | + | ||
| 223 | +- 单个补丁聚焦一处逻辑变更,保持小而精,便于评审与合入 | ||
| 224 | +- 纯文档类改动(README、示例、docstring 等)同样受欢迎,评审周期通常更短 | ||
| 225 | +- 涉及代码的改动须同步新增或更新对应测试,并在提交前确认本地测试通过 | ||
| 226 | +- 遵循仓库既有代码风格,提交前请运行仓库提供的格式化工具(如 `ruff`) | ||
| 227 | +- 严禁提交密钥、凭证及其他个人敏感信息 | ||
| 228 | + | ||
| 229 | +## 社区 | ||
| 230 | + | ||
| 231 | +- 项目主页:https://gitcode.com/openJiuwen/DataSwarm | ||
| 232 | +- 官方网站:https://www.openjiuwen.com | ||
| 233 | +- 联系邮箱:[dataswarm_email](mailto:dataswarm@jyaidgrjt.wecom.work) | ||
| 234 | +- 问题反馈:[Issues](https://gitcode.com/openJiuwen/DataSwarm/issues) | ||
| 235 | + | ||
| 215 | ## 致谢 | 236 | ## 致谢 |
| 216 | 237 | ||
| 217 | DataSwarm 构建于 [JiuwenSwarm](https://gitcode.com/openJiuwen/jiuwenswarm) | 238 | DataSwarm 构建于 [JiuwenSwarm](https://gitcode.com/openJiuwen/jiuwenswarm) |