Output-Schema / JSON Extractor Prompt

作者:promptpacks发布日期:2026-09-21观看:27

让模型稳定输出可解析 JSON:字段定义、枚举、缺失处理、禁止额外文本。

01/ 01

Extract structured data from the text below and output ONLY valid JSON matching this schema, no markdown, no commentary: { "title": string | null, // <= 80 chars, original language "category": one of ["A","B","C","D"], "sentiment": "positive" | "neutral" | "negative", "confidence": number 0..1, // your certainty on all fields "entities": [{"name": string, "type": "person|org|product|date|other"}], "action_required": boolean, "reason": string // one sentence justifying sentiment/action } Rules: null when information is absent — never guess; "category" must use exact enum values; if text fits two categories choose primary and note second in reason; numbers parse as JSON numbers; escape quotes/newlines properly; output a single JSON object. Text: """{{...}}"""

自动翻译

自动翻译中…

🔥热搜词

评论0

登录后参与评论

还没有评论,来抢沙发吧