Guides for engineers building AI agents in production.
Long reads with running code, each written from a lab or a client build. Pick a topic, read the guide, then build it live on Thursday.
Join Thursday's free labEvery guide links the repo its code comes from.
Every guide, by topic
Agents and workflows
- AI agents vs workflowsAI agents vs workflows is the first call in any AI system.10 min
- Giving your LLM hands, a deep dive on tool callingLearn how to build agents that can interact with the real world using tool calling.6 min
- Prompt self critique and refinementLearn how to improve LLM output quality using Self-Critique and Refinement techniques.4 min
RAG
- Fact checking and groundingFact-check RAG answers with a second LLM pass verifying every claim against retrieved context.7 min
- Tuning the retriever k valuePick the right top-k for your RAG retriever.6 min
- FAISS in productionUse FAISS for production RAG.6 min
- Chain types for summarisationStuff vs Map Reduce vs Refine in LangChain.9 min
- Multi hop RAG with query decompositionLearn how to build multi-hop RAG agents that can decompose complex queries into sub-questions and chain multiple retrieval steps.5 min
- Batteries included RAG platformsCompare batteries-included RAG platforms that bundle the entire pipeline into one application.8 min
- Choosing a RAG frameworkDemystify RAG frameworks by understanding their core philosophies.8 min
Production and observability
- Retry patterns for LLM API errorsBuild retry logic that handles rate limits, timeouts, and transient failures without burning money.7 min
- Langfuse and Grafana monitoringCombine Langfuse traces with Grafana dashboards for production agent monitoring.6 min
- FastAPI with LangGraph for a chatbot APIWire LangGraph into a FastAPI chatbot API with streaming, per-user thread persistence, and the production patterns beyond the demo.6 min
- Prometheus metrics for agentsInstrument agentic AI with Prometheus.8 min
- LangGraph persistence and threadsHow LangGraph persistence and the postgres checkpointer keep agent state across restarts.10 min
- Separate development and production configWhy your agent needs .env.development and .env, not one file.9 min
- FastAPI and Uvicorn for agentic systemsFastAPI and Uvicorn for agentic AI: ASGI workers, streaming, lifespan, and the production gotchas tutorials skip.9 min
- System design for a production AI chatbotMaster end-to-end system design for production AI chatbots.20 min