Configuring the Knowledge Base Retrieval Node involves four main steps:
- Selecting the Query Variable
- Choosing the Knowledge Base for Query
- Applying Metadata Filtering
- Configuring the Retrieval Strategy
Dify offers two recall strategies for different knowledge base retrieval scenarios: “N-to-1 Recall” and “Multi-way Recall”. In the N-to-1 mode, knowledge base queries are executed through function calling, requiring the selection of a system reasoning model. In the multi-way recall mode, a Rerank model needs to be configured for result re-ranking. For a detailed explanation of these two recall strategies, refer to the retrieval mode explanation in the help documentation.
