47% OFFYearly Pro
$30/mo$16/mobilled yearlyGet Pro
Topic

Python

Explore our latest articles and insights about Python.

Explore posts

45 posts in total

AI Engineering in Practice

pip vs uv vs poetry for Python AI services

Which Python dependency manager should you use for production agent services in 2026? The install speed, lockfile story, and Docker build times compared.

PythonAI Agents+3
Read post
9 min
AI Engineering in Practice

Retry patterns for LLM API errors in production

How to build retry logic that handles rate limits, timeouts, and transient failures without burning money. The backoff rules and the 3 errors you must not retry.

AI AgentsError Handling+3
Read post
8 min
LLM Engineering

Pydantic output structuring for RAG agent plans

How to use Pydantic models to force your RAG planner LLM to return structured steps. The schema, the retry loop, and why plain JSON prompts break in production.

RAGPydantic+3
Read post
8 min
AI Engineering in Practice

Stress testing agentic AI systems beyond the laptop

How to stress test an agentic AI service before it ships. Concurrency, tokens, latency budgets, and the load profile that simulates real traffic.

AI AgentsProduction AI+3
Read post
8 min
LLM Engineering

Dynamic evaluation metric loading in Python

How to load evaluation metrics dynamically in a Python eval pipeline. The registry pattern, entry points, and the test override that makes CI fast.

EvaluationPython+3
Read post
8 min
AI Engineering in Practice

Docker Compose for the full AI agent stack

How to run your entire agent stack locally with Docker Compose. Postgres, Redis, the agent service, Langfuse, and the network rules that just work.

DockerAI Agents+3
Read post
8 min
AI Engineering in Practice

Docker build errors: troubleshooting AI service Dockerfiles

How to fix the 5 common Docker build errors in AI service Dockerfiles. apt-get failures, wheel builds, layer cache misses, and the silent bugs.

DockerPython+3
Read post
8 min
AI Engineering in Practice

FastAPI CORS for production agentic APIs

How to configure CORS for a production agentic API without wildcard origins. The allowlist, the credentials flag, and the preflight that breaks SSE.

AI AgentsAPI Development+3
Read post
7 min
AI Engineering in Practice

FastAPI lifespan for agentic services: startup and shutdown

Why FastAPI lifespan is the only right place for agent startup code. Per-worker initialization, ordered teardown, and the bugs it kills.

AI AgentsAPI Development+3
Read post
8 min
AI Engineering in Practice

Async context management in Python AI services

How async context managers prevent connection leaks in Python AI services. The lifespan, contextvars, and middleware patterns that survive load.

PythonProduction AI+3
Read post
9 min
AI Engineering in Practice

FastAPI + LangGraph: production chatbot API pattern

How to wire LangGraph into a FastAPI chatbot API with streaming, persistence, and per-user threads. The production pattern that scales past demos.

AI AgentsLangGraph+3
Read post
8 min
AI Engineering in Practice

FastAPI dependency injection for agentic API auth

How FastAPI Depends makes agent auth testable and composable. The pattern, the chain, and why module-level globals break at scale.

AI AgentsAPI Development+3
Read post
9 min
โ€ฆ

Weekly Bytes of AI

Technical deep-dives for engineers building production AI systems.

Architecture patterns, system design, cost optimization, and real-world case studies. No fluff, just engineering insights.

Unsubscribe anytime. We respect your inbox.