Skip to main content

Pipeline Animation Page

The Pipeline Animation page provides a real-time animated replay of query execution, designed for academic demonstrations. It visualises every pipeline stage with timing, data flow and plain-language explanations.

Purpose​

During the thesis defence and live demonstrations, this page lets examiners observe how a user query flows through the system, from intent classification to final answer generation, with animated transitions between stages. The stage-by-stage replay follows Nielsen's (1993, Usability Engineering) response-time guidelines: feedback within about 0.1 s feels instantaneous, within about 1 s preserves flow, and beyond 10 s loses attention. The per-stage transitions target the 0.1 to 1 s band so a viewer perceives causality between stages rather than independent flashes.

Access​

The page is opened for a specific recorded pipeline execution. Execution identifiers are available from the pipeline debug page or the analytics page. Autoplay can be switched on with a URL option for unattended demonstrations.

Animation stages​

The page maps raw pipeline stages into animated cards, played sequentially. The normal pipeline has nine core stages, with citation building and safety validation also available:

Normal pipeline​

#StageWhat it shows
1Query inputOriginal user query, language detection
2Embedding generationEmbedding model (text-embedding-3-large, 1,536 dimensions), timing
3Intent classificationDetected intent, confidence, retrieval strategy
3bQuery decompositionWhen triggered: number of sub-questions and chunks before merging
4Query rewritingOriginal versus rewritten query (follow-up resolution)
5RetrievalSearch method (hybrid, vector or keyword), documents found, top chunks with similarity scores. Reflects the vector leg only (see note below).
6Re-ranking and boostingRe-ranker scores (production: a hosted multilingual re-ranker; offline fallback: a local cross-encoder) plus metadata boost factors (category, recency, context), with before/after ordering. Re-ranking is always on in the normal path, not only when a query is escalated.
7Context assemblyChunk selection, token budget, context window composition
8Answer generationModel used, token count, cost, streaming response
9Quality gateEvaluation scores (faithfulness, relevancy), grade, pass or fail
10Citation buildingChunk-to-citation mapping, source document references
11Safety validationPost-generation safety checks

Stage 3b appears between intent classification and query rewriting only when a complex query is split into sub-questions. For the common single-hop case the animation goes directly from stage 3 to stage 4.

Vector-leg note. The Retrieval card reflects the vector leg only. Context assembly aggregates vector and graph results, so a single trace can show "0 results" at Retrieval yet a non-zero chunk count at Context assembly. This is expected for graph-sourced answers, not a bug.

Escalated pipeline ("Think Harder")​

When a query was escalated (through user feedback or an automatic threshold), two additional stages appear:

#StageWhat it shows
5bExpanded retrievalRe-search with broader parameters, additional documents found
6bRe-ranking (expanded)The same re-ranker as stage 6, applied over the broader candidate set, with before/after ordering

These stages are inserted between normal Retrieval and Context assembly. Re-ranking itself is not escalated-only; the escalated variant differs only in the size of the candidate set.

Stage cards​

Each stage is rendered as an animated card with:

  • Header: stage name, icon, duration in milliseconds
  • Input and output panels: collapsible panels with the raw stage data, following the progressive-disclosure principle of Shneiderman et al. (2016)
  • Citation building: for retrieval stages, the chunk-to-citation mapping
  • Explanation: an optional AI-generated plain-language explanation of what happened
  • Token and cost: where applicable, language-model token usage and cost

Autoplay​

Autoplay advances automatically through the stages:

  1. Each stage is displayed for a duration based on actual execution timing.
  2. Slide-in and slide-out animations smooth the transitions.
  3. A progress bar shows overall progress.
  4. Autoplay can be paused and resumed from the header controls.

Summary card​

After all stages complete, a summary card shows the total pipeline time, total tokens consumed, total cost, the final quality-gate result (pass or fail with scores) and a link to the full pipeline debug view.

Technical implementation​

The page is a frontend view with one renderer per stage (thirteen in total, including escalated and post-generation stages), a generic animated stage wrapper, a header with controls and a summary component. It reads the recorded execution from the backend's analytics service.

References​

  • Nielsen, J. (1993). Usability Engineering. Academic Press. Response-time guidelines informing the per-stage timing feedback design.
  • Shneiderman, B., Plaisant, C., Cohen, M., Jacobs, S., & Elmqvist, N. (2016). Designing the User Interface: Strategies for Effective Human-Computer Interaction (6th ed.). Pearson. Principles for progressive disclosure and animated transitions in complex system interfaces.