Skip to content
back to all labs
ExperimentLocal retrieval mode

RAG Retrieval Visualizer

Ask a question about the portfolio corpus. The local retrieval endpoint tokenizes the query, scores every chunk, and returns the highest-ranking context with transparent matching evidence.

01 / query

Ask the document set

Local retrieval mode

Uses a fixed public corpus on this site. No embeddings or external AI provider are called.

48/300

02 / retrieved-context

Ranked context chunks

Run retrieval to see which document chunks would be passed to an LLM.

Retrieval pipeline

query → tokenize → score chunks → rank → top context

01

Tokenize

Normalize the question into searchable terms and remove common stop words.

02

Score and rank

Measure term coverage and density across every available chunk.

03

Assemble context

Select the highest-ranking chunks for a later generation step.

Related technical article

RAG on Postgres You Already Have