choose_your_knowledge_base_workflow.json


Overview

The choose_your_knowledge_base_workflow.json file defines a conversational retrieval workflow designed to let users select a knowledge base from a dropdown menu and then query that selected knowledge base to generate accurate, knowledge-base-specific responses.

This workflow orchestrates multiple components:

The primary goal is to ensure that answers are generated exclusively from the selected knowledge base, preventing any hallucination or inference beyond the retrieved documents, and maintaining transparency about the information source.


Components and Their Roles

1. Begin Component (begin)


2. Retrieval Component (Retrieval:RudeCyclesKneel)


3. Agent Component (Agent:ProudDingosShout)


4. Message Component (Message:DarkRavensType)


Workflow Flow Summary

  1. The user is greeted and selects a knowledge base from a dropdown.

  2. User inputs a query.

  3. The Retrieval component fetches relevant documents from the selected knowledge base.

  4. The Agent component generates a response strictly based on the retrieved content.

  5. The Message component outputs the answer.


Important Implementation Details


Interaction with Other Parts of the System


Visual Diagram

flowchart LR
    Begin["Begin\n- Knowledge base selection\n- User query input"] --> Retrieval["Retrieval\n- Fetch docs from selected KB"]
    Retrieval --> Agent["Agent\n- Generate answers strictly from retrieval"]
    Agent --> Message["Message\n- Output response to user"]

    subgraph Notes
        N1["Note: Configure dropdown with knowledge bases"]
        N2["Note: Retrieval uses selected KB"]
        N3["Note: Agent answers based on retrieval only"]
    end

    Begin --- N1
    Retrieval --- N2
    Agent --- N3

Summary

This JSON file defines a modular, strict knowledge base question-answering workflow that guides users through selecting a knowledge base, retrieving relevant documents, and generating precise answers based on those documents only. It emphasizes accuracy, source transparency, and strict adherence to the selected knowledge base content, making it suitable for enterprise or documentation-focused QA systems.