Topic
Tutorials
All posts
Newest first- Nov 21, 2026 Prove your LLM router saves money How to measure LLM cost savings: log cost per route, replay real conversations, and catch drift when prices or models change. 12 min
- Nov 21, 2026 LLM fallbacks: build the safety net before you need it LLM fallback to another provider, plus a cascade and an escalation cap, so one outage or one bad day cannot wreck your… 11 min
- Nov 21, 2026 When the rules run out, let a small model decide An LLM classifier router lets a small model choose the model for each prompt. Set a confidence threshold and count its own… 8 min
- Nov 21, 2026 Your first LLM router is just a few rules Build a rule-based LLM router in Python: a few rules, a hard rule for sensitive topics, and a before and after cost… 11 min
- Nov 21, 2026 How do you know the small model is good enough? Is a smaller LLM good enough? Build a small test set and compare models by cost per correct answer, task type by… 11 min
- Nov 21, 2026 Not every prompt needs your biggest model LLM cost per conversation adds up. See where the money goes and how sending easy questions to a smaller model can cut… 9 min
- Nov 10, 2026 JPEG from Zero to Hero: How JPEG Compression Works, Its Variants, and an Encoder You Build in Python How JPEG compression works, told through one photo, then its variants up to JPEG AI and an encoder you build in Python. 40 min
- Nov 8, 2026 Shipping your agent How to deploy an AI agent: a FastAPI service with SSE streaming, timeouts, a shared checkpointer, Docker, tracing and a cost per… 14 min
- Nov 8, 2026 Securing an agent AI agent security in practice: session identity, authorisation in tools, prompt injection defences, PII masking, limits and audit logs. 15 min
- Nov 8, 2026 Testing an agent you can’t predict AI agent evaluation in practice: fixed test cases, answer and tool trajectory checks, an LLM-as-judge rubric and a pytest gate in CI. 15 min