Langchain-Chatchat/libs/chatchat-server
weiweiw 194437a271 解决es的问题 2025-02-24 10:18:26 +08:00
..
chatchat 解决es的问题 2025-02-24 10:18:26 +08:00
langchain_chatchat first commit 2024-12-20 16:04:03 +08:00
scripts first commit 2024-12-20 16:04:03 +08:00
tests first commit 2024-12-20 16:04:03 +08:00
.env first commit 2024-12-20 16:04:03 +08:00
Makefile first commit 2024-12-20 16:04:03 +08:00
README.md first commit 2024-12-20 16:04:03 +08:00
README_en.md first commit 2024-12-20 16:04:03 +08:00
poetry.toml first commit 2024-12-20 16:04:03 +08:00
pyproject.toml first commit 2024-12-20 16:04:03 +08:00

README_en.md

Project Introduction

! chatchat-space%2FLangchain-Chatchat | Trendshift

pypi badge Generic badge

🌍 READ THIS IN CHINESE

📃 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-Chatchatto Understand the project details.

Installation

  1. PYPI installation
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

  1. Source code installation In addition to installing through Pypi, you can also choose to use source code startup.

(Tips: Source code configuration can help us find bugs faster or improve infrastructure. We do not recommend beginners to use this method

  1. Docker
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

  1. AudoDL 🌐 [AutoDL Image](https://www.codewithgpu.com/i/chatchat-space/Langchain-Chatchat/Langchain-ChatchatMedium 0.3.0 The code used in the version has been updated to version v0.3.0 of this project.

Initialization and Configuration

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.

Start service

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.

Update log:

0.3.1.1 (2024-07-15)

  • Fix:
    • Invalid system message setting in WEBUI (# 4491)
    • The model platform does not support proxies (# 4492)
    • Remove the invalid vqasprocessor&aqa_processor tools (# 4498)
    • Prompt settings error causing 'KeyError: template' (# 4501)
    • Searx search engine does not support Chinese (# 4504)
    • When initializing, it defaults to connecting to xinference. If the default xinference service does not exist, an error will be reported (# 4508)
    • When initializing, call shutil.cpytree, and when src is the same as dst, shutil will report an error (# 4507)

Project milestones

  • April 2023: Langchain ChatGLM 0.1.0 is released, supporting local knowledge base Q&A based on ChatGLM-6B model.
  • August 2023: Langchain ChatGLM will be renamed as Langchain Chatgate and release version 0.2.0, using fastchat as the model loading solution to support more models and databases.
  • October 2023: Langchain Chatcat 0.2.5 is released, featuring Agent content and an open-source project at Founder Park&Zhipu AI&Zilliz` The hackathon held won third prize.
  • December 2023: Langchain Chatcat open-source project receives over 20K stars
  • June 2024: Langchain Watchat 0.3.0 is released, bringing a brand new project architecture.
  • 🔥 Let's look forward to the future stories of Chatchat together···

LICENSE

This project code follows the Apache 2.0 (LICENSE) protocol.

Contact Us

Telegram

Telegram

Quoting

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 }}
}