Closed e68862230 closed 4 months ago
It looks like the issue you're encountering with multi-turn conversations in the Langchain-Chatchat system might be due to how context is managed between questions. The system uses a conversation history to maintain context, which involves tracking the conversation, searching and re-ranking documents, constructing prompts, generating responses, and updating the history. This process is crucial for ensuring that the context from previous questions is considered in subsequent responses.
To address your specific problem, you might need to adjust several configurations related to the milvus
vector library, the number of vectors considered for matching, the score threshold, and the text splitter configuration. These adjustments can help improve the system's ability to handle context in multi-turn conversations. You can find guidance on these configurations in the kb_config.py.example
file in the Langchain-Chatchat repository.
Additionally, there are two issues in the repository that could be relevant: one discussing the implementation of context association in multi-turn Q&A and another addressing repeated answers in multi-turn dialogues. These might offer some insights or solutions to your problem.
Unfortunately, I couldn't find specific changes in the knowledge base Q&A logic between your version and the latest, or detailed interactions between the Qwen-14B model, the bge-large-zh v1.5 embedding model, and the 'milvus' vector library in multi-turn conversations. For further assistance, more detailed information about your setup and the steps you're taking would be helpful.
To continue the conversation, mention @dosu.
你有试过从api里调用么? 我看他api里 knowledgebasechat里是有history这一项的
你有试过从api里调用么? 我看他api里 knowledgebasechat里是有history这一项的
都是webui上面试的,历史会话也打开了
看knowledge_base_chat.py
这个文件的实现,这块没做好,正常情况下应该要根据历史会话去向大模型获取新的向量查询 query 的,但是现在看代码只是拿当前用户的 query 去查的,跟上下文没关系,可以自己改一下
有人实现了吗,用了下确实效果很差
问题描述 / Problem Description 我问关键词“实验室”有哪些人,它可以回答,但是我追问说xxx是做什么的,它就无法查询到答案。。
预期的结果 / Expected Result 正常不是应该它带着人名和上下文中的实验室这个关键词一起去查找么
环境信息 / Environment Information