Chapter 3: The GovBot Architecture — Metabots, Common Bot Objects (CBots) & Collection

3.1 Architectural Philosophy: Modularity and Interoperability

The GovBot architecture is inspired by federalism: a central government (Metabot) working with state governments (CBots) under a common constitution (Collections and Standards). This loosely coupled, modular approach ensures that:

This architecture aligns with the GovStack Building Block methodology, treating GovBot itself as a horizontal, reusable component that can orchestrate interactions across other DPI components.

3.2 The Metabot (GovBot): The Central Orchestrator and Public Face

The Metabot serves as the single point of entry for citizens and the main "face" of the service. Its key responsibilities include:

A) Primary Functions

B) Technical Characteristics

3.3 CBots: Specialised Agency Assistants

Each CBot (Common Bot Object) is a dedicated conversational AI for a specific ministry, department, or agency (MDA). Examples include:

Each CBot Contains:

a) Specialised NLP Components

b) Conversation Management

c) Administrative Interface

Benefits of the CBot Approach

3.4 Collections: The Centralised Knowledge Fabric with RAG

Collections form the cornerstone of accuracy and trust in the GovBot ecosystem. They are a centralized, vector-based knowledge store that all bots query using Retrieval-Augmented Generation (RAG).

A) The RAG Process in Detail

1. Ingestion Phase

Official Documents → Text Extraction → Chunking → Vectorisation → Vector Database

pgsql Copy code

2. Vectorisation
3. Retrieval Process

User Query → Query Vectorisation → Similarity Search → Relevant Chunks Retrieval

pgsql Copy code

4. Augmentation and Generation

Relevant Chunks + User Query → LLM Prompt → Verified Response + Citations

markdown Copy code

5. Response Delivery
6. Suggested Queries

B) Benefits of the RAG Approach

3.5 Data Flows and Integration Pattern

A) System Architecture Overview: Key Integration Points

1. User to Metabot Communication
2. Metabot to CBot Routing
3. CBot to Collections Querying
4. CBot to Building Block Integration

B) Data Security and Privacy

C) Performance Considerations


Revision #5
Created 2026-03-04 08:34:49 UTC by Angela
Updated 2026-03-04 11:07:23 UTC by Angela