libs/chatchat-server/README_en.md
! <a href=" https://trendshift.io/repositories/329 " target="_blank"></a>
📃 LangChain Chatchat (formerly Langchain ChatGLM)
An open-source and offline deployable RAG and Agent application project based on major language models such as ChatGLM and application frameworks such as Langchain. Click [here](https://github.com/chatchat-space/Langchain-Chatchat)to Understand the project details.
pip install langchain-chatchat
# or if you use xinference to provide model API:
# pip install langchain-chatchat[xinference]
# if you update from an old version, we suggest to run init again to update yaml templates:
# pip install -U langchain-chatchat
# chatchat init
Please refer to the Installation Guide for details.
Attention: Chatchat should be placed in a separate virtual environment, such as conda, venv, virtualienv, etc
Known issue, cannot be installed together with xinference, which may cause some plugins to have bugs, such as file upload issues
(Tips: Source code configuration can help us find bugs faster or improve infrastructure. We do not recommend beginners to use this method
docker pull chatimage/chatchat:0.3.1.2-2024-0720
docker pull ccr.ccs.tencentyun.com/chatchat/chatchat:0.3.1.2-2024-0720 # 国内镜像
[!important] Strong recommendation: Use docker compose for deployment, refer to README.docker for details
0.3.0
The code used in the version has been updated to version v0.3.0 of this project.The project requires specific data directories and configuration files for operation. The following commands can generate default configurations (you can modify the YAML configuration file at any time):
# set the root path where storing data.
# will use current directory if not set
export CHATCHAT_ROOT=/path/to/chatchat_data
# initialize data and yaml configuration templates
chatchat init
You can find the *_ settings.yaml files in CHATCHAT-ROOT or the current directory. Modify these files to select the appropriate model configuration. See Initialization for details.
After ensuring that all configurations are correct (especially LLM and Embedding Model), execute the following commands to create the default knowledge base and start the service:
chatchat kb -r
chatchat start -a
If there are no errors, the browser page will automatically pop up.
This project code follows the Apache 2.0 (LICENSE) protocol.
If this project has been helpful for your research, please cite us:
@software{langchain_chatchat,
title = {{langchain-chatchat}},
author = {Liu, Qian and Song, Jinke, and Huang, Zhiguo, and Zhang, Yuxuan, and glide-the, and Liu, Qingwei},
year = 2024,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{ https://github.com/chatchat-space/Langchain-Chatchat }}
}