Miatz playground

RAG Sandbox

See why that chunk got retrieved, in 2D space.

Coming to the Build-LabAIE-202BYOK AIAI-Coredev · data
The Demystify signature

The 2D embedding plot makes semantic similarity a literal picture instead of a metaphor — learners watch their own chunk get pulled toward or away from the query as they edit the question.

How it works

What goes in, what comes out

What it does

Learner uploads a document set, picks a chunking strategy, and asks a question; instead of just returning an answer, the sandbox projects every chunk's embedding into a 2D plot (pgvector-backed similarity) with the query as a labeled point, so retrieval becomes a literal spatial picture. A citation-truth overlay then highlights, span by span, exactly which retrieved chunk each sentence of the model's answer maps back to — or flags it unsupported.

You bring

A document set (PDF/markdown/text), a natural-language question, and an optional known-answer for scoring.

You get

A 2D embedding plot of chunks vs. query, the retrieved top-k with scores, the generated answer with a citation-truth overlay, and a retrieval-quality score.

You control

Chunk size/overlap, embedding model, top-k, hybrid (keyword+vector) weighting, reranker on/off, and citation-strictness (refuse below a confidence threshold).

Where it's used

In-module lab for AIE-202/203, graded eval-gate lab (retrieval score at or above threshold); reused as a grounding exercise inside RAG-heavy specializations.

chunking tradeoffsembeddings & vector similarityhybrid search + rerankinglost-in-the-middlecitation grounding

Concepts click when you open the machinery.

Three labs are already live and free — the same hands-on style this playground brings to its module.