Knowledge Base

Retrieve knowledge in a workflow

Configure retrieval and an answer

  1. Declare a string input named question in Start.
  2. Add Knowledge Retrieval, choose a knowledge base and reference question as the query.
  3. Set the recall count, Alpha and metadata conditions.
  4. Reference the question and retrieval output in the LLM node and enter the answer instruction.
  5. Connect the LLM output to End.
  6. Save and test. Inspect passages and sources in the retrieval node, then read the final answer.

If results differ from knowledge base testing, compare the target, query text, parameters and metadata conditions. See the Knowledge Retrieval node for field details.