{"id":13526377,"url":"https://github.com/codefuse-ai/codefuse-chatbot","last_synced_at":"2025-05-15T09:06:07.503Z","repository":{"id":212638004,"uuid":"697550206","full_name":"codefuse-ai/codefuse-chatbot","owner":"codefuse-ai","description":"An intelligent assistant serving the entire software development lifecycle, powered by a Multi-Agent Framework, working with DevOps Toolkits, Code\u0026Doc Repo RAG,  etc.","archived":false,"fork":false,"pushed_at":"2024-07-01T09:16:47.000Z","size":27625,"stargazers_count":1175,"open_issues_count":5,"forks_count":124,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-14T18:54:40.661Z","etag":null,"topics":["aiops","chatbot","code-repo-analysis","code-repo-generation","devops","gpt","knowledge-graph","langchain","multi-agent","rag","tool-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codefuse-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-28T01:06:40.000Z","updated_at":"2025-05-13T01:22:34.000Z","dependencies_parsed_at":"2024-11-19T23:33:48.490Z","dependency_job_id":null,"html_url":"https://github.com/codefuse-ai/codefuse-chatbot","commit_stats":{"total_commits":58,"total_committers":10,"mean_commits":5.8,"dds":0.5,"last_synced_commit":"d6932ecfc855035fdcb25140b80e339e6137652c"},"previous_names":["codefuse-ai/codefuse-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefuse-ai%2Fcodefuse-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefuse-ai%2Fcodefuse-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefuse-ai%2Fcodefuse-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codefuse-ai%2Fcodefuse-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codefuse-ai","download_url":"https://codeload.github.com/codefuse-ai/codefuse-chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310513,"owners_count":22049468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiops","chatbot","code-repo-analysis","code-repo-generation","devops","gpt","knowledge-graph","langchain","multi-agent","rag","tool-learning"],"created_at":"2024-08-01T06:01:28.772Z","updated_at":"2025-05-15T09:06:07.475Z","avatar_url":"https://github.com/codefuse-ai.png","language":"Python","readme":"\u003cp align=\"left\"\u003e\n    \u003ca\u003e中文\u003c/a\u003e\u0026nbsp ｜ \u0026nbsp\u003ca href=\"README_en.md\"\u003eEnglish\u0026nbsp \u003c/a\u003e\n\u003c/p\u003e\n\n# \u003cp align=\"center\"\u003eCodeFuse-ChatBot: Development by Private Knowledge Augmentation\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"README.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/文档-中文版-yellow.svg\" alt=\"ZH doc\"\u003e\u003c/a\u003e\n    \u003ca href=\"README_en.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/document-English-yellow.svg\" alt=\"EN doc\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/codefuse-ai/codefuse-chatbot\" alt=\"License\"\u003e\n    \u003ca href=\"https://github.com/codefuse-ai/codefuse-chatbot/issues\"\u003e\n      \u003cimg alt=\"Open Issues\" src=\"https://img.shields.io/github/issues-raw/codefuse-ai/codefuse-chatbot\" /\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\u003cbr\u003e\n\u003c/p\u003e\n\nCodeFuse-ChatBot是由蚂蚁CodeFuse团队开发的开源AI智能助手，致力于简化和优化软件开发生命周期中的各个环节。该项目结合了Multi-Agent的协同调度机制，并集成了丰富的工具库、代码库、知识库和沙盒环境，使得LLM模型能够在DevOps领域内有效执行和处理复杂任务。\n\n\n## 🔔 更新\n- [2024.01.29] 开放可配置化的multi-agent框架：codefuse-muAgent，详情见[使用说明](https://codefuse-ai.github.io/zh-CN/docs/api-docs/MuAgent/overview/multi-agent)\n- [2023.12.26] 基于FastChat接入开源私有化大模型和大模型接口的能力开放\n- [2023.12.14] 量子位公众号专题报道：[文章链接](https://mp.weixin.qq.com/s/MuPfayYTk9ZW6lcqgMpqKA)\n- [2023.12.01] Multi-Agent和代码库检索功能开放\n- [2023.11.15] 增加基于本地代码库的问答增强模式\n- [2023.09.15] 本地/隔离环境的沙盒功能开放，基于爬虫实现指定url知识检索\n\n## 📜 目录\n- [🤝 介绍](#-介绍)\n- [🎥 演示视频](#-演示视频)\n- [🧭 技术路线](#-技术路线)\n- [🌐 模型接入](#-模型接入)\n- [🚀 快速使用](#-快速使用)\n- [🤗 致谢](#-致谢)\n- [🗂 其他](#-其他)\n  - [📱 联系我们](#-联系我们)\n  - [✨ 点赞历史](#-点赞历史)\n\n## 🤝 介绍\n\n💡 本项目旨在通过检索增强生成（Retrieval Augmented Generation，RAG）、工具学习（Tool Learning）和沙盒环境来构建软件开发全生命周期的AI智能助手，涵盖设计、编码、测试、部署和运维等阶段。 逐渐从各处资料查询、独立分散平台操作的传统开发运维模式转变到大模型问答的智能化开发运维模式，改变人们的开发运维习惯。\n\n本项目核心差异技术、功能点：\n- **🧠 智能调度核心：** 构建了体系链路完善的调度核心，支持多模式一键配置，简化操作流程。 [使用说明](https://codefuse-ai.github.io/zh-CN/docs/api-docs/MuAgent/overview/multi-agent)\n- **💻 代码整库分析：** 实现了仓库级的代码深入理解，以及项目文件级的代码编写与生成，提升了开发效率。\n- **📄 文档分析增强：** 融合了文档知识库与知识图谱，通过检索和推理增强，为文档分析提供了更深层次的支持。\n- **🔧 垂类专属知识：** 为DevOps领域定制的专属知识库，支持垂类知识库的自助一键构建，便捷实用。\n- **🤖 垂类模型兼容：** 针对DevOps领域的小型模型，保证了与DevOps相关平台的兼容性，促进了技术生态的整合。\n\n🌍 依托于开源的 LLM 与 Embedding 模型，本项目可实现基于开源模型的离线私有部署。此外，本项目也支持 OpenAI API 的调用。[接入Demo](https://codefuse-ai.github.io/zh-CN/docs/developer-docs/CodeFuse-ChatBot/master/fastchat)\n\n👥 核心研发团队长期专注于 AIOps + NLP 领域的研究。我们发起了 Codefuse-ai 项目，希望大家广泛贡献高质量的开发和运维文档，共同完善这套解决方案，以实现“让天下没有难做的开发”的目标。\n\n\u003cdiv align=center\u003e\n  \u003cimg src=\"sources/docs_imgs/objective_v4.png\" alt=\"图片\" width=\"600\" height=\"333\"\u003e\n\u003c/div\u003e\n\n\n## 🎥 演示视频\n\n为了帮助您更直观地了解 Codefuse-ChatBot 的功能和使用方法，我们录制了一系列演示视频。您可以通过观看这些视频，快速了解本项目的主要特性和操作流程。\n\n\n- 知识库导入和问答：[演示视频](https://www.youtube.com/watch?v=UGJdTGaVnNY\u0026t=2s\u0026ab_channel=HaotianZhu)\n- 本地代码库导入和问答：[演示视频](https://www.youtube.com/watch?v=ex5sbwGs3Kg)\n\n\n## 🧭 技术路线\n\u003cdiv align=center\u003e\n  \u003cimg src=\"sources/docs_imgs/devops-chatbot-module-v2.png\" alt=\"图片\" width=\"600\" height=\"503\"\u003e\n\u003c/div\u003e\n\n- 🧠 **Multi-Agent Schedule Core:** 多智能体调度核心，简易配置即可打造交互式智能体。\n- 🕷️ **Multi Source Web Crawl:** 多源网络爬虫，提供对指定 URL 的爬取功能，以搜集所需信息。\n- 🗂️ **Data Processor:** 数据处理器，轻松完成文档载入、数据清洗，及文本切分，整合不同来源的数据。\n- 🔤 **Text Embedding \u0026 Index:**：文本嵌入索引，用户可以轻松上传文件进行文档检索，优化文档分析过程。\n- 🗄️ **Vector Database \u0026 Graph Database:** 向量与图数据库，提供灵活强大的数据管理解决方案。\n- 📝 **Prompt Control \u0026 Management:**：Prompt 控制与管理，精确定义智能体的上下文环境。\n- 🚧 **SandBox:**：沙盒环境，安全地执行代码编译和动作。\n- 💬 **LLM:**：智能体大脑，支持多种开源模型和 LLM 接口。\n- 🛠️ **API Management:：** API 管理工具，实现对开源组件和运维平台的快速集成。\n\n具体实现明细见：[技术路线明细](https://codefuse-ai.github.io/zh-CN/docs/developer-docs/CodeFuse-ChatBot/master/roadmap)\n项目计划跟进见：[Projects](https://github.com/orgs/codefuse-ai/projects/1)\n\n\n## 🌐 模型接入\n\n如果您需要集成特定的模型，请通过提交issue来告知我们您的需求。\n\n|      model_name    | model_size | gpu_memory | quantize | HFhub | ModelScope |\n| ------------------ | ---------- | ---------- | -------- | ----- | ---------- |\n|        chatgpt     |    -       |    -       |     -    | -     | -          |\n| codellama-34b-int4 |     34b    |    20g     |    int4  | coming soon| [link](https://modelscope.cn/models/codefuse-ai/CodeFuse-CodeLlama-34B-4bits/summary) |\n\n\n\n## 🚀 快速使用\n### muagent-py\n完整文档见：[CodeFuse-muAgent](https://codefuse-ai.github.io/zh-CN/docs/api-docs/MuAgent/overview/multi-agent)\n```\npip install codefuse-muagent\n```\n\n### 使用ChatBot\n请自行安装 nvidia 驱动程序，本项目已在 Python 3.9.18，CUDA 11.7 环境下，Windows、X86 架构的 macOS 系统中完成测试。\n\nDocker安装、私有化LLM接入及相关启动问题见：[快速使用明细](https://codefuse-ai.github.io/zh-CN/docs/developer-docs/CodeFuse-ChatBot/master/quickstart)\n\n**对于 Apple Silicon（苹果M系列芯片），您可能需要首先通过brew install qpdf。**\n\n1、python 环境准备\n\n- 推荐采用 conda 对 python 环境进行管理（可选）\n```bash\n# 准备 conda 环境\nconda create --name devopsgpt python=3.9\nconda activate devopsgpt\n```\n\n- 安装相关依赖\n```bash\ncd codefuse-chatbot\n# python=3.9，notebook用最新即可，python=3.8用notebook=6.5.6\npip install -r requirements.txt\n```\n\n2、启动服务\n```bash\n# 完成server_config.py配置后，可一键启动\ncd examples\nbash start.sh\n# 开始在页面进行相关配置，然后打开`启动对话服务`即可\n```\n\u003cdiv align=center\u003e\n  \u003cimg src=\"sources/docs_imgs/webui_config.png\" alt=\"图片\"\u003e\n\u003c/div\u003e\n\n\n或者通过`start.py`进行启动[老版启动方式](https://codefuse-ai.github.io/zh-CN/docs/developer-docs/CodeFuse-ChatBot/master/start-detail)\n更多LLM接入方法见[更多细节...](https://codefuse-ai.github.io/zh-CN/docs/developer-docs/CodeFuse-ChatBot/master/fastchat)\n\u003cbr\u003e\n\n\n## 贡献指南\n非常感谢您对 Codefuse 项目感兴趣，我们非常欢迎您对 Codefuse 项目的各种建议、意见（包括批评）、评论和贡献。\n\n您对 Codefuse 的各种建议、意见、评论可以直接通过 GitHub 的 Issues 提出。\n\n参与 Codefuse 项目并为其作出贡献的方法有很多：代码实现、测试编写、流程工具改进、文档完善等等。任何贡献我们都会非常欢迎，并将您加入贡献者列表。详见[Contribution Guide...](https://codefuse-ai.github.io/zh-CN/contribution/contribution)\n\n## 🤗 致谢\n\n本项目基于[langchain-chatchat](https://github.com/chatchat-space/Langchain-Chatchat)和[codebox-api](https://github.com/shroominic/codebox-api)，在此深深感谢他们的开源贡献！\n\n## 🗂 其他\n\n### 📱 联系我们\n\u003cdiv align=center\u003e\n  \u003cimg src=\"sources/docs_imgs/wechat.png\" alt=\"图片\", width=\"360\"\u003e\n\u003c/div\u003e\n\n### ✨ 点赞历史\n[![Star History Chart](https://api.star-history.com/svg?repos=codefuse-ai/codefuse-chatbot\u0026type=Date)](https://star-history.com/#codefuse-ai/codefuse-chatbot\u0026Date)\n","funding_links":[],"categories":["[CodeFuse-ChatBot](https://github.com/codefuse-ai/codefuse-chatbot)","📎 附录","A01_文本生成_文本对话","🗂 Miscellaneous","Python","Runtime","Open-source Projects"],"sub_categories":["Links","🤝 友情链接","大语言对话模型及数据","🤝 Friendship Links","Code Assistant"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefuse-ai%2Fcodefuse-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefuse-ai%2Fcodefuse-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefuse-ai%2Fcodefuse-chatbot/lists"}