diff --git a/README.md b/README.md deleted file mode 100644 index d2ae0562f..000000000 --- a/README.md +++ /dev/null @@ -1,67 +0,0 @@ -

MaxKB

-

Open-source platform for building enterprise-grade agents

-

强大易用的企业级智能体平台

-

1Panel-dev%2FMaxKB | Trendshift

-

- License: GPL v3 - Latest release - Stars - Download
- [中文(简体)] | [English] -

-
- -MaxKB = Max Knowledge Brain, it is an open-source platform for building enterprise-grade agents. MaxKB integrates Retrieval-Augmented Generation (RAG) pipelines, supports robust workflows, and provides advanced MCP tool-use capabilities. MaxKB is widely applied in scenarios such as intelligent customer service, corporate internal knowledge bases, academic research, and education. - -- **RAG Pipeline**: Supports direct uploading of documents / automatic crawling of online documents, with features for automatic text splitting, vectorization. This effectively reduces hallucinations in large models, providing a superior smart Q&A interaction experience. -- **Agentic Workflow**: Equipped with a powerful workflow engine, function library and MCP tool-use, enabling the orchestration of AI processes to meet the needs of complex business scenarios. -- **Seamless Integration**: Facilitates zero-coding rapid integration into third-party business systems, quickly equipping existing systems with intelligent Q&A capabilities to enhance user satisfaction. -- **Model-Agnostic**: Supports various large models, including private models (such as DeepSeek, Llama, Qwen, etc.) and public models (like OpenAI, Claude, Gemini, etc.). -- **Multi Modal**: Native support for input and output text, image, audio and video. - -## Quick start - -Execute the script below to start a MaxKB container using Docker: - -```bash -docker run -d --name=maxkb --restart=always -p 8080:8080 -v ~/.maxkb:/opt/maxkb 1panel/maxkb -``` - -Access MaxKB web interface at `http://your_server_ip:8080` with default admin credentials: - -- username: admin -- password: MaxKB@123.. - -中国用户如遇到 Docker 镜像 Pull 失败问题,请参照该 [离线安装文档](https://maxkb.cn/docs/v2/installation/offline_installtion/) 进行安装。 - -## Screenshots - - - - - - - - - - -
MaxKB Demo1MaxKB Demo2
MaxKB Demo3MaxKB Demo4
- -## Technical stack - -- Frontend:[Vue.js](https://vuejs.org/) -- Backend:[Python / Django](https://www.djangoproject.com/) -- LLM Framework:[LangChain](https://www.langchain.com/) -- Database:[PostgreSQL + pgvector](https://www.postgresql.org/) - -## Star History - -[![Star History Chart](https://api.star-history.com/svg?repos=1Panel-dev/MaxKB&type=Date)](https://star-history.com/#1Panel-dev/MaxKB&Date) - -## License - -Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - - -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. diff --git a/README_CN.md b/README_CN.md index 279b2a2cf..a56ad4310 100644 --- a/README_CN.md +++ b/README_CN.md @@ -1,89 +1,6 @@ -

MaxKB

-

强大易用的企业级智能体平台

-

- 1Panel-dev%2FMaxKB | Trendshift -

-

- English README - License: GPL v3 - Latest release - Stars - Download - Gitee Stars - GitCode Stars -

-
- -MaxKB = Max Knowledge Brain,是一个强大易用的企业级智能体平台,致力于解决企业 AI 落地面临的技术门槛高、部署成本高、迭代周期长等问题,助力企业在人工智能时代赢得先机。秉承“开箱即用,伴随成长”的设计理念,MaxKB 支持企业快速接入主流大模型,高效构建专属知识库,并提供从基础问答(RAG)、复杂流程自动化(工作流)到智能体(Agent)的渐进式升级路径,全面赋能智能客服、智能办公助手等多种应用场景。 - -- **RAG 检索增强生成**:高效搭建本地 AI 知识库,支持直接上传文档 / 自动爬取在线文档,支持文本自动拆分、向量化,有效减少大模型幻觉,提升问答效果; -- **灵活编排**:内置强大的工作流引擎、函数库和 MCP 工具调用能力,支持编排 AI 工作过程,满足复杂业务场景下的需求; -- **无缝嵌入**:支持零编码快速嵌入到第三方业务系统,让已有系统快速拥有智能问答能力,提高用户满意度; -- **模型中立**:支持对接各种大模型,包括本地私有大模型(DeepSeek R1 / Qwen 3 等)、国内公共大模型(通义千问 / 腾讯混元 / 字节豆包 / 百度千帆 / 智谱 AI / Kimi 等)和国外公共大模型(OpenAI / Claude / Gemini 等)。 - -MaxKB 三分钟视频介绍:https://www.bilibili.com/video/BV18JypYeEkj/ - -## 快速开始 - -``` -# Linux 机器 -docker run -d --name=maxkb --restart=always -p 8080:8080 -v ~/.maxkb:/opt/maxkb registry.fit2cloud.com/maxkb/maxkb - -# Windows 机器 -docker run -d --name=maxkb --restart=always -p 8080:8080 -v C:/maxkb:/opt/maxkb registry.fit2cloud.com/maxkb/maxkb - -# 用户名: admin -# 密码: MaxKB@123.. -``` - -- 你也可以通过 [1Panel 应用商店](https://apps.fit2cloud.com/1panel) 快速部署 MaxKB; -- 如果是内网环境,推荐使用 [离线安装包](https://community.fit2cloud.com/#/products/maxkb/downloads) 进行安装部署; -- MaxKB 不同产品产品版本的对比请参见:[MaxKB 产品版本对比](https://maxkb.cn/price); -- 如果您需要向团队介绍 MaxKB,可以使用这个 [官方 PPT 材料](https://fit2cloud.com/maxkb/download/introduce-maxkb_202507.pdf)。 - -如你有更多问题,可以查看使用手册,或者通过论坛与我们交流。 - -- [案例展示](USE-CASES.md) -- [使用手册](https://maxkb.cn/docs/) -- [论坛求助](https://bbs.fit2cloud.com/c/mk/11) -- 技术交流群 - - - -## UI 展示 - - - - - - - - - - -
MaxKB Demo1MaxKB Demo2
MaxKB Demo3MaxKB Demo4
- ## 技术栈 - 前端:[Vue.js](https://cn.vuejs.org/) - 后端:[Python / Django](https://www.djangoproject.com/) - LangChain:[LangChain](https://www.langchain.com/) -- 向量数据库:[PostgreSQL / pgvector](https://www.postgresql.org/) - -## 飞致云的其他明星项目 - -- [1Panel](https://github.com/1panel-dev/1panel/) - 现代化、开源的 Linux 服务器运维管理面板 -- [JumpServer](https://github.com/jumpserver/jumpserver/) - 广受欢迎的开源堡垒机 -- [DataEase](https://github.com/dataease/dataease/) - 人人可用的开源数据可视化分析工具 -- [MeterSphere](https://github.com/metersphere/metersphere/) - 新一代的开源持续测试工具 -- [Halo](https://github.com/halo-dev/halo/) - 强大易用的开源建站工具 - -## License - -Copyright (c) 2014-2025 飞致云 FIT2CLOUD, All rights reserved. - -Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - - -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. +- 向量数据库:[PostgreSQL / pgvector](https://www.postgresql.org/) \ No newline at end of file diff --git a/USE-CASES.md b/USE-CASES.md deleted file mode 100644 index 1ce01956e..000000000 --- a/USE-CASES.md +++ /dev/null @@ -1,39 +0,0 @@ -

MaxKB 应用案例,持续更新中...

- ------------------------------- - -- [MaxKB 应用案例:中国农业大学-小鹉哥](https://mp.weixin.qq.com/s/4g_gySMBQZCJ9OZ-yBkmvw) -- [MaxKB 应用案例:东北财经大学-小银杏](https://mp.weixin.qq.com/s/3BoxkY7EMomMmmvFYxvDIA) -- [MaxKB 应用案例:中铁水务](https://mp.weixin.qq.com/s/voNAddbK2CJOrJJs1ewZ8g) -- [MaxKB 应用案例:解放军总医院](https://mp.weixin.qq.com/s/ETrZC-vrA4Aap0eF-15EeQ) -- [MaxKB 应用案例:无锡市数据局](https://mp.weixin.qq.com/s/enfUFLevvL_La74PQ0kIXw) -- [MaxKB 应用案例:中核西仪研究院-西仪睿答](https://mp.weixin.qq.com/s/CbKr4mev8qahKLAtV6Dxdg) -- [MaxKB 应用案例:南京中医药大学](https://mp.weixin.qq.com/s/WUmAKYbZjp3272HIecpRFA) -- [MaxKB 应用案例:西北电力设计院-AI数字助理Memex](https://mp.weixin.qq.com/s/ezHFdB7C7AVL9MTtDwYGSA) -- [MaxKB 应用案例:西安国际医院中心医院-国医小助](https://mp.weixin.qq.com/s/DSOUvwrQrxbqQxKBilTCFQ) -- [MaxKB 应用案例:华莱士智能AI客服助手上线啦!](https://www.bilibili.com/video/BV1hQtVeXEBL) -- [MaxKB 应用案例:把医疗行业知识转化为知识库问答助手!](https://www.bilibili.com/video/BV157wme9EgB) -- [MaxKB 应用案例:会展AI智能客服体验](https://www.bilibili.com/video/BV1J7BqY6EKA) -- [MaxKB 应用案例:孩子要上幼儿园了,AI 智能助手择校好帮手](https://www.bilibili.com/video/BV1wKrhYvEer) -- [MaxKB 应用案例:产品使用指南AI助手,新手小白也能轻松搞定!](https://www.bilibili.com/video/BV1Yz6gYtEqX) -- [MaxKB 应用案例:生物医药AI客服智能体验!](https://www.bilibili.com/video/BV13JzvYsE3e) -- [MaxKB 应用案例:高校行政管理AI小助手](https://www.bilibili.com/video/BV1yvBMYvEdy) -- [MaxKB 应用案例:岳阳市人民医院-OA小助手](https://mp.weixin.qq.com/s/O94Qo3UH-MiUtDdWCVg8sQ) -- [MaxKB 应用案例:常熟市第一人民医院](https://mp.weixin.qq.com/s/s5XXGTR3_MUo41NbJ8WzZQ) -- [MaxKB 应用案例:华北水利水电大学](https://mp.weixin.qq.com/s/PoOFAcMCr9qJdvSj8c08qg) -- [MaxKB 应用案例:唐山海事局-“小海”AI语音助手](https://news.qq.com/rain/a/20250223A030BE00) -- [MaxKB 应用案例:湖南汉寿政务](http://hsds.hsdj.gov.cn:19999/ui/chat/a2c976736739aadc) -- [MaxKB 应用案例:广州市妇女儿童医疗中心-AI医疗数据分类分级小助手](https://mp.weixin.qq.com/s/YHUMkUOAaUomBV8bswpK3g) -- [MaxKB 应用案例:苏州热工研究院有限公司-维修大纲评估质量自查AI小助手](https://mp.weixin.qq.com/s/Ts5FQdnv7Tu9Jp7bvofCVA) -- [MaxKB 应用案例:国核自仪系统工程有限公司-NuCON AI帮](https://mp.weixin.qq.com/s/HNPc7u5xVfGLJr8IQz3vjQ) -- [MaxKB 应用案例:深圳通开启Deep Seek智能应用新篇章](https://mp.weixin.qq.com/s/SILN0GSescH9LyeQqYP0VQ) -- [MaxKB 应用案例:南通智慧出行领跑长三角!首款接入DeepSeek的"畅行南通"APP上线AI新场景](https://mp.weixin.qq.com/s/WEC9UQ6msY0VS8LhTZh-Ew) -- [MaxKB 应用案例:中船动力人工智能"智慧动力云助手"及首批数字员工正式上线](https://mp.weixin.qq.com/s/OGcEkjh9DzGO1Tkc9nr7qg) -- [MaxKB 应用案例:AI+矿山:DeepSeek助力绿色智慧矿山智慧“升级”](https://mp.weixin.qq.com/s/SZstxTvVoLZg0ECbZbfpIA) -- [MaxKB 应用案例:DeepSeek落地弘盛铜业:国产大模型点亮"黑灯工厂"新引擎](https://mp.weixin.qq.com/s/Eczdx574MS5RMF7WfHN7_A) -- [MaxKB 应用案例:拥抱智能时代!中国五矿以 “AI+”赋能企业发展](https://mp.weixin.qq.com/s/D5vBtlX2E81pWE3_2OgWSw) -- [MaxKB 应用案例:DeepSeek赋能中冶武勘AI智能体](https://mp.weixin.qq.com/s/8m0vxGcWXNdZazziQrLyxg) -- [MaxKB 应用案例:重磅!陕西广电网络“秦岭云”平台实现DeepSeek本地化部署](https://mp.weixin.qq.com/s/ZKmEU_wWShK1YDomKJHQeA) -- [MaxKB 应用案例:粤海集团完成DeepSeek私有化部署,助力集团智能化管理](https://mp.weixin.qq.com/s/2JbVp0-kr9Hfp-0whH4cvg) -- [MaxKB 应用案例:建筑材料工业信息中心完成DeepSeek本地化部署,推动行业数智化转型新发展](https://mp.weixin.qq.com/s/HThGSnND3qDF8ySEqiM4jw) -- [MaxKB 应用案例:一起DeepSeek!福建设计以AI大模型开启新篇章](https://mp.weixin.qq.com/s/m67e-H7iQBg3d24NM82UjA) \ No newline at end of file diff --git a/apps/common/template/email_template_zh.html b/apps/common/template/email_template_zh.html index 29d3d3450..2c3c2518d 100644 --- a/apps/common/template/email_template_zh.html +++ b/apps/common/template/email_template_zh.html @@ -64,7 +64,7 @@ color: #1f2329; " > - 强大易用的企业级智能体平台 + 融合AI-RAG技术的智能知识问答及思维导图综合平台 diff --git a/apps/locales/zh_CN/LC_MESSAGES/django.po b/apps/locales/zh_CN/LC_MESSAGES/django.po index a2c9298a8..a6d99bb84 100644 --- a/apps/locales/zh_CN/LC_MESSAGES/django.po +++ b/apps/locales/zh_CN/LC_MESSAGES/django.po @@ -3219,7 +3219,7 @@ msgstr "分页获取问题列表" #: apps/maxkb/settings/base.py:101 msgid "Intelligent customer service platform" -msgstr "强大易用的企业级智能体平台" +msgstr "融合AI-RAG技术的智能知识问答及思维导图综合平台" #: apps/models_provider/api/model.py:37 apps/models_provider/api/provide.py:17 #: apps/models_provider/api/provide.py:23 diff --git a/apps/models_provider/migrations/0001_initial.py b/apps/models_provider/migrations/0001_initial.py index 543481483..04e3f6314 100644 --- a/apps/models_provider/migrations/0001_initial.py +++ b/apps/models_provider/migrations/0001_initial.py @@ -14,8 +14,8 @@ default_embedding_model_id = '42f63a3d-427e-11ef-b3ec-a8a1595801ab' def save_default_embedding_model(apps, schema_editor): ModelModel = apps.get_model('models_provider', 'Model') - cache_folder = CONFIG.get('EMBEDDING_MODEL_PATH') - model_name = CONFIG.get('EMBEDDING_MODEL_NAME') + cache_folder = CONFIG.get('EMBEDDING_MODEL_PATH') or '/opt/maxkb-app/model/base' + model_name = CONFIG.get('EMBEDDING_MODEL_NAME') or 'text2vec-base-chinese' credential = {'cache_folder': cache_folder} model_credential_str = json.dumps(credential) model = ModelModel(id=default_embedding_model_id, name='maxkb-embedding', status=Status.SUCCESS, @@ -59,4 +59,4 @@ class Migration(migrations.Migration): }, ), migrations.RunPython(save_default_embedding_model), - ] + ] \ No newline at end of file diff --git a/apps/system_manage/serializers/system.py b/apps/system_manage/serializers/system.py index 56a21bccd..26d5a62bd 100644 --- a/apps/system_manage/serializers/system.py +++ b/apps/system_manage/serializers/system.py @@ -21,9 +21,9 @@ from system_manage.models import SystemSetting class SettingType(models.CharField): # Community Edition - CE = "CE", "社区" + EE = "EE", "社区" # Enterprise Edition - PE = "PE", "专业版" + EE = "EE", "专业版" # Professional Edition EE = "EE", '企业版' diff --git a/pyproject.toml b/pyproject.toml index 9d4dd900f..ca23c5b7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "langchain-ollama==0.3.4", "langgraph==0.5.3", "langchain_core==0.3.74", - "torch==2.8.0", + # "torch==2.8.0", # 暂时注释掉,因为与当前 macOS 系统不兼容 "sentence-transformers==5.0.0", "qianfan==0.4.12.3", "zhipuai==2.1.5.20250708", diff --git a/static/admin/MaxKB.gif b/static/admin/MaxKB.gif new file mode 100644 index 000000000..055d49a6a Binary files /dev/null and b/static/admin/MaxKB.gif differ diff --git a/static/admin/favicon.ico b/static/admin/favicon.ico new file mode 100644 index 000000000..89db37c51 Binary files /dev/null and b/static/admin/favicon.ico differ diff --git a/static/admin/theme/default.jpg b/static/admin/theme/default.jpg new file mode 100644 index 000000000..33430424b Binary files /dev/null and b/static/admin/theme/default.jpg differ diff --git a/ui/env/.env b/ui/env/.env index 9a28770c0..6fe9888c7 100644 --- a/ui/env/.env +++ b/ui/env/.env @@ -1,5 +1,5 @@ VITE_APP_NAME=admin VITE_BASE_PATH=/admin/ VITE_APP_PORT=3000 -VITE_APP_TITLE = 'MaxKB' +VITE_APP_TITLE = 'Ai-RAG' VITE_ENTRY="admin.html" \ No newline at end of file diff --git a/ui/env/.env.chat b/ui/env/.env.chat index bb6e752d8..353f21522 100644 --- a/ui/env/.env.chat +++ b/ui/env/.env.chat @@ -1,5 +1,5 @@ VITE_APP_NAME=chat VITE_BASE_PATH=/chat/ VITE_APP_PORT=3001 -VITE_APP_TITLE = 'MaxKB' +VITE_APP_TITLE = 'Ai-RAG' VITE_ENTRY="chat.html" \ No newline at end of file diff --git a/ui/public/favicon.ico b/ui/public/favicon.ico index 7d9781edb..89db37c51 100644 Binary files a/ui/public/favicon.ico and b/ui/public/favicon.ico differ diff --git a/ui/public/theme/default.jpg b/ui/public/theme/default.jpg deleted file mode 100644 index 162ebe925..000000000 Binary files a/ui/public/theme/default.jpg and /dev/null differ diff --git a/ui/public/theme/green.jpg b/ui/public/theme/green.jpg deleted file mode 100644 index 937e8a03c..000000000 Binary files a/ui/public/theme/green.jpg and /dev/null differ diff --git a/ui/public/theme/orange.jpg b/ui/public/theme/orange.jpg deleted file mode 100644 index 64b4c6abe..000000000 Binary files a/ui/public/theme/orange.jpg and /dev/null differ diff --git a/ui/public/theme/purple.jpg b/ui/public/theme/purple.jpg deleted file mode 100644 index 843a42585..000000000 Binary files a/ui/public/theme/purple.jpg and /dev/null differ diff --git a/ui/public/theme/red.jpg b/ui/public/theme/red.jpg deleted file mode 100644 index cabf84f6f..000000000 Binary files a/ui/public/theme/red.jpg and /dev/null differ diff --git a/ui/src/assets/logo/MaxKB-logo-currentColor.svg b/ui/src/assets/logo/MaxKB-logo-currentColor.svg index 94281645f..886c19e04 100644 --- a/ui/src/assets/logo/MaxKB-logo-currentColor.svg +++ b/ui/src/assets/logo/MaxKB-logo-currentColor.svg @@ -1,20 +1,8 @@ - - - - - - - - - - - - - - - - - - + AI-RAG + + + + + diff --git a/ui/src/assets/logo/MaxKB-logo.svg b/ui/src/assets/logo/MaxKB-logo.svg index beb86aa51..098bc0074 100644 --- a/ui/src/assets/logo/MaxKB-logo.svg +++ b/ui/src/assets/logo/MaxKB-logo.svg @@ -1,64 +1,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + AI-RAG + + + + + + + + + diff --git a/ui/src/assets/logo/logo-currentColor.svg b/ui/src/assets/logo/logo-currentColor.svg index 5f50e4cf3..c2fb6273b 100644 --- a/ui/src/assets/logo/logo-currentColor.svg +++ b/ui/src/assets/logo/logo-currentColor.svg @@ -1 +1,7 @@ -MaxKB \ No newline at end of file + + + + + + + diff --git a/ui/src/assets/logo/logo.png b/ui/src/assets/logo/logo.png index 7d9781edb..efa4ff49c 100644 Binary files a/ui/src/assets/logo/logo.png and b/ui/src/assets/logo/logo.png differ diff --git a/ui/src/assets/logo/logo.svg b/ui/src/assets/logo/logo.svg index b95b2350e..ca41a51e3 100644 --- a/ui/src/assets/logo/logo.svg +++ b/ui/src/assets/logo/logo.svg @@ -1,35 +1,21 @@ - - - - - - - - - - - - - - MaxKB - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 02a18e4ec..d926ff4fc 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -1,4 +1,4 @@ -