未安装docker环境如何部署 MaxKB

下载好MaxKb包,然后安装docker
直接运行下面代码即可部署?
docker run -d --name=maxkb -p 8080:8080 -v ~/.maxkb:/var/lib/postgresql/data 1panel/maxkb

不用下载 MaxKB
1、安装docker
2、直接运行下面代码即可部署。
docker run -d --name=maxkb -p 8080:8080 -v ~/.maxkb:/var/lib/postgresql/data 1panel/maxkb

那必须操作系统:Ubuntu 22.04 / CentOS 7 64 ,然后安装docker。直接运行代码即可部署?

如果项目下载下来,然后安装依赖项,也必须是在那必须操作系统:Ubuntu 22.04 / CentOS 7 64 运行项目才行?那还需要docker吗?

不管什么系统,只要装了 docker 就能跑
docker run -d --name=maxkb -p 8080:8080 -v ~/.maxkb:/var/lib/postgresql/data 1panel/maxkb

如果不装 docker 的,步骤比较麻烦,如下:

如果是windows系统
5. 配置数据库相关信息 将根目录config_example.yml复制到本机/opt/maxkb/conf/config.yaml 并修改数据库连接信息
这个配置文件放在哪个目录

Windows配置文件放在这里
D:/opt/maxkb/config.yaml

Crypto已经安装

April 11, 2024 - 13:09:59
Django version 4.1.13, using settings ‘smartdoc.settings’
Starting development server at http://0.0.0.0:8080/
Quit the server with CTRL-BREAK.

运行成功后,访问报错
File “D:\软件项目\MaxKB-main\apps\smartdoc\urls.py”, line 46, in
path(“api/”, include(“setting.urls”)),
^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Python.3.11\Lib\site-packages\django\urls\conf.py”, line 38, in include
urlconf_module = import_module(urlconf_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Program Files\Python.3.11\Lib\importlib_init_.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1206, in _gcd_import
File “”, line 1178, in _find_and_load
File “”, line 1149, in find_and_load_unlocked
File “”, line 690, in load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in call_with_frames_removed
File “D:\软件项目\MaxKB-main\apps\setting\urls.py”, line 3, in
from . import views
File "D:\软件项目\MaxKB-main\apps\setting\views_init
.py", line 10, in
from .model import *
File “D:\软件项目\MaxKB-main\apps\setting\views\model.py”, line 18, in
from setting.models_provider.constants.model_provider_constants import ModelProvideConstants
File “D:\软件项目\MaxKB-main\apps\setting\models_provider\constants\model_provider_constants.py”, line 14, in
from setting.models_provider.impl.wenxin_model_provider.wenxin_model_provider import WenxinModelProvider
File “D:\软件项目\MaxKB-main\apps\setting\models_provider\impl\wenxin_model_provider\wenxin_model_provider.py”, line 14, in
from qianfan import ChatCompletion
File "C:\Program Files\Python.3.11\Lib\site-packages\qianfan_init
.py", line 20, in
from qianfan.resources import (
File "C:\Program Files\Python.3.11\Lib\site-packages\qianfan\resources_init
.py", line 14, in
from qianfan.resources.console.data import Data
File “C:\Program Files\Python.3.11\Lib\site-packages\qianfan\resources\console\data.py”, line 32, in
from qianfan.resources.console.utils import get_console_v2_query, console_api_request
File “C:\Program Files\Python.3.11\Lib\site-packages\qianfan\resources\console\utils.py”, line 25, in
from qianfan.resources.requestor.console_requestor import ConsoleAPIRequestor
File “C:\Program Files\Python.3.11\Lib\site-packages\qianfan\resources\requestor\console_requestor.py”, line 24, in
from qianfan.resources.auth.iam import iam_sign
File “C:\Program Files\Python.3.11\Lib\site-packages\qianfan\resources\auth\iam.py”, line 21, in
from baidubce.auth.bce_credentials import BceCredentials
File "C:\Program Files\Python.3.11\Lib\site-packages\baidubce_init
.py", line 18, in
from . import protocol
File “C:\Program Files\Python.3.11\Lib\site-packages\baidubce\protocol.py”, line 20, in
from .utils import Expando
File “C:\Program Files\Python.3.11\Lib\site-packages\baidubce\utils.py”, line 34, in
from Crypto.Cipher import AES
ModuleNotFoundError: No module named ‘Crypto’

将根目录的poetry.lock 删除 执行poetry install

不行,还是同样的错误

不行就使用虚拟环境
删除poetry.lock
python3 venv -m venv
.\venv\Scripts\activate
poetry install
python3 main.py start

需要将前端进行打包
cd ui
npm i
npm run build
重启项目

这是添加模型操作?还请把问题描述清楚,信息提供完整。

感谢,终于算成功登录了

对的,添加千帆模型时候报错。名称也一致的

表单内容发出来看一下

上次错误查询了下应该是导入,需要调用费用问题。
后来采用ollama本地部署,添加模型成功了,不过导入知识库后测试了给文档,导入失败了。这个哪里可以查原因

一般导入失败是向量化失败, 操作中点一下重试按钮,会重新向量化。