How-To Guides

Step-by-step how-to guides for putting AI and software to work, covering automation, prompt engineering, and no-code builds.

A person is typing code on a laptop, focusing on the screen with programming script.
How-To Guides
6 min

Semantic Caching for LLM Requests: Similarity Thresholds, Measured

Semantic cache thresholds measured on 40 questions with two Gemini embedding models: why 0.92 almost never hits and which near-misses fool a cache.

Read the guide and its test results
Close-up of server racks in a data center highlighting modern technology infrastructure.
How-To Guides
9 min

How to Deploy a Machine Learning Model to Production: A Practical Guide

Train a simple model, package it in Docker and serve predictions from a FastAPI endpoint, step by step with code.

Read the guide and its test results
A hand tapping a credit card on a payment terminal for a contactless transaction.
How-To Guides
11 min

How to Implement Stripe Billing in a Next.js 15 App for SaaS Subscriptions

Add Stripe subscriptions to a Next.js 15 app: Checkout, the customer portal and webhook signature verification with the App Router.

Read the guide and its test results
A dual screen setup showcasing programming code and image editing software.
How-To Guides
11 min

How to Implement Unit Testing for AI Agents Using Python and Pytest

Unit test AI agents in Python with Pytest by mocking the LLM and asserting on agent behavior, and keep LLM-judged tests in a separate suite.

Read the guide and its test results
Office worker wearing headphones while concentrating on laptop tasks.
How-To Guides
6 min

Parse Invoices With Gemini and Pydantic: A Tested Python Script

A Python invoice parser using Gemini structured output and Pydantic, tested on four invoice variants with known values: accuracy, speed, and a fix.

Read the guide and its test results
Detailed view of a SATA power cable connector with colorful wiring.
How-To Guides
10 min

How to Build a Custom MCP Server with Python for Claude Sonnet 5

Build a local MCP server in Python with FastMCP and connect it to Claude Desktop so the model can inspect your system and look up directories.

Read the guide and its test results
A laptop keyboard with orange backlight displaying green digital code symbols.
How-To Guides
11 min

How to Build a Secure API Gateway for LLM Cost Tracking Using Go and Redis

Build an API gateway in Go and Redis that tracks token usage and cost per client for GPT-5.6 and Gemini requests.

Read the guide and its test results