Knowledge Retrieval
Last updated
Last updated
The Knowledge Base Retrieval Node is designed to fetches relevant text content from a , which can then be used as context for subsequent answers by the Large Language Model (LLM).
Configuring the Knowledge Base Retrieval Node involves three main steps:
Selecting the Query Variable
Choosing the Knowledge Base for Query
Configuring the Retrieval Strategy
Selecting the Query Variable
The query variable typically corresponds to the user's input question, which is essential for retrieving relevant information from the knowledge base that aligns with the user's query. In this context, the query variable is class_name
, which is the output of the question classifier node. For example, if the classifier identifies the issue as related to hardware, class_name
would be set to hardware Issue
.
Choosing the Knowledge Base for Query
Configuring the Retrieval Strategy
Within the knowledge base retrieval node, you can add an existing knowledge base from Rnet. For instructions on creating a knowledge base within Rnet, please refer to the
It's possible to modify the indexing strategy and retrieval mode for an individual knowledge base within the node. For a detailed explanation of these settings, refer to the knowledge base Rnet 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 .