项目官方地址:https://github.com/chatchat-space/Langchain-Chatchat
项目wiki:https://github.com/chatchat-space/Langchain-Chatchat/wiki/
根据官方地址部署出来有坑,那就是执行python init_database.py --recreate-vs的时候会报错,那是因为模型路径不对,需要手动修改配置文件config目录下的model_config.py中的"llm_model"下的模型路径,这个针对你用的什么模型而定。
系统搭建好之后上传文件又会报403错误(知识库上传文件失败:AxiosError: Request failed with status code 403),这是因为langchain-chatchat版本0.2.10和新版Streamlit不兼容,需要降级到老版本。先卸载新版本Streamlit再执行pip install streamlit==1.28.2安装老版本问题就解决了。
有时候知识库创建完成后(本地knowledge_base目录下已经有了),但上传文件提示找不到知识库,这是因为没有初始化需要执行python init_database.py --recreate-vs。
加没加本地只是效果还是非常明显,见图

文章评论