Glossary: Building with LLMs Basics
Validate and retry
A pattern for models without structured output: ask for JSON, check it yourself, and on failure ask again with the error message, with a cap on attempts.
Glossary: Building with LLMs Basics
A pattern for models without structured output: ask for JSON, check it yourself, and on failure ask again with the error message, with a cap on attempts.