Skip to content

Results for “structured output”

1 prompt

Write a system prompt and code in [language] that makes an LLM extract [fields] from [input type] as valid JSON matching this schema: [schema]. Include validation, a retry if parsing fails, and handling for missing data.

ChatGPT
Coding & Development

Prompt for structured JSON output from an LLM

Reliably gets valid JSON from an AI model in your app.

0