Skip to main content

Main Workflow

02/07/2026

GraphRAG version 1.2.0

The Main workflow is used as an orchestrator. This workflow receives the actual request for an answer, along with all required information, and orchestrates all the business logic to answer the question. The following shows the main workflow:

GW_WORKFLOW.png
  1. Pre-processing:

    mainWorkflowPart1of6.png
    1. Input Guardrails

      mainWorkflowPart2of6.png
  2. Data Gathering

    1. Short-term memory

      mainWorkflowPart3of6.png
    2. Parallel Steps

      mainWorkflowPart4of6.png
  3. Main Answer

    mainWorkflowPart5of6.png
  4. Post-answer processing

    1. Parallel steps

      mainWorkflowPart6of6.png

To avoid having a large single workflow, we separate different business logic into different sub-workflows. From the main workflow, we call the sub-orchestrator for each stage.

In this workflow you can also see the approach used to send SSE messages. Typically, this involves a pair of Build and Send nodes accompanied by a colored sticky note and a description, as shown in the example below:

image28.png