Like designing a form with specific fields — the LLM must fill in each field correctly.
Define a Pydantic model for the expected LLM output. This acts as a contract — any output that doesn't match this shape is rejected.
> ProductReview schema: > sentiment: str > score: int > summary: str > key_points: list[str]
Like designing a form with specific fields — the LLM must fill in each field correctly.
Define a Pydantic model for the expected LLM output. This acts as a contract — any output that doesn't match this shape is rejected.
> ProductReview schema: > sentiment: str > score: int > summary: str > key_points: list[str]
Sign in to cast your vote
Sign in to share your feedback and join the discussion.