移动项目模块

This commit is contained in:
glide-the 2024-03-27 10:12:28 +08:00
parent bc7f01925f
commit 9260039672
774 changed files with 830 additions and 1266 deletions

View File

@ -1,4 +1,4 @@
![](chatchat/img/logo-long-chatchat-trans-v2.png)
![](chatchat-server/chatchat/img/logo-long-chatchat-trans-v2.png)
🌍 [READ THIS IN ENGLISH](README_en.md)
🌍 [日本語で読む](README_ja.md)
@ -47,11 +47,11 @@ OpenAI GPT API 的调用,并将在后续持续扩充对各类模型及模型 A
📺 [原理介绍视频](https://www.bilibili.com/video/BV13M4y1e7cN/?share_source=copy_web&vd_source=e6c5aafe684f30fbe41925d61ca6d514)
![实现原理图](chatchat/img/langchain+chatglm.png)
![实现原理图](chatchat-server/chatchat/img/langchain+chatglm.png)
从文档处理角度来看,实现流程如下:
![实现原理图2](chatchat/img/langchain+chatglm2.png)
![实现原理图2](chatchat-server/chatchat/img/langchain+chatglm2.png)
🚩 本项目未涉及微调、训练过程,但可利用微调或训练对本项目效果进行优化。
@ -152,17 +152,17 @@ $ python startup.py -a
1. FastAPI Docs 界面
![](chatchat/img/fastapi_docs_026.png)
![](chatchat-server/chatchat/img/fastapi_docs_026.png)
2. Web UI 启动界面示例:
- Web UI 对话界面:
![img](chatchat/img/LLM_success.png)
![img](chatchat-server/chatchat/img/LLM_success.png)
- Web UI 知识库管理页面:
![](chatchat/img/init_knowledge_base.jpg)
![](chatchat-server/chatchat/img/init_knowledge_base.jpg)
### 注意
@ -193,12 +193,12 @@ $ python startup.py -a
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white "langchain-chatglm")](https://t.me/+RjliQ3jnJ1YyN2E9)
### 项目交流群
<img src="chatchat/img/qr_code_96.jpg" alt="二维码" width="300" />
<img src="chatchat-server/chatchat/img/qr_code_96.jpg" alt="二维码" width="300" />
🎉 Langchain-Chatchat 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
### 公众号
<img src="chatchat/img/official_wechat_mp_account.png" alt="二维码" width="300" />
<img src="chatchat-server/chatchat/img/official_wechat_mp_account.png" alt="二维码" width="300" />
🎉 Langchain-Chatchat 项目官方公众号,欢迎扫码关注。

View File

@ -1,4 +1,4 @@
![](chatchat/img/logo-long-chatchat-trans-v2.png)
![](chatchat-server/chatchat/img/logo-long-chatchat-trans-v2.png)
🌍 [中文文档](README.md)
🌍 [日本語で読む](README_ja.md)
@ -53,11 +53,11 @@ to `LLM` to generate an answer.
📺[video introduction](https://www.bilibili.com/video/BV13M4y1e7cN/?share_source=copy_web&vd_source=e6c5aafe684f30fbe41925d61ca6d514)
![实现原理图](chatchat/img/langchain+chatglm.png)
![实现原理图](chatchat-server/chatchat/img/langchain+chatglm.png)
The main process analysis from the aspect of document process:
![实现原理图2](chatchat/img/langchain+chatglm2.png)
![实现原理图2](chatchat-server/chatchat/img/langchain+chatglm2.png)
🚩 The training or fine-tuning are not involved in the project, but still, one always can improve performance by do
these.
@ -147,17 +147,17 @@ $ python startup.py -a
1. FastAPI docs interface
![](chatchat/img/fastapi_docs_026.png)
![](chatchat-server/chatchat/img/fastapi_docs_026.png)
2. webui page
- Web UI dialog page:
![img](chatchat/img/LLM_success.png)
![img](chatchat-server/chatchat/img/LLM_success.png)
- Web UI knowledge base management page:
![](chatchat/img/init_knowledge_base.jpg)
![](chatchat-server/chatchat/img/init_knowledge_base.jpg)
### Note
@ -192,8 +192,8 @@ please refer to the [Wiki](https://github.com/chatchat-space/Langchain-Chatchat/
### WeChat Group
<img src="chatchat/img/qr_code_90.jpg" alt="二维码" width="300" height="300" />
<img src="chatchat-server/chatchat/img/qr_code_90.jpg" alt="二维码" width="300" height="300" />
### WeChat Official Account
<img src="chatchat/img/official_wechat_mp_account.png" alt="图片" width="900" height="300" />
<img src="chatchat-server/chatchat/img/official_wechat_mp_account.png" alt="图片" width="900" height="300" />

View File

@ -1,4 +1,4 @@
![](chatchat/img/logo-long-chatchat-trans-v2.png)
![](chatchat-server/chatchat/img/logo-long-chatchat-trans-v2.png)
🌍 [中文文档](README.md)
🌍 [READ THIS IN ENGLISH](README_en.md)
@ -54,11 +54,11 @@ Q&Aソリューションを構築することです。
📺[video introduction](https://www.bilibili.com/video/BV13M4y1e7cN/?share_source=copy_web&vd_source=e6c5aafe684f30fbe41925d61ca6d514)
![实现原理图](chatchat/img/langchain+chatglm.png)
![实现原理图](chatchat-server/chatchat/img/langchain+chatglm.png)
文書プロセスの側面からの主なプロセス分析:
![实现原理图2](chatchat/img/langchain+chatglm2.png)
![实现原理图2](chatchat-server/chatchat/img/langchain+chatglm2.png)
🚩 トレーニングやファインチューニングはプロジェクトには含まれないが、これらを行うことで必ずパフォーマンスを向上させることができます。
@ -144,17 +144,17 @@ $ python startup.py -a
1. FastAPI docs インターフェース
![](chatchat/img/fastapi_docs_026.png)
![](chatchat-server/chatchat/img/fastapi_docs_026.png)
2. webui ページ
- Web UI ダイアログページ:
![img](chatchat/img/LLM_success.png)
![img](chatchat-server/chatchat/img/LLM_success.png)
- Web UI ナレッジベースマネジメントページ:
![](chatchat/img/init_knowledge_base.jpg)
![](chatchat-server/chatchat/img/init_knowledge_base.jpg)
### 注
@ -185,8 +185,8 @@ $ python startup.py -a
### WeChat グループ
<img src="chatchat/img/qr_code_90.jpg" alt="二维码" width="300" height="300" />
<img src="chatchat-server/chatchat/img/qr_code_90.jpg" alt="二维码" width="300" height="300" />
### WeChat 公式アカウント
<img src="chatchat/img/official_wechat_mp_account.png" alt="图片" width="900" height="300" />
<img src="chatchat-server/chatchat/img/official_wechat_mp_account.png" alt="图片" width="900" height="300" />

View File

@ -1,37 +1,23 @@
### 加入开发
#### 依赖管理Poetry与env/dependency管理方法
这个项目使用 Poetry 来管理依赖。
> 注意在安装Poetry之前如果您使用Conda请创建并激活一个新的Conda env例如`conda create-n chatchat python=3.9`
git mv .\chatchat-server\agent .\chatchat_server\
git mv .\chatchat-server\api_server .\chatchat_server\
git mv .\chatchat-server\callback_handler .\chatchat_server\
git mv .\chatchat-server\chat .\chatchat_server\
git mv .\chatchat-server\db .\chatchat_server\
git mv .\chatchat-server\document_loaders .\chatchat_server\
git mv .\chatchat-server\knowledge_base .\chatchat_server\
git mv .\chatchat-server\memory .\chatchat_server\
git mv .\chatchat-server\reranker .\chatchat_server\
git mv .\chatchat-server\text_splitter .\chatchat_server\
git mv .\chatchat-server\__init__.py .\chatchat_server\
git mv .\chatchat-server\api_allinone_stale.py .\chatchat_server\
git mv .\chatchat-server\llm_api_shutdown.py .\chatchat_server\
git mv .\chatchat-server\llm_api_stale.py .\chatchat_server\
git mv .\chatchat-server\localai_embeddings.py .\chatchat_server\
git mv .\chatchat-server\minx_chat_openai.py .\chatchat_server\
git mv .\chatchat-server\pydantic_types.py .\chatchat_server\
git mv .\chatchat-server\utils.py .\chatchat_server\
git mv .\chatchat-server\webui_allinone_stale.py .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
git mv .\chatchat-server\ .\chatchat_server\
Install Poetry: [documentation on how to install it.](https://python-poetry.org/docs/#installing-with-pipx)
> 注意: 如果您使用 Conda 或 Pyenv 作为您的环境/包管理器在安装Poetry之后
> 使用如下命令使Poetry使用virtualenv python environment (`poetry config virtualenvs.prefer-active-python true`)
#### 本地开发环境安装
- 选择主项目目录
```
cd chatchat
```
- 安装chatchat依赖(for running chatchat lint\tests):
```
poetry install --with lint,test
```

View File

@ -1,6 +1,6 @@
import os
from configs.basic_config import DATA_PATH
from chatchat.configs.basic_config import DATA_PATH
# 默认使用的知识库

Some files were not shown because too many files have changed in this diff Show More