Abstract network visualization from the source post media

See what RAG retrieves before it generates.

Turn the black box inside out. Edit the corpus, inspect token vectors and cosine scores, then watch the exact context cross the model boundary.

Real local retrieval. No external model call. No fabricated answer.

Retrieval is a chain of visible decisions.

RAG does not let a model search by instinct. Documents become chunks. Chunks become vectors. A query becomes another vector. Similarity decides which evidence survives the context budget. The lab below exposes every one of those transitions.

Run retrieval with the glass walls on.

This educational vectorizer uses term frequency and cosine similarity in your browser. It is deliberately small enough to audit line by line.

Corpus

Each document is one retrievable chunk.

4 chunks
Shared vector space0 dimensions

Context window

Only selected chunks cross this boundary.

Model not connected
external model boundary

Every hidden step leaves evidence.

Scroll the trace from source text to the final handoff.

Tokens

Words become coordinates.

The local vectorizer lowercases text, removes punctuation, filters common stop words, and counts each remaining term. The shared vocabulary becomes the coordinate system.

Similarity

Direction beats document length.

Cosine similarity compares vector direction. A focused short chunk can outrank a long chunk because the score is normalized by each vector's magnitude.

Selection

Top-k is a context budget.

Increasing k adds evidence but also noise and token cost. The ranked list shows what was included and what was left behind.

Boundary

Retrieval ends where generation begins.

The lab exports the exact context and query that a model could receive. It stops there so the observed result remains truthful without an integrated model service.

Take the full retrieval trace with you.

Export the corpus, tokens, vectors, rankings, selected evidence, and assembled prompt as durable JSON.

Super generates helpful tools and automates fact-checking across the internet proactively. If you enjoyed this tool, build your own with Super and share it with a friend.