You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题描述 / Problem Description
界面添加文档到知识库正常但是使用milvus知识库提问报错/ Describe the problem in a clear and concise manner.
复现问题的步骤 / Steps to Reproduce
执行 python init_database.py 启动api以及webui
点击对话,选择知识库问答,输入问题
3
. 问题出现 / Problem occurs
api日志:
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/home/Langchain-Chatchat/server/chat/knowledge_base_chat.py", line 57, in knowledge_base_chat_iterator
docs = search_docs(query, knowledge_base_name, top_k, score_threshold)
File "/home/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 26, in search_docs
docs = kb.search_docs(query, top_k, score_threshold)
File "/home/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 119, in search_docs
docs = self.do_search(query, top_k, score_threshold, embeddings)
TypeError: MilvusKBService.do_search() takes 4 positional arguments but 5 were given 预期的结果 / Expected Result
正常作答
问题描述 / Problem Description
界面添加文档到知识库正常但是使用milvus知识库提问报错/ Describe the problem in a clear and concise manner.
复现问题的步骤 / Steps to Reproduce
3
. 问题出现 / Problem occurs
api日志:
File "/root/miniconda3/envs/langchain/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
async for chunk in self.body_iterator:
File "/home/Langchain-Chatchat/server/chat/knowledge_base_chat.py", line 57, in knowledge_base_chat_iterator
docs = search_docs(query, knowledge_base_name, top_k, score_threshold)
File "/home/Langchain-Chatchat/server/knowledge_base/kb_doc_api.py", line 26, in search_docs
docs = kb.search_docs(query, top_k, score_threshold)
File "/home/Langchain-Chatchat/server/knowledge_base/kb_service/base.py", line 119, in search_docs
docs = self.do_search(query, top_k, score_threshold, embeddings)
TypeError: MilvusKBService.do_search() takes 4 positional arguments but 5 were given
预期的结果 / Expected Result
正常作答
实际结果 / Actual Result
界面报错
环境信息 / Environment Information
附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
The text was updated successfully, but these errors were encountered: