Blog

Notes on data structures & algorithms, system design, and things I learn along the way.

Learning DSA? Follow the structured path — ordered articles from recursion to dynamic programming.→
September 25, 2026Evals: How You Know the Change Helped6 min read

Prompt engineering without measurement is guessing with extra steps. How to build an eval set from real traffic, pick a grader that isn't lying to you, and avoid tuning your way to a number that means nothing.

#AI Engineering
September 25, 2026Prompt Injection: The Vulnerability You Can't Prompt Your Way Out Of5 min read

Everything an agent reads is input, and a model has no structural way to separate instructions from data. Why mitigations in the prompt are not a boundary, and where the real one goes.

#AI Engineering
September 25, 2026What an Embedding Actually Is4 min read

A list of numbers where distance means similarity. What cosine similarity measures, why the same word can have two vectors, and the queries embeddings are quietly bad at.

#AI Engineering
September 17, 2026RAG Retrieval: Chunking, Embeddings, and Why It Misses5 min read

Most RAG failures are retrieval failures, not generation failures. How chunking and embeddings decide what the model ever sees, the similarity-is-not-relevance trap, and what actually fixes it.

#AI Engineering
September 16, 2026Context Windows: Budgeting Tokens Like Memory5 min read

The window is a budget you refill from scratch every turn. Where the tokens actually go in an agent, why prompt caching is a prefix match, and the difference between clearing context and compacting it.

#AI Engineering
September 15, 2026Tool Calling: How a Model Picks a Function5 min read

A tool is a name, a description, and a JSON Schema — and the description is prompt text that gets read every turn. Schema design, validation, error messages that repair, and why fewer tools work better.

#AI Engineering
September 14, 2026The Agent Loop: What Actually Happens Between Prompt and Answer5 min read

An agent is a while loop around a stateless API. What stop_reason really controls, why the transcript is resent on every turn, and the failure modes that show up once tools are in the mix.

#AI Engineering

7 posts tagged AI Engineering · page 1 of 1