Skip to content

Glossary: RAG Basics

Pydantic

Also written: BaseModel

A Python library for describing data shapes as classes and checking data against them. It defines structured model output such as `Claim` and `Verdict`, and the request bodies FastAPI accepts.

Where the book teaches it

Related terms

Structured outputFastAPI