wsxqaza12 / RAG_LangChain_streamlit

18 stars 8 forks source link

點SUBMIT DOCUM出現錯誤訊息 (同下方問題 #6

Open JosephLi0419 opened 5 months ago

JosephLi0419 commented 5 months ago

您好,出現此錯誤: An error occurred: [Errno 2] No such file or directory: '/home/yabilab/Desktop/RAG_LangChain_streamlit/data/tmp/tmplbupn12m.pdf' 感覺再生成Temporary File 出現問題(?) 我完全依照您在Medium的方式操作,並且window跟linux上都出現一樣的問題。 然後有發現裝requirement.txt時有出現錯誤(似乎是python 3.7的問題) 不知道您有沒有當時裝requirement內的東西時的版本,我猜有可能是現在某些東西版本更新了 ,才會出現錯誤~

JosephLi0419 commented 5 months ago

然後用llama.cpp用llm接上您的專案是可以回覆的,問題出現在sumbit pdf而已~

JosephLi0419 commented 5 months ago

安裝時的錯誤如下: ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=3.8.1,<4.0.... ERROR: Could not find a version that satisfies the requirement langchain-community (from versions: none) ERROR: No matching distribution found for langchain-community

JosephLi0419 commented 5 months ago

創建一個tmp資料夾解決了,謝謝!

wsxqaza12 commented 5 months ago

感謝 @JosephLi0419 提問, 我去看了官網, langchain-community 在3月21號更新後就不支援 python 3.7, 我稍後測試一下新版本,再把文件更新,感謝告知 :)

以下是我之前測試的版本: Name Version
langchain 0.1.3
langchain-community 0.0.15
langchain-core 0.1.15
langchain-openai 0.0.3
JosephLi0419 commented 5 months ago

謝謝您的回覆~你的文章都淺顯易懂,很厲害🎉