<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>结构化输出 on AI 观察</title><link>https://ai.wujiong.cc/tags/%E7%BB%93%E6%9E%84%E5%8C%96%E8%BE%93%E5%87%BA/</link><description>Recent content in 结构化输出 on AI 观察</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 17 Sep 2026 11:36:38 +0800</lastBuildDate><atom:link href="https://ai.wujiong.cc/tags/%E7%BB%93%E6%9E%84%E5%8C%96%E8%BE%93%E5%87%BA/index.xml" rel="self" type="application/rss+xml"/><item><title>让大模型稳定输出 JSON：提示词、Schema 约束与程序校验</title><link>https://ai.wujiong.cc/posts/2026-09-17-json-output-prompt/</link><pubDate>Thu, 17 Sep 2026 11:36:38 +0800</pubDate><guid>https://ai.wujiong.cc/posts/2026-09-17-json-output-prompt/</guid><description>&lt;p>当大模型只用于聊天时，输出格式稍有变化无关紧要。但一旦要把模型输出交给程序处理，比如写入数据库、调用接口、渲染页面，&lt;strong>格式稳定性就成了生死问题：多一句“好的，以下是结果”、少一个右括号、把数字写成字符串，都可能让程序崩溃。&lt;/strong> 让大模型稳定输出 JSON，需要提示词、接口能力和程序校验三管齐下。&lt;/p></description></item></channel></rss>