Prompt Caching: Why Long Repeated Prompts Don't Cost So Much

Posted on Mon 09 November 2026 in Beginner Guide • Tagged with GenAI, LLM, prompt-caching, cost, performance, API, production

The Problem With Long System Prompts

If you've built anything with an LLM API, you've probably added a system prompt. At first it's a sentence or two. Then you add instructions. Then examples. Then context about your product. Before long, your system prompt is a few hundred lines and every …


Continue reading

Prompt Versioning: Treating Prompts Like Code

Posted on Sat 31 October 2026 in Tutorial • Tagged with GenAI, LLM, prompt-engineering, versioning, Git, production, Python

The Day Nobody Knew Why It Got Worse

Here's a scenario that happens on almost every LLM project eventually. The app was giving good answers on Monday. By Thursday, users are complaining that responses feel off. Someone says, "I think I tweaked the prompt a bit last week." Someone else …


Continue reading

Structured Outputs: How to Make an LLM Return Clean JSON Every Time

Posted on Tue 27 October 2026 in Tutorial • Tagged with GenAI, LLM, structured-outputs, JSON, Pydantic, FastAPI, Python

The Bug That Taught Me This

The first time I built something that fed LLM output into other code, it worked beautifully for about a day. Then one response came back as:

Sure! Here's the JSON you asked for:

{"category": "billing", "priority": 2}

Let me know if you need …

Continue reading

How to Evaluate Your LLM App: Building a Simple Eval Set

Posted on Sun 25 October 2026 in Tutorial • Tagged with GenAI, LLM, evaluation, evals, testing, Python, prompt-engineering

The Question I Couldn't Answer

For a long time, my process for improving a prompt was embarrassingly simple: change the wording, try two or three inputs, decide it "feels better," and move on. Then one day someone asked me a basic question: "Is the new version actually better than the …


Continue reading

Why Every AI Demo Looks Perfect (And Why That's a Red Flag)

Posted on Fri 23 October 2026 in GenAI • Tagged with GenAI, LLM, AI-demos, evaluation, AI-literacy, opinion

The Pattern I Keep Noticing

Watch any AI product demo and you'll see the same thing: the assistant understands everything on the first try, the agent finishes a ten-step task without a hiccup, and the answers are crisp, accurate, and perfectly formatted. Then you try the same product yourself and …


Continue reading

The "Lost in the Middle" Problem in RAG and How to Work Around It

Posted on Thu 22 October 2026 in GenAI • Tagged with GenAI, RAG, LLM, context-window, retrieval, reranking

Why This Matters

You build a RAG pipeline. Retrieval works: the right chunk is definitely in the top results. You send everything to the LLM, and it still gives a wrong or incomplete answer, as if it never saw the one piece of text that contained the answer.

Very often …


Continue reading

Why Small, Boring AI Features Win Over Flashy Ones

Posted on Wed 21 October 2026 in GenAI • Tagged with GenAI, LLM, product-design, AI-features, opinion

Why I'm Writing This

Every AI product launch seems to chase the same thing: the most impressive possible demo. A fully autonomous agent that books your entire trip. A chatbot that "does anything." A magic button that rewrites your whole workflow. These make for great launch videos. But when I …


Continue reading

Why "AI Literacy" Might Be the Most Underrated Skill Right Now

Posted on Sun 04 October 2026 in GenAI • Tagged with GenAI, LLM, AI-literacy, career, opinion

Why I'm Writing This

A lot of career advice around GenAI right now focuses on learning to build with AI — prompt engineering, RAG, agents, fine-tuning. That's valuable, and it's most of what this blog covers too. But I've started noticing a quieter, less talked-about skill gap that might matter even …


Continue reading

Why "Context Engineering" Is Replacing "Prompt Engineering" as the Buzzword

Posted on Fri 02 October 2026 in GenAI • Tagged with GenAI, LLM, context-engineering, prompt-engineering, opinion

Why I'm Writing This

A few months ago I wrote about whether prompt engineering was a dying skill, and landed on "it's not dying, it's getting absorbed into something bigger." Since then, I keep running into a new term that feels like exactly that "something bigger" showing up with a …


Continue reading

Building a Chatbot API with FastAPI + OpenAI/Claude — Step by Step

Posted on Wed 30 September 2026 in Tutorial • Tagged with FastAPI, Python, chatbot, OpenAI, Claude, GenAI, LLM

Why This Matters

Every GenAI journey eventually hits the same milestone: building your first real chatbot API, not just calling a model from a script. This is the project that ties together everything else — API keys, request/response models, calling an LLM provider, and returning a clean response your frontend …


Continue reading