开始使用
环境配置完成后,启动步骤为先启动chatchat-server,然后启动chatchat-frontend。 chatchat可通过pypi安装一键启动,您也可以选择使用源码启动。(Tips:源码配置可以帮助我们更快的寻找bug,或者改进基础设施。我们不建议新手使用这个方式)
pypi安装一键启动
- 安装chatchat
pip install langchain-chatchat -U
- 复制配置文件
后面我们会提供一个一键初始化的脚本,现在您可以手动复制配置文件 请注意:这个命令会清空数据库,如果您有重要数据,请备份
cd chatchat-server/chatchat
mkdir -p ~/.config/chatchat/
cp -r configs ~/.config/chatchat/
cp -r data ~/.config/chatchat/
cp -r img ~/.config/chatchat/
当配置文件复制完成后,配置拷贝后路径的
model_providers.yaml文件,即可完成自定义平台加载
cd ~/.config/chatchat/configs
vim model_providers.yaml
注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk
pip install zhipuai详细配置请参考README.md
- 启动服务
chatchat -a
源码启动chatchat-server
- 安装chatchat
git clone https://github.com/chatchat-space/Langchain-Chatchat.git
- 修改
model_providers.yaml文件,即可完成自定义平台加载
cd Langchain-Chatchat/libs/chatchat-server/chatchat/configs
vim model_providers.yaml
- 平台配置
注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk
pip install zhipuai详细配置请参考README.md
- 初始化开发环境
Code: 源码配置可以帮助我们更快的寻找bug,或者改进基础设施。
- 初始化仓库
请注意:这个命令会清空数据库,如果您有重要数据,请备份
cd Langchain-Chatchat/libs/chatchat-server/chatchat
python init_database.py --recreate-vs
- 启动服务
cd Langchain-Chatchat/libs/chatchat-server/chatchat
python startup.py -a
Metadata
Release files for langchain-chatchat 0.3.0.20240606
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_chatchat-0.3.0.20240606.tar.gz | 23.0 MB | Without provenance | Details for langchain_chatchat-0.3.0.20240606.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_chatchat-0.3.0.20240606-py3-none-any.whl | Python 3 | none | any | Details for langchain_chatchat-0.3.0.20240606-py3-none-any.whl |
Total release size: 46.1 MB
Release files / langchain_chatchat-0.3.0.20240606.tar.gz
| Download URL | langchain_chatchat-0.3.0.20240606.tar.gz |
|---|---|
| Size | 23.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee099aaeeda3d07154f6e9a909d56cdebcec03f959d0df0e8c7d55f5bb68c03c
|
|
BLAKE2b-256 checksum How to use checksums |
539dd2ee2cfffed05acf87ad93772342b1620b3a707d0a7c8567a262379c1a40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.13 Linux/6.9.1-arch1-1
|
Release files / langchain_chatchat-0.3.0.20240606-py3-none-any.whl
| Download URL | langchain_chatchat-0.3.0.20240606-py3-none-any.whl |
|---|---|
| Size | 23.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a230fd0ec26a37bf5cca59fc6074e04f9a3de1b23b2e5567629624b5370ab59b
|
|
BLAKE2b-256 checksum How to use checksums |
61ffaec9bd56d36ab421cfe3719fc49a9420eb524eeca11a769c72aa7d4e38e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.13 Linux/6.9.1-arch1-1
|
Security for langchain-chatchat 0.3.0.20240606
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.