Interactive debugger · Module 01

Inspect the pipeline state.

Change the source, retrieval controls, or question. Every output below is recomputed by the same educational RAG core used in Learn.

Input Retrieve Verify

1. Generated Chunks (0)

Chunking uses the same lossless character-based splitter as Learn. Evidence badges appear when a chunk fully contains or intersects a canonical evidence passage.

2. Cosine Similarity Ranking

Real cosine similarity over simulated educational feature vectors: cos(θ) = (u · v) / (||u|| ||v||). Rows in the Top-K window are highlighted.

3. Assembled Prompt (System + Context + Query)


      

4. Generated Answer & Grounding

An answer is grounded only when a retrieved chunk contains the complete canonical evidence. Out-of-domain and low-confidence queries are refused instead of inventing facts.