Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

txt 未能成功加载

Open forrestneo opened this issue 1 year ago • 3 comments

hinese. Creating a new one with MEAN pooling. 合并文本 - 副本.txt 未能成功加载 Traceback (most recent call last): File "/home/zsd/.local/lib/python3.10/site-packages/gradio/routes.py", line 395, in run_predict output = await app.get_blocks().process_api( File "/home/zsd/.local/lib/python3.10/site-packages/gradio/blocks.py", line 1193, in process_api result = await self.call_function( File "/home/zsd/.local/lib/python3.10/site-packages/gradio/blocks.py", line 916, in call_function prediction = await anyio.to_thread.run_sync( File "/home/zsd/.local/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "/home/zsd/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "/home/zsd/.local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run result = context.run(func, *args) File "/home/zsd/langchain-ChatGLM/webui.py", line 31, in get_answer resp, history = kb.get_knowledge_based_answer( File "/home/zsd/langchain-ChatGLM/knowledge_based_chatglm.py", line 95, in get_knowledge_based_answer retriever=vector_store.as_retriever(search_kwargs={"k": VECTOR_SEARCH_TOP_K}), AttributeError: 'NoneType' object has no attribute 'as_retriever'

forrestneo avatar Apr 15 '23 05:04 forrestneo