Data Flow Overview
Status
Owner: Tech lead · Status: draft · Canonical source: training/diagrams/FleziGalaxy-Architectures/
This document maps how user data, conversation context, documents, and runtime events flow through the Flezi Galaxy platform across their full lifecycle.
Five Primary Data Flows
- Chat & Run Execution: User query flows to Backend, triggers AI Runtime with context, calls LLMs/Sandbox tools, and streams events back via Redis Stream and SSE.
- Document & Knowledge Pipeline: Documents uploaded to Blob Storage, chunked, embedded, and indexed into Azure AI Search for hybrid vector retrieval.
- Workflow & Human-in-the-Loop: Multi-step DAG execution pauses at approval gates, checkpoints state, and resumes upon human review.
- Observability & Governance: Spans, metrics, and token usage are sent asynchronously to MLflow Tracking Server and summarized on the Governance Dashboard.
- Third-Party & LLM Integration: Enforces zero-data-retention and no-training policies when interacting with enterprise LLM provider endpoints.
Detailed Flow Pages
- Chat Run Data Flow
- Document & Knowledge Pipeline Data Flow
- Workflow & HITL Data Flow
- Observability & Governance Data Flow
- Third-Party & LLM Data Flow
Existing Controls
- Clear separation between transient streaming events and durable persisted messages.
- Sensitive credentials stripped before payload transmission.
Evidence (Files & Configuration)
flezi.app.ai.agent/docs/specs/00-architecture/master-architecture.mdflezi.app.ai.agent/docs/specs/01-contracts/event-payload-contract.md
Limitations & Roadmap
- Client-side encryption option for enterprise documents before ingestion into knowledge bases.