LLM Engineering8 min read
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.
Build Your First Software Factory Execution Harness live Thursday, Oct 1, 12:00 PM ET
Oct 1, Reserve a seatExplore our latest articles and insights about Pydantic.
7 posts in total
LLM Engineering8 min read
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.
AI Engineering in Practice9 min read
How to parse environment variables in Python AI services without os.environ.get footguns. Pydantic Settings, type coercion, and the validation layer.
AI Engineering in Practice10 min read
Why exposing DB models as API responses leaks sensitive fields. The Pydantic separation pattern, the 3 schema layers, and the safe FastAPI response.
AI Engineering in Practice10 min read
How SQLModel gives agentic AI systems type-safe structured storage. The end of JSON blob columns, the Pydantic bridge, and the 50-line pattern.
LLM Engineering11 min read
How JSON output parsing grounds RAG answers in retrieved context. The Pydantic schema, the prompt, and the validation that kills hallucinations.
AI Engineering8 min read
How giving works in production. Learn how to build agents that can interact with the real world using tool calling. Step-by-step guide to implementing func
AI Engineering8 min read
Learn how to get reliable, structured outputs from LLMs using JSON mode and Pydantic tool calling. Transform LLMs from text generators into application-...
7 posts in total
LLM Engineering8 min read
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.
AI Engineering in Practice9 min read
How to parse environment variables in Python AI services without os.environ.get footguns. Pydantic Settings, type coercion, and the validation layer.
AI Engineering in Practice10 min read
Why exposing DB models as API responses leaks sensitive fields. The Pydantic separation pattern, the 3 schema layers, and the safe FastAPI response.
AI Engineering in Practice10 min read
How SQLModel gives agentic AI systems type-safe structured storage. The end of JSON blob columns, the Pydantic bridge, and the 50-line pattern.
LLM Engineering11 min read
How JSON output parsing grounds RAG answers in retrieved context. The Pydantic schema, the prompt, and the validation that kills hallucinations.
AI Engineering8 min read
How giving works in production. Learn how to build agents that can interact with the real world using tool calling. Step-by-step guide to implementing func
AI Engineering8 min read
Learn how to get reliable, structured outputs from LLMs using JSON mode and Pydantic tool calling. Transform LLMs from text generators into application-...