Posts tagged “Pydantic”
2 articles
PY➞AIBuilding with LLMs
#02
A vague prompt is `any`
The output shape is the contract, and the prompt is where you write it down.
A full-stack dev learning AI engineering in public
while model.asks():
•Vikas Yadav
Your prompt is a function signature
I ran the same prompt three times on the same input and got three different shapes back. Nothing crashed. The output just quietly stopped being something my code could trust.
TS➞PYPython for TypeScript devs
#02
Zod taught me Pydantic
Define the schema, parse at the boundary. Same mental model, new language.
A full-stack dev learning AI engineering in public
async def learn():
•Vikas Yadav
Pydantic: Zod for Python
If you have used Zod, you already understand 70 to 80% of Pydantic. The mental model transfers almost one-to-one.