Skip to content

Glossary: Fine-tuning LLMs

Pydantic

Also written: Pydantic model, BaseModel

A Python library for describing data shapes as classes. It can define the schema for a model's structured output, such as a `Batch` of emails or a set of `Verdicts`.

Where the book teaches it

Related terms

Structured output