Get AI summaries of any video or article — Sign up free

Pydantic Schemas — Topic Summaries

AI-powered summaries of 9 videos about Pydantic Schemas.

9 summaries

No matches found.

Using LangChain Output Parsers to get what you want out of LLMs

Sam Witteveen · 2 min read

LLM apps fail most often when they accept whatever text a model happens to generate instead of forcing that output into a structure the application...

Output ParsingLangChainPydantic Schemas

OpenAI Functions + LangChain : Building a Multi Tool Agent

Sam Witteveen · 3 min read

OpenAI’s function-calling system, wired through LangChain, can turn a plain chat model into a finance assistant that reliably selects the right API...

OpenAI Function CallingLangChain AgentsYahoo Finance API

Python FastAPI Tutorial (Part 5): Adding a Database - SQLAlchemy Models and Relationships

Corey Schafer · 3 min read

The core shift is replacing FastAPI’s in-memory “posts” list with a real SQLAlchemy-backed database so data persists across server restarts—and then...

FastAPISQLAlchemySQLite

Tagging and Extraction - Classification using OpenAI Functions

Sam Witteveen · 3 min read

OpenAI “functions” can be used in LangChain not to trigger external code, but to force large language models to return structured JSON...

OpenAI FunctionsLangChain TaggingLangChain Extraction

Building a Vision App with Ollama Structured Outputs

Sam Witteveen · 3 min read

Structured outputs in Ollama make it practical to turn both text and images into validated, schema-shaped data—locally—using Python classes...

Structured OutputsPydantic SchemasVision Extraction

Python FastAPI Tutorial (Part 4): Pydantic Schemas - Request and Response Validation

Corey Schafer · 3 min read

FastAPI’s request/response validation becomes concrete once Pydantic schemas define the API contract—what clients must send and what the server will...

Pydantic SchemasRequest ValidationResponse Validation

Python FastAPI Tutorial (Part 6): Completing CRUD - Update and Delete (PUT, PATCH, DELETE)

Corey Schafer · 2 min read

CRUD in FastAPI is completed for both posts and users by adding full update (PUT), partial update (PATCH), and deletion (DELETE), with careful...

FastAPI CRUDPUT vs PATCHCascade Delete

LLM JSON Output - Get Valid JSON with Pydantic and LangChain Output Parsers

Venelin Valkov · 2 min read

Getting reliable JSON from large language models—especially ones that don’t natively support structured outputs—requires more than “please output...

JSON OutputPydantic SchemasLangChain Output Parsers

Build Smarter AI Apps: Memory, Tools, Retrieval & Structured Output with Python, Pydantic & Ollama

Venelin Valkov · 3 min read

AI apps become meaningfully more useful when they’re given four upgrades beyond plain text prompting: memory, structured outputs, tool use, and...

MemoryStructured OutputTool Use