发布应用 MaxKB

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-10-08 11:34:24 +08:00
parent b4c856ae43
commit 47ebf3dc40
10 changed files with 163 additions and 0 deletions

1
.github/README.md vendored
View File

@ -110,6 +110,7 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/jproxy/logo.png" width="22"/> | JProxy | https://github.com/LuckyPuppy514/jproxy/ | 介于 Sonarr / Radarr 和 Jackett / Prowlarr 之间的代理,主要用于优化查询和提升识别率 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/linkding/logo.png" width="22"/> | LinkDing | https://github.com/sissbruecker/linkding/ | 自托管书签管理器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mailserver/logo.png" width="22"/> | Docker Mailserver | https://docker-mailserver.github.io/docker-mailserver/latest/ | 可用于生产的全栈但简单的邮件服务器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/maxkb/logo.png" width="22"/> | MaxKB | https://maxkb.cn/ | 基于 LLM 大语言模型的知识库问答系统 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/minio/logo.png" width="22"/> | MinIO | https://min.io/ | MinIO 是一种高性能、兼容 S3 的对象存储 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/movie-pilot/logo.png" width="22"/> | MoviePilot | https://github.com/jxxghp/MoviePilot/ | NAS媒体库自动化管理工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mysql/logo.png" width="22"/> | MySQL | https://www.mysql.com/ | 关系数据库管理系统 | MySQL |

View File

@ -93,6 +93,7 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/jproxy/logo.png" width="22"/> | JProxy | https://github.com/LuckyPuppy514/jproxy/ | 介于 Sonarr / Radarr 和 Jackett / Prowlarr 之间的代理,主要用于优化查询和提升识别率 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/linkding/logo.png" width="22"/> | LinkDing | https://github.com/sissbruecker/linkding/ | 自托管书签管理器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mailserver/logo.png" width="22"/> | Docker Mailserver | https://docker-mailserver.github.io/docker-mailserver/latest/ | 可用于生产的全栈但简单的邮件服务器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/maxkb/logo.png" width="22"/> | MaxKB | https://maxkb.cn/ | 基于 LLM 大语言模型的知识库问答系统 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/minio/logo.png" width="22"/> | MinIO | https://min.io/ | MinIO 是一种高性能、兼容 S3 的对象存储 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/movie-pilot/logo.png" width="22"/> | MoviePilot | https://github.com/jxxghp/MoviePilot/ | NAS媒体库自动化管理工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mysql/logo.png" width="22"/> | MySQL | https://www.mysql.com/ | 关系数据库管理系统 | MySQL |

17
apps/maxkb/1.6.1/data.yml Normal file
View File

@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: "/home/maxkb"
edit: true
envKey: MAXKB_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,20 @@
networks:
1panel-network:
external: true
services:
maxkb:
image: 1panel/maxkb:v1.6.1
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MAXKB_ROOT_PATH}/data:/var/lib/postgresql/data
- ${MAXKB_ROOT_PATH}/python-packages:/opt/maxkb/app/sandbox/python-packages

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi

69
apps/maxkb/README.md Normal file
View File

@ -0,0 +1,69 @@
# MaxKB
一款基于大语言模型和 RAG 的开源知识库问答系统
![MaxKBo](https://file.lifebus.top/imgs/maxkb_cover.jpg)
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
## 应用简介
MaxKB = `Max Knowledge Base`,是一款基于大语言模型和 RAG
的开源知识库问答系统广泛应用于企业内部知识库、客户服务、学术研究与教育等场景。作为一款专注于知识库问答场景的软件产品MaxKB
能够为企业的智能化进程注入新的动力助力企业实现“提质增效”的目标。在知识库管理方面MaxKB
帮助企业实现知识采集、知识入库、知识库构建的全流程自动化在场景化智能搜索方面MaxKB 能够解析用户输入的问题并匹配检索知识库在回复准确性方面MaxKB
采用了成熟的 LLM + RAG 技术能够最大限度地降低大模型幻觉对知识搜索准确性的干扰提高企业对业务数据的分类与召回能力安全性方面MaxKB
支持本地部署和调用本地大模型,有效管控企业使用知识库时越级访问的风险,以及公有模型在数据传输方面可能存在的安全隐患。借助
MaxKB企业用户可以快速上线业务 AI 助手,将生成式 AI 能力应用于业务数据管理、内部资料查询、线上客户服务等领域,优化业务服务流程并切实提升用户体验。
### 整体架构
![MaxKBo](https://file.lifebus.top/imgs/maxkb_architecture.jpg)
### 实现原理
![MaxKBo](https://file.lifebus.top/imgs/maxkb_principle.jpg)
### 技术栈
+ 前端Vue.js、logicflow
+ 后端Python / Django
+ 架构Langchain
+ 向量数据库PostgreSQL / pgvector
+ 大模型Ollama、Azure OpenAI、OpenAI、通义千问、Kimi、百度千帆、讯飞星火、Gemini、DeepSeek等。
---
## 安装说明
> 服务地址http://127.0.0.1:8080。
>
> 默认的登录信息:
>
> 用户名:`admin`
>
> 默认密码:`MaxKB@123..`
### 安装环境
+ 操作系统Ubuntu 22.04 / CentOS 7 64 位系统;
+ CPU/内存: 推荐 2C/4GB 以上;
+ 磁盘空间100GB
+ 浏览器要求:请使用 Chrome、FireFox、Safari、Edge等现代浏览器
+ 可访问互联网。
### 社区版限制
+ 用户数量2 个;
+ 知识库数量50 个;
+ 应用数量5 个;
+ 不支持 第三方应用(企业微信,钉钉,微信公众号)
+ 不支持自定义对话框的 AI 头像
+ 不支持自定义对话框的浮窗入口图标
+ 不支持对话框浮窗位置可拖拽
+ 不支持显示历史对话记录设置
+ 不支持自定义系统 Logo 和主题
+ 不支持 LDAP、OIDC、CAS 等单点登录协议
+ 不开放 API
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)

15
apps/maxkb/data.yml Normal file
View File

@ -0,0 +1,15 @@
additionalProperties:
key: maxkb
name: MaxKB
tags:
- WebSite
- AI
- Local
shortDescZh: 基于 LLM 大语言模型的知识库问答系统
shortDescEn: A knowledge base question and answer system based on LLM large language model
type: website
crossVersionUpdate: true
limit: 0
website: https://maxkb.cn/
github: https://github.com/1Panel-dev/MaxKB/
document: https://maxkb.cn/docs/

BIN
apps/maxkb/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB