Writing
In-depth guides on AI, backend systems, DevOps and the web, newest first. Subscribe via RSS or email.
2026
Prompt Injection and Guardrails: Securing LLM-Powered Apps
Learn how prompt injection attacks work and how to defend LLM apps and AI agents with layered guardrails: least privilege, input isolation, output checks and approvals.
9 min readAI & LLMs
How to Evaluate LLM Applications: Building an Eval Harness in Python
Learn how to evaluate LLM applications with a Python eval harness: golden datasets, code-based checks, LLM-as-judge scoring and regression tests in CI.
11 min readAI & LLMs
Tool Calling with LLMs: Designing Reliable Tools for AI Agents
Learn how LLM tool calling works and how to design tools AI agents use correctly: clear schemas, safe execution, error messages, loops and limits, in Python.
10 min readAI & LLMs
Building AI Agents with LangChain and FastAPI: A Complete Guide
Learn to build production-ready AI agents using LangChain and FastAPI. Covers tool calling, memory, RAG pipelines, and deploying agentic workflows via REST APIs.
14 min readAI & LLMsBackend & APIs
Building MCP Servers with Python: The Complete Guide for 2026
Learn to build Model Context Protocol (MCP) servers in Python. Expose tools, resources, and prompts to AI assistants like Claude and Cursor with practical examples.
14 min readAI & LLMs
2025
Streaming LLM Responses with FastAPI and Server-Sent Events
Learn how to stream LLM responses token by token with FastAPI and Server-Sent Events, handle disconnects and errors, and consume the stream from a web frontend.
9 min readAI & LLMsBackend & APIs
Structured Outputs from LLMs with Pydantic: Reliable JSON
Learn how to get reliable, validated JSON from LLMs using Pydantic schemas, JSON mode, validation retries and FastAPI, with patterns that hold up in production.
10 min readAI & LLMs
Building a RAG Pipeline for LLMs with FastAPI and pgvector
Learn how to build a production-ready RAG pipeline with FastAPI, PostgreSQL and pgvector: chunking, embeddings, hybrid retrieval and grounded LLM answers.
11 min readAI & LLMsBackend & APIs
Vibe Coding: Mastering the Art of Enjoyable Programming in 2025
Discover the secrets of vibe coding - how to create an enjoyable, productive programming environment with the right tools, mindset, and workflow. Boost your coding happiness and productivity.
10 min readAI & LLMs
Building an AI-Powered Code Generator with OpenAI API: A Complete Guide
Learn how to build a custom AI code generator using OpenAI API, FastAPI, and React. Create your own GitHub Copilot alternative with step-by-step implementation.
8 min readAI & LLMsBackend & APIs
Running Lightweight Open-Source LLM Models Locally
A guide to setting up and running lightweight open-source LLM models on your local machine.
2 min readAI & LLMs