Playgrounds
Learn by moving the numbers
Small, deterministic simulations. Each one teaches one mechanism and links back to the concept it belongs to.
- Cosine similarityMove two vectors and watch the angle. Magnitude is irrelevant; direction is the signal.
- ChunkingPaste text, change size and overlap, and see where the boundaries land.
- Cost calculatorRequests, tokens, rates and cache hit rate → monthly bill and per-request cost.
- Context window meterSystem, history, retrieved chunks and output reserve against a fixed window.
- TokenizerType text and see it split into tokens, with the characters-per-token ratio.
- SamplingTemperature and top-p reshape a distribution; sample and watch the choice move.
- Embedding spacePick a query word and see its nearest neighbours in a toy two-dimensional space.
- Retrieval rankerCompare lexical, dense and reciprocal-rank-fusion results for the same query.
- RAG pipeline simulatorToggle hybrid retrieval and reranking, change chunk size, and watch answer quality.
- Attention weightsA small attention matrix with a causal mask you can switch off and inspect.
- Agent traceStep through a tool-using agent turn and watch tokens and cost accumulate.
- Coding agentStep through read → locate → edit → test → review for a failing test.
- Evaluation dashboardCompare a candidate against a baseline across quality, latency and cost.
- MCP explorerClick through host, client, server, tools, resources and prompts.