个人知识库LangChain-Chatchat部署问题记录
需要在服务器上部署个人知识库,记录所遇到的问题以及解决方案。大多数的问题都可以在github上找到对应的解答。所以遇到bug先看github的issue。
- 可以参考这边博文来进行部署:https://zhuanlan.zhihu.com/p/652530137
- 项目地址:https://github.com/chatchat-space/Langchain-Chatchat
- 对应项目issue解答:https://github.com/chatchat-space/Langchain-Chatchat/issues
- 项目踩坑记录:https://zhuanlan.zhihu.com/p/649055955
- hugging face最近上不去了,看别人博客有提到一个好用的镜像,先码下来。
https://link.zhihu.com/?target=https%3A//aliendao.cn/ - 运行webui.py报错,issue上有:
WARNING streamlit.runtime.state.session_state_proxy: Session state does not function when running a script withoutstreamlit run
https://github.com/chatchat-space/Langchain-Chatchat/issues/1323 - 记得初始化
- 运行server/llm_api.py报错
Traceback (most recent call last):
File “server/llm_api.py”, line 2, in
from configs.model_config import logger, log_verbose, LLM_MODEL, HTTPX_DEFAULT_TIMEOUT
ModuleNotFoundError: No module named ‘configs’
最近更新了master分支,出现的报错问题,github上的issue尚未解决这个问题,看着是导包的问题。
添加了具体config的文件路径
import sys
sys.path.append('config文件夹的绝对路径')
解决了,直接运行没有报错了。LLM和知识库都可以正常使用。