RNet AI
  • INTRODUCTION
    • About Rnet
    • Quickstart
    • Core Concepts
      • List of Model Providers
  • GETTING STARTED
    • Model
      • Add New Provider
      • Predefined Model Integration
      • Custom Model Integration
      • Interfaces
      • Schema
    • Application Orchestration
      • Overview
      • Interactive Chat Application
      • Agent
      • App Kits
    • Workflow
      • Core Concepts
      • Node Overview
        • Start
        • Question Classifier
        • Knowledge Retrieval
        • Variable Aggregator
        • LLM
        • Direct Reply
        • IF/ELSE
        • HTTP Request
        • End
    • Knowledge Base
Powered by GitBook
On this page
  • 1. Definition
  • 2. Scenarios
  • 3. Format Requirements
  1. GETTING STARTED
  2. Workflow
  3. Node Overview

Variable Aggregator

PreviousKnowledge RetrievalNextLLM

Last updated 9 months ago

1. Definition

The variable aggregation node is an important part of the workflow. It combines the results from different branches into one single variable. This means that no matter which branch of the workflow is executed, the results can all be accessed through this unified variable.

This is especially helpful when your workflow has multiple branches or paths. Instead of defining the same type of variable multiple times in different part of your workflow, the variable aggregator node gathers them all into one. This simplifies process and makes it easier to use these results in later steps of the workflow.

2. Scenarios

Through variable aggregation, you can aggregate multiple outputs, such as from issue classification or conditional branching, into a single output for use and manipulation by downstream nodes, simplifying data flow management.

Multi-Branch Aggregation after Issue Classification

Without variable aggregation, the branches of Classification 1 and Classification 2, after different knowledge base retrievals, would require repeated definitions for downstream LLM and direct response nodes.

By adding variable aggregation, the outputs of the two knowledge retrieval nodes can be aggregated into a single variable.

Multi-Branch Aggregator after IF/Else Conditional Branching

3. Format Requirements

The variable aggregator supports aggregating various data types, including strings (String), numbers (Number), objects (Object), and arrays (Array).

The variable aggregator can only aggregate variables of the same data type. If the first variable added to the variable aggregation node is of the String data type, subsequent connections will automatically filter and allow only String type variables to be added.

Aggregation Grouping

When aggregation grouping is enabled, the variable aggregator can aggregate multiple groups of variables, with each group requiring the same data type for aggregation.

Issue Classification (without Variable Aggregation)
Multi-Branch Aggregation after Issue Classification