How tom-halland/vivid_visualization_matrix works
Purpose and Runtime
This is a Vite-served React frontend that demonstrates observability views for multi-agent LLM and evaluative RAG workflows. It is a standalone visualization application, not an agent runtime: pipeline activity, failures, and routing states are simulated in the UI.
Primary browser entry and React mount:
• index.html
• src/main.jsx
• src/App.jsx
Application Composition
App is the dashboard shell and composes the two primary visualization widgets. It owns the page-level presentation and is the natural integration point for replacing demo controls/data with live observability events.
• src/App.jsx
• src/App.css
• src/index.css
Agentic Pipeline Sankey
AgenticSankey renders the pipeline-flow view: a Sankey topology representing prompt progression through router, retrieval, synthesis, evaluation, tool activity, and error/feedback paths. Its interactive controls vary simulated pipeline complexity and error injection, which in turn alter node/link weights and bottleneck visibility.
• src/components/AgenticSankey.jsx
• src/components/visualizations.js
• src/styles/visualizations.css
The key data boundary is from local UI state and generated graph data into D3/D3-Sankey layout/rendering. A production adapter would transform tracing spans, agent events, token/context metrics, and error events into the component’s node/link model.
Evaluative RAG State Machine
RAGStateMachine presents conditional RAG-loop control flow. User-selected query states activate paths for successful retrieval, irrelevant-context rewriting and retrieval retry, or hallucination recovery from generation back to rewriting.
• src/components/RAGStateMachine.jsx
• src/components/visualizations.js
• src/styles/visualizations.css
The component’s boundary is semantic routing state to graph highlighting/rendering. It models decisions made by retriever, grader/evaluator, generator, and query-rewriter stages rather than invoking those services.
Visualization and Interaction Flow
At runtime, the browser mounts React through src/main.jsx, renders the application shell in src/App.jsx, and loads widget-specific visualization logic. Each widget maintains local interaction state, derives the active graph representation, then delegates layout/drawing to its visualization engine.
The shared export surface is:
• src/components/visualizations.js
• src/components/AgenticSankey.jsx
• src/components/RAGStateMachine.jsx
This enables the widgets to be embedded independently in another React dashboard.
Rendering Dependencies and Infrastructure
The frontend uses React with Vite for development/build delivery, with D3 and D3-Sankey for flow visualization and Mermaid for directed graph/state-machine rendering, as declared by the project package manifest.
• package.json
• vite.config.js
• package-lock.json
There is no backend, persistence layer, authentication system, or live external observability/LLM API represented in the repository. CI includes GitHub Actions automation, but it is outside the browser architecture:
• .github/workflows/repoowl-analyze.yml
Main entry points: App.jsx Dashboard shell · AgenticSankey.jsx Agentic Sankey · RAGStateMachine.jsx RAG state machine · main.jsx React mount
Components 14
Browser Runtime
- Vite delivery · Serves and builds the standalone frontend.
vite.config.js - HTML entry
index.html - React mount
src/main.jsx - Dashboard shell · Page-level integration point for both demo views.
src/App.jsx - Shell styles
src/App.css - Global styles
src/index.css
Observability Widgets
- Agentic Sankey · Simulates agent pipeline flow, complexity, and injected errors.
src/components/AgenticSankey.jsx - RAG state machine · Simulates conditional retrieval, rewrite, and hallucination recovery paths.
src/components/RAGStateMachine.jsx - Widget export surface · Shared embedding surface for both visualization widgets.
src/components/visualizations.js - Local pipeline graph · Local interaction state derives node/link weights and active flow.
src/components/AgenticSankey.jsx - Semantic routing state · Selected query outcome determines highlighted RAG paths.
src/components/RAGStateMachine.jsx
Rendering Engines
- D3 and D3-Sankey · Computes layout and draws the Sankey topology.
package.json - Mermaid · Renders the directed RAG state graph.
package.json - Visualization styles
src/styles/visualizations.css
Connections 15
- Vite delivery → HTML entry: serves
- HTML entry → React mount: loads
- React mount → Dashboard shell: mounts
- Dashboard shell → Agentic Sankey: composes
- Dashboard shell → RAG state machine: composes
- Dashboard shell → Shell styles: uses
- React mount → Global styles: uses
- Agentic Sankey → Local pipeline graph: derives
- Local pipeline graph → D3 and D3-Sankey: node/link model
- RAG state machine → Semantic routing state: derives
- Semantic routing state → Mermaid: active paths
- Agentic Sankey → Widget export surface: exports through
- RAG state machine → Widget export surface: exports through
- Agentic Sankey → Visualization styles: uses
- RAG state machine → Visualization styles: uses