Prompt LibraryData

LLM Strict JSON Schema Extraction Prompt

Extract to a fixed schema with an explicit null policy.

The prompt

Extract data from the text below into exactly this JSON schema:
{{schema}}

Rules: return JSON only, no preamble or code fences. Use null for any field not stated in the text — never infer. If the text contains conflicting values, use the most specific one and add the other to a "conflicts" array.

Text:
{{text}}

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt