Open tzdmwwdz opened 2 weeks ago
@tzdmwwdz Hello there! I'm here to help you with bug solving, answering questions, or becoming a contributor. Let's work together to resolve any issues you may have.
To resolve the inconsistency between the workflow query results and the backend knowledge base recall results in your self-hosted Dify version 0.6.10 (Docker), you should consider the recall mode you are using. Dify supports two recall modes: N选1召回模式 (N-to-1 recall mode) and 多路召回模式 (multi-path recall mode).
N选1召回模式 (N-to-1 recall mode):
多路召回模式 (multi-path recall mode):
To improve consistency, you should:
Switch to Multi-path Recall Mode: If you are currently using the N选1召回模式, consider switching to the 多路召回模式. This mode is more robust for applications with multiple datasets and can provide higher quality recall results.
Configure Rerank Model: Ensure that you have configured the Rerank model correctly to improve the semantic reordering of the retrieved documents.
Here is a brief guide on how to switch to multi-path recall mode:
Additionally, ensure that you have properly configured the Knowledge Base Retrieval Node by following these steps:
Moreover, ensure that your workflow configurations are synchronized correctly. You can use the WorkflowToolConfigurationUtils
class to check and validate your workflow graph variables and tool parameter configurations. Here is a brief overview of the relevant methods:
ValueError
if there is a mismatch.By following these steps and ensuring proper synchronization of your workflow configurations, you should be able to resolve the inconsistency between the workflow query results and the backend knowledge base recall results [1][2][3][4].
To continue talking to Dosu, mention @dosu.
The multi-path recall is already in use.
The configuration should not be the problem. This is because some queries are able to return correct results from the knowledge base.
Self Checks
Dify version
0.6.10
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Sometimes in the workflow, the query did not return any results, but the backend knowledge base received the query and there was no issue with the recall during testing.
✔️ Expected Behavior
The query information in the workflow and the recall results from the knowledge base are consistent.
❌ Actual Behavior