当前位置: 首页> 游戏> 单机 > win10 langchain-chatchat-0.3.1安装及测试

win10 langchain-chatchat-0.3.1安装及测试

时间:2025/7/9 12:09:32来源:https://blog.csdn.net/lwprain/article/details/140396983 浏览次数:0次

git clone https://github.com/chatchat-space/Langchain-Chatchat.git
conda create -n langchain3 python==3.11
conda activate langchain3

xinference安装用另一篇文章的内容处理。

pip install langchain-chatchat -U -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install langchain-chatchat[xinference] -U -i https://pypi.tuna.tsinghua.edu.cn/simple

pip install faiss-cpu==1.7.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install xinference_client faiss-gpu “unstructured[pdf]” -i https://pypi.tuna.tsinghua.edu.cn/simple

chatchat --help 命令行帮助
chatchat init
chatchat kb 初始化知识库
chatchat start -a 启动服务

会自动生成几个文件
basic_settings.yaml
kb_settings.yaml
model_settings.yaml
prompt_settings.yaml
tool_settings.yaml

主要是改model_settings.yaml
DEFAULT_LLM_MODEL: qwen1.5-chat
DEFAULT_EMBEDDING_MODEL: bge-large-zh-v1.5
platform_name: xinference
platform_type: xinference
api_base_url: http://127.0.0.1:9997/v1
llm_models: qwen1.5-chat
embed_models: bge-large-zh-v1.5

关键字:win10 langchain-chatchat-0.3.1安装及测试

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: