DbChat 相关部署运行资料
#github地址
https://github.com/eosphoros-ai/DB-GPT
#国内镜像地址
https://hub.nuaa.cf/eosphoros-ai/DB-GPT
#中文文档地址
https://www.yuque.com/eosphoros/dbgpt-docs
2、环境配置
#配置conda
conda create -n dbgpt_env python=3.10
#激活conda
conda activate dbgpt_env
#安装环境
pip install -e ".[default]"
cp .env.template .env
#cuda 不匹配时的处理
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
#cannot import name 'COMMON_SAFE_ASCII_CHARACTERS' from #'charset_normalizer.constant' (D:\miniconda3\conda_env\envs\chatglm3\lib\site-#packages\charset_normalizer\constant.py)
pip install chardet
#ImportError: cannot import name 'Doc' from 'typing_extensions' (D:\miniconda3\conda_env\envs\chatglm3\lib\site-packages\typing_extensions.py)
pip install typing_extensions==4.8.0
# --force-reinstall
#streamlit run .\web_demo2.py
conda install langchain[all]
conda install typing_extensions==4.8.0
import nltk
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
No sentence-transformers model found with name C:\Users\Nbad/.cache\torch\sentence_transformers\GanymedeNil_text2vec-large-chinese. Creating a new one with MEAN pooling.
Embedding dimension 768 does not match collection dimensionality 1024
成熟的方案
https://zhuanlan.zhihu.com/p/630049721?utm_id=0&wd=&eqid=a8a29c690004eea4000000066475cf00