InternLM / HuixiangDou

HuixiangDou: Overcoming Group Chat Scenarios with LLM-based Technical Assistance
https://openxlab.org.cn/apps/detail/tpoisonooo/huixiangdou-web
BSD 3-Clause "New" or "Revised" License
1.52k stars 127 forks source link

de-serialization relies loading a pickle file need allow_dangerous_deserialization=True #151

Closed weedge closed 8 months ago

tpoisonooo commented 8 months ago

I guess that is a version problem, see https://stackoverflow.com/questions/78120202/de-serialization-relies-loading-a-pickle-file and https://community.dataiku.com/t5/Setup-Configuration/When-using-RAG-in-Prompt-Studio-an-error-occurs/m-p/41636

Thanks for your contribution !

tpoisonooo commented 8 months ago
TypeError: __init__() got an unexpected keyword argument 'allow_dangerous_deserialization' 

Let me try to fix it, qaq~

tpoisonooo commented 8 months ago

This parameter requires langchain>=0.1.12, see https://api.python.langchain.com/en/latest/vectorstores/langchain_community.vectorstores.faiss.FAISS.html

so this PR merged here https://github.com/InternLM/HuixiangDou/pull/154

cc @weedge

weedge commented 8 months ago

langchain 0.1.12

!pip list | grep langchain
langchain                        0.1.12
langchain-community              0.0.28
langchain-core                   0.1.32
langchain-text-splitters         0.0.1
weedge commented 8 months ago

@tpoisonooo maybe use langchain==0.1.12 , if langchain upgrad, maybe have same issue

tpoisonooo commented 8 months ago

@tpoisonooo maybe use langchain==0.1.12 , if langchain upgrad, maybe have same issue

Yes it needs langchain>=0.1.12, requirements.txt in main branch already updated.