Interactive, step-by-step visualizations of 10 retrieval-augmented generation architectures — from baseline vector search to agentic multi-hop retrieval — with the real Python behind each one.
Extracted from AI Cauldron, where these components originated as part of a broader AI-engineering learning app.
npm install
npm run dev # Start dev server at http://localhost:5173
npm run build # Type-check + production build → dist/
npm run preview # Preview the production build locally
npm run lint # ESLint on src/ (ts,tsx)
npm run format # Prettier write on src/- Vite + React 18 + TypeScript (strict), same conventions as AI Cauldron.
- Routes:
/(landing page, algorithm grid) and/:algorithmSlug(step-through walkthrough for one algorithm). src/algorithms/<name>/— one directory per algorithm:demo-data.ts(pipeline steps + retrieval data),layout.ts(node positions + edge connectivity for the diagram),code-snippet.ts(four Python tabs), and<Name>.tsx(wires demo data + layout + code intoAlgorithmWrapper, or usesAlgorithmFactoryfor algorithms with no special visualization).src/components/algorithm/— the shared walkthrough machinery:AlgorithmWrapper(step animation, pipeline diagram, retrieval panel, code panel),AlgorithmPicker(landing grid),AlgorithmView(lazy-loads the active algorithm by slug).src/components/diagram/— the animated SVG pipeline diagram (nodes, edges, traveling data packets), driven by each algorithm'slayout.tsplus theactiveNodeIds/activeEdgeIdsalready present on every step. SeeCLAUDE.mdfor the data model and authoring conventions.src/components/visualizations/— special-case visualizations used by three algorithms:ReActTrace(Agentic RAG),KnowledgeGraph(GraphRAG),EmbeddingSpace(HyDE). These render a different dataset than the pipeline diagram and stay alongside it, unchanged.src/config.ts—CONFIG(model names, chunk sizes) andALGORITHMS(display metadata;iddoubles as the route slug).@/resolves tosrc/(seevite.config.ts).
See ROADMAP.md for what's intentionally not built yet.
- Create
src/algorithms/<name>/withdemo-data.ts,layout.ts,code-snippet.ts, and<Name>.tsx(usingAlgorithmWrapperorAlgorithmFactory, passingpipelineLayout). - Register the lazy import in
AlgorithmView.tsx'sALGO_COMPONENTSmap. - Add a metadata entry to
ALGORITHMSinsrc/config.ts.