From d485edad6db3a1ec00f27e4e4e3701dc079d566d Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Thu, 6 Jun 2024 10:51:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=89=E8=A3=85=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=8F=8F=E8=BF=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/chatchat-server/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libs/chatchat-server/README.md b/libs/chatchat-server/README.md index e4896fc7..4e0786c8 100644 --- a/libs/chatchat-server/README.md +++ b/libs/chatchat-server/README.md @@ -1,7 +1,7 @@ ### 开始使用 > 环境配置完成后,启动步骤为先启动chatchat-server,然后启动chatchat-frontend。 -> chatchat可通过pypi安装一键启动,您也可以选择使用源码启动。 +> chatchat可通过pypi安装一键启动,您也可以选择使用源码启动。(Tips:源码配置可以帮助我们更快的寻找bug,或者改进基础设施。我们不建议新手使用这个方式) #### pypi安装一键启动 - 安装chatchat @@ -21,7 +21,7 @@ cp -r img ~/.config/chatchat/ > 当配置文件复制完成后,配置拷贝后路径的`model_providers.yaml`文件,即可完成自定义平台加载 ```shell -cd ~/.config/chatchat +cd ~/.config/chatchat/configs vim model_providers.yaml ``` > @@ -44,17 +44,24 @@ git clone https://github.com/chatchat-space/Langchain-Chatchat.git cd Langchain-Chatchat/libs/chatchat-server/chatchat/configs vim model_providers.yaml ``` +- 平台配置 > 注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk `pip install zhipuai` > > 详细配置请参考[README.md](../model-providers/README.md) + +- 初始化开发环境 + +> [Code](../../docs/contributing/code.md): 源码配置可以帮助我们更快的寻找bug,或者改进基础设施。 + - 初始化仓库 > 请注意:这个命令会清空数据库,如果您有重要数据,请备份 ```shell -cd .. +cd Langchain-Chatchat/libs/chatchat-server/chatchat python init_database.py --recreate-vs ``` - 启动服务 ```shell +cd Langchain-Chatchat/libs/chatchat-server/chatchat python startup.py -a ``` \ No newline at end of file