From Prompt to Response: A Step-by-Step Walkthrough of LLM Inference
A cleaner mental model for LLM inference: prompt templating, tokenization, scheduling, prefill, KV cache, decode, and the split between the inference engine and the model.
The notebook / 68 articles
Notes on LLMs, machine learning, data engineering, and the systems that make them work.
Showing 1–10 of 68 posts
A cleaner mental model for LLM inference: prompt templating, tokenization, scheduling, prefill, KV cache, decode, and the split between the inference engine and the model.
Learn what each model API returns and when to use it. Follow one booking question from a prompt to a message, a tool call, and a grounded answer.
A 64-request live benchmark and 48-call review diagnostic show what memory adds to Jev decisions—and where a confidence gate rejects answers it could have delivered.
Follow a project decision from a planner into Hindsight and back to a fresh coder session. Learn memory banks, retain, recall, reflect, and how to integrate persistent memory into...
Separate predictions, policy, and execution with Jev and LangChain. Follow a refund through middleware, inspect review thresholds, and compare recorded decision latency with...
Carry authorization through retrieval, context, caches, and citations. Define trust boundaries, revocation behavior, and operational controls.
Separate retrieval coverage, context quality, and answer support. Calculate ranking metrics and design reproducible regression gates.
Separate schema validity, citation identity, and factual support; design bounded repair, honest abstention, and streaming behavior around those distinct guarantees.
Translate questions into bounded retrieval plans, preserve metadata constraints, and verify SQL result semantics with a worked incident-table example.
Work through reciprocal rank fusion, distinguish full-text search from BM25, and evaluate reranking and corrective retrieval without treating scores as confidence.