Tag: Pydantic

Don’t Write Another Line of Code Until You See These Pydantic V2 Breakthrough Features

Pydantic is the go-to data validation python library. With about 20 million downloads per week, it is among the top 100 python libraries. Pydantic V2 was recently released (with a rust backend) — it is 5–50X faster than V1! The release also introduces many new brea...

Pydantic and Prompt Engineering: The Essentials for Validating Language Model Outputs

Large language models (LLMs) output text in reaction to our prompts. While this provides a satisfactory interaction when chatting with them, it poses a challenge when we aim to incorporate these models into our applications. For a seamless integration, it is often crucial to have these responses in ...