
Building a Streaming Chatbot with Groq and Next.js
Ship a fast streaming chatbot with the Groq API and Next.js route handlers, covering system prompts, rate limiting, and cost control.
Blog
Articles on AI agents, LLM engineering, and applied machine learning — prompt design, RAG, evaluation, and building production AI features.
29 articles

Ship a fast streaming chatbot with the Groq API and Next.js route handlers, covering system prompts, rate limiting, and cost control.

How to turn invoices, contracts, and scanned forms into reliable structured data using multimodal LLMs, from prompt design to human-in-the-loop review.

Most chatbot traffic is the same handful of questions worded differently. Semantic caching catches those near-duplicates and skips the model call entirely.

A practitioner's walkthrough of the Claude Agent SDK: the agent loop, tool definitions, subagents, permission modes, and what it actually takes to ship a production coding or ops agent.

A prompt change that looks harmless in a chat playground can quietly break a production feature. Here is how to build an evaluation harness that catches that regression before it merges.

Prompting an LLM to return JSON is not the same as guaranteeing it. Here is how JSON Schema constraints, tool-based calling, and Zod validation turn probabilistic output into something you can trust in production.

Claude Fable 5 is Anthropic's new Mythos-class model. Here is the pricing math, the API migration gotchas, and who should actually use it over Opus.

Tool design, guardrails, and eval loops: the unglamorous lessons from running AI agents in production and using agentic coding tools every day.

MCP is the USB-C of AI integrations: one protocol between models and your systems. What servers and clients are, and when building one makes sense.

My practical workflow: use Opus 4.7 for critical planning and Sonnet 4.6 for cost-efficient execution loops.

Prompt caching cuts LLM input costs by up to 90 percent. How caching economics differ across Anthropic, OpenAI, and Gemini, and how to architect prompts for it.

A deep dive into Hermes — the open-source AI agent framework with a closed self-learning loop, persistent memory, 40+ tools, and multi-platform deployment via a single gateway.

How to use Cerbos's open-source policy engine to control which tools your MCP server exposes per user role — without hard-coding ACLs.
Practical strategies for reducing LLM API costs in production — from prompt caching to model routing — with real numbers from my AI Gymbro project.
A practical guide to building reliable AI agent workflows — the patterns that work in production and the pitfalls that will waste your time.
Hard-won lessons from building production RAG systems — indexing strategy, chunking failures, retrieval quality, and the metrics that actually matter.
Everything I learned shipping Claude's tool use (function calling) in production — schema design, error handling, streaming, and cost management.
A practical comparison of the three major LLM APIs from a developer who has used all three in production — pricing, DX, reliability, and when to use each.
An honest assessment of LangChain in 2025 — when it saves time, when it gets in the way, and how to decide if you need it at all.
How to add AI code review to your GitHub PR workflow — tool choices, prompt engineering, cost management, and what AI actually catches vs. misses.
A practical comparison of the top vector database options — performance benchmarks, pricing, and which one to choose for your specific use case.
Production prompt engineering is different from tutorial prompt engineering — version control, testing, regression prevention, and the patterns that actually improve reliability.
Using AI to generate content at scale without sacrificing quality — the review workflows, quality signals, and failure modes you need to know about.
Real prompt injection attack patterns, OWASP LLM Top 10 defenses, and practical controls I implement when building AI-powered APIs and agents.
Step-by-step guide to building a Model Context Protocol server with real tools, authentication, and production deployment — using the official TypeScript SDK.
How to implement memory for AI agents — covering in-context, external vector store, and structured database patterns with real trade-offs from production deployments.
A practical guide to deploying Ollama for production local LLM inference — covering model selection, hardware requirements, API integration, and when local beats cloud.
Production LLM observability with Langfuse, token cost tracking, latency monitoring, and anomaly detection — lessons from running AI-powered ERP integrations.
Compare OpenAI function calling and Anthropic tool use APIs — with real patterns for parallel calls, error handling, retry logic, and structured output extraction.