<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[结构化输出老坏，是模型不行还是约束不对]]></title><description><![CDATA[<p dir="auto">我们让模型输出 JSON，测试时还行，线上偶尔多一句解释，解析就炸。大家怎么处理？</p>
]]></description><link>https://localaihub.com/topic/106/结构化输出老坏-是模型不行还是约束不对</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 19:44:43 GMT</lastBuildDate><atom:link href="https://localaihub.com/topic/106.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 May 2026 23:01:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 23:08:00 GMT]]></title><description><![CDATA[<p dir="auto">收到。我先把分类和 JSON 抽取拆成两步。</p>
]]></description><link>https://localaihub.com/post/875</link><guid isPermaLink="true">https://localaihub.com/post/875</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Thu, 07 May 2026 23:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 20:52:00 GMT]]></title><description><![CDATA[<p dir="auto">那先拆任务。模型不是不能做，是混一起不好测。</p>
]]></description><link>https://localaihub.com/post/874</link><guid isPermaLink="true">https://localaihub.com/post/874</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Thu, 07 May 2026 20:52:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 18:02:00 GMT]]></title><description><![CDATA[<p dir="auto">我们确实一个 prompt 干了四件事。</p>
]]></description><link>https://localaihub.com/post/873</link><guid isPermaLink="true">https://localaihub.com/post/873</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Thu, 07 May 2026 18:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 16:20:00 GMT]]></title><description><![CDATA[<p dir="auto">对，拆开会稳。先分类，再抽字段，最后生成话术。</p>
]]></description><link>https://localaihub.com/post/872</link><guid isPermaLink="true">https://localaihub.com/post/872</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Thu, 07 May 2026 16:20:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 15:05:00 GMT]]></title><description><![CDATA[<p dir="auto">我觉得很多结构化输出失败，其实是需求想让模型同时做理解、判断、格式化、写文案。</p>
]]></description><link>https://localaihub.com/post/871</link><guid isPermaLink="true">https://localaihub.com/post/871</guid><dc:creator><![CDATA[小周]]></dc:creator><pubDate>Thu, 07 May 2026 15:05:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 12:34:00 GMT]]></title><description><![CDATA[<p dir="auto">如果是关键业务，别让模型直接产最终数据库结构。先产候选，再由程序映射。</p>
]]></description><link>https://localaihub.com/post/870</link><guid isPermaLink="true">https://localaihub.com/post/870</guid><dc:creator><![CDATA[nora]]></dc:creator><pubDate>Thu, 07 May 2026 12:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 12:22:00 GMT]]></title><description><![CDATA[<p dir="auto">还有 stop sequence。有些模型会在 JSON 后继续补说明，stop 能救一部分。</p>
]]></description><link>https://localaihub.com/post/869</link><guid isPermaLink="true">https://localaihub.com/post/869</guid><dc:creator><![CDATA[阿白]]></dc:creator><pubDate>Thu, 07 May 2026 12:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 10:32:00 GMT]]></title><description><![CDATA[<p dir="auto">比线上 500 便宜。可以只对失败样例重试一次，再降级人工。</p>
]]></description><link>https://localaihub.com/post/868</link><guid isPermaLink="true">https://localaihub.com/post/868</guid><dc:creator><![CDATA[林小北]]></dc:creator><pubDate>Thu, 07 May 2026 10:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 09:51:00 GMT]]></title><description><![CDATA[<p dir="auto">校验失败重试会不会成本很高？</p>
]]></description><link>https://localaihub.com/post/867</link><guid isPermaLink="true">https://localaihub.com/post/867</guid><dc:creator><![CDATA[普通网友A]]></dc:creator><pubDate>Thu, 07 May 2026 09:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 09:22:00 GMT]]></title><description><![CDATA[<p dir="auto">我遇到过因为字段说明写太文学，模型开始照着解释。schema 描述要短。</p>
]]></description><link>https://localaihub.com/post/866</link><guid isPermaLink="true">https://localaihub.com/post/866</guid><dc:creator><![CDATA[半截薯条]]></dc:creator><pubDate>Thu, 07 May 2026 09:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 07:48:00 GMT]]></title><description><![CDATA[<p dir="auto">还要缩小输出范围。字段越多、嵌套越深、自由文本越长，坏的概率越高。</p>
]]></description><link>https://localaihub.com/post/865</link><guid isPermaLink="true">https://localaihub.com/post/865</guid><dc:creator><![CDATA[Grace]]></dc:creator><pubDate>Thu, 07 May 2026 07:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 07:02:00 GMT]]></title><description><![CDATA[<p dir="auto">那就做两层：提示词约束 + 宽容解析 + 校验失败重试。别指望一次永远完美。</p>
]]></description><link>https://localaihub.com/post/864</link><guid isPermaLink="true">https://localaihub.com/post/864</guid><dc:creator><![CDATA[melo]]></dc:creator><pubDate>Thu, 07 May 2026 07:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 04:31:00 GMT]]></title><description><![CDATA[<p dir="auto">有些后端模型不支持 JSON mode。</p>
]]></description><link>https://localaihub.com/post/863</link><guid isPermaLink="true">https://localaihub.com/post/863</guid><dc:creator><![CDATA[小蓝]]></dc:creator><pubDate>Thu, 07 May 2026 04:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to 结构化输出老坏，是模型不行还是约束不对 on Thu, 07 May 2026 02:06:00 GMT]]></title><description><![CDATA[<p dir="auto">第一步：别用正则硬薅 JSON。能用 schema/JSON mode/function calling 就用。</p>
]]></description><link>https://localaihub.com/post/862</link><guid isPermaLink="true">https://localaihub.com/post/862</guid><dc:creator><![CDATA[陈一]]></dc:creator><pubDate>Thu, 07 May 2026 02:06:00 GMT</pubDate></item></channel></rss>