mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-05 14:23:23 +08:00
feat:README (#4118)
Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
This commit is contained in:
parent
70f4444458
commit
67ed340c3b
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
### 开始使用
|
### 开始使用
|
||||||
|
|
||||||
> 环境配置完成后,启动步骤为先启动chatchat-server,然后启动chatchat-frontend。
|
> 环境配置完成后,启动步骤为先启动chatchat-server,然后启动chatchat-frontend。
|
||||||
@ -30,36 +29,21 @@ vim model_providers.yaml
|
|||||||
>
|
>
|
||||||
> 详细配置请参考[README.md](../model-providers/README.md)
|
> 详细配置请参考[README.md](../model-providers/README.md)
|
||||||
|
|
||||||
|
|
||||||
- 启动服务
|
- 启动服务
|
||||||
```shell
|
```shell
|
||||||
chatchat -a
|
chatchat -a
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### 源码启动chatchat-server
|
#### 源码启动chatchat-server
|
||||||
- 安装chatchat
|
- 安装chatchat
|
||||||
```shell
|
```shell
|
||||||
git clone https://github.com/chatchat-space/Langchain-Chatchat.git
|
git clone https://github.com/chatchat-space/Langchain-Chatchat.git
|
||||||
```
|
```
|
||||||
- 复制配置文件
|
- 修改`model_providers.yaml`文件,即可完成自定义平台加载
|
||||||
> 后面我们会提供一个一键初始化的脚本,现在您可以手动复制配置文件
|
|
||||||
> 请注意:这个命令会清空数据库,如果您有重要数据,请备份
|
|
||||||
```shell
|
```shell
|
||||||
cd Langchain-Chatchat/libs/chatchat-server/chatchat
|
cd Langchain-Chatchat/libs/chatchat-server/chatchat/configs
|
||||||
mkdir -p ~/.config/chatchat/
|
|
||||||
cp -r configs ~/.config/chatchat/
|
|
||||||
cp -r data ~/.config/chatchat/
|
|
||||||
cp -r img ~/.config/chatchat/
|
|
||||||
```
|
|
||||||
|
|
||||||
> 当配置文件复制完成后,配置拷贝后路径的`model_providers.yaml`文件,即可完成自定义平台加载
|
|
||||||
```shell
|
|
||||||
cd ~/.config/chatchat
|
|
||||||
vim model_providers.yaml
|
vim model_providers.yaml
|
||||||
```
|
```
|
||||||
>
|
|
||||||
> 注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk `pip install zhipuai`
|
> 注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk `pip install zhipuai`
|
||||||
>
|
>
|
||||||
> 详细配置请参考[README.md](../model-providers/README.md)
|
> 详细配置请参考[README.md](../model-providers/README.md)
|
||||||
@ -67,8 +51,8 @@ vim model_providers.yaml
|
|||||||
- 初始化仓库
|
- 初始化仓库
|
||||||
> 请注意:这个命令会清空数据库,如果您有重要数据,请备份
|
> 请注意:这个命令会清空数据库,如果您有重要数据,请备份
|
||||||
```shell
|
```shell
|
||||||
cd chatchat-server/chatchat
|
cd ..
|
||||||
python init_database.py
|
python init_database.py --recreate-vs
|
||||||
```
|
```
|
||||||
- 启动服务
|
- 启动服务
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user