楼主: CDA网校
128 0

你的大模型可以输出完美JSON,但结果依旧可能出错 [推广有奖]

管理员

已卖:189份资源

泰斗

16%

还不是VIP/贵宾

-

威望
3 级
论坛币
163129 个
通用积分
19656.0770
学术水平
373 点
热心指数
385 点
信用等级
348 点
经验
250302 点
帖子
8038
精华
23
在线时间
4610 小时
注册时间
2019-9-13
最后登录
2026-11-25

初级热心勋章

楼主
CDA网校 学生认证  发表于 2026-10-8 15:50:17 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
<!-- markdown css tag --><section id="nice" data-tool="mdnice编辑器" data-website="https://www.mdnice.com" style="font-size: 16px; color: black; padding: 0 10px; line-height: 1.6; word-spacing: 0px; letter-spacing: 0px; word-break: break-word; word-wrap: break-word; text-align: left; font-family: PingFangSC-Light;"><figure data-tool="mdnice编辑器" style="margin: 0; margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://file.haoxueai.cn/haoxue/img/4aa72a69-6d6c-469d-81ca-de48edaf004b.png" alt style="max-width: 100%; border-radius: 0px 0px 5px 5px; display: block; margin: 20px auto; width: 85%; height: 100%; ob ject-fit: contain; box-shadow: #84A1A8 0px 10px 15px;"></figure>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">三周前,我在一条将付款确认消息解析为交易记录的数据流水线中启用了 OpenAI 结构化输出功能。不久后,对账任务开始持续标记出少量数据不匹配问题。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这些异常不会造成程序崩溃,也不是格式错误的数据行。交易的金额与发送方信息完全吻合,但交易日期是错的。每周大概会出现 2%~3% 这样的错误记录,数量足以被察觉,但又不会立刻引起重视。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">起初我以为是时区 bug,但排查后发现并不是。
我把原始消息和提取出的记录放在一起比对,找到了规律:所有不匹配的交易记录,都源自<strong style="font-weight: border; color: rgb(248,57,41);">原文根本没有提到日期</strong>的消息。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">类似这条消息:“收到 Chinedu 的付款,45000 奈拉,流水号 TXN-82K91。” 全文没有任何日期信息。
但模型依旧自动填充了<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">transaction_date</code>字段,填的几乎都是提取任务的运行日期,误差不到一小时。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">在定义的模型结构里,<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">transaction_date</code>被标记为日期类型、必填字段。模型不能返回空值,于是它就编造了一个。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">我曾经把 “输出合法 JSON” 当成这条流水线的最终验收标准,一连好几周看起来一切正常。
但事实并非如此。
合法 JSON 只是一道门槛,跨过之后,一类更隐蔽的故障便有可能出现。这类故障不会抛出报错、不会类型校验失败,直到下游业务依赖这些真实业务值时,问题才会暴露。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">绝大多数关于结构化输出的文章,只讲到 “模型不会再输出损坏的 JSON”,仿佛这样就解决了可靠性问题。它只解决了可靠性其中一个维度。
你可以在 [roadmap.sh](roadmap.sh) 的 AI 工程师交互式学习路线中,一步步学习相关知识。</p>
<h2 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px; text-align: left; margin: 20px 10px 0px 0px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-family: STHeitiSC-Light; font-size: 18px; font-weight: bolder; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(248,57,41);">完美数据模型带来的陷阱</span><span class="suffix"></span></h2>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">结构化输出确实解决了一类痛点。在原生结构约束能力出现之前,想要让大模型稳定输出 JSON,只能依靠正则解析、重试循环,以及在提示词里反复恳求模型:<strong style="font-weight: border; color: rgb(248,57,41);">只输出 JSON,不要 Markdown,不要前置说明文字</strong>。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">搭配现代 OpenAI Python SDK 与 Pydantic 模型后,这类麻烦基本消失。</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;logging<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span>&nbsp;datetime&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;date<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span>&nbsp;pydantic&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;BaseModel<br><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span>&nbsp;openai&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;OpenAI<br><br>logger&nbsp;=&nbsp;logging.getLogger(__name__)<br>client&nbsp;=&nbsp;OpenAI()<br><br><span class="hljs-class" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">class</span>&nbsp;<span class="hljs-title" style="color: #e6c07b; line-height: 26px;">Transaction</span><span class="hljs-params" style="line-height: 26px;">(BaseModel)</span>:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;sender:&nbsp;str<br>&nbsp;&nbsp;&nbsp;&nbsp;amount:&nbsp;float<br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_id:&nbsp;str<br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_date:&nbsp;date<br><br>document&nbsp;=&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"""Payment&nbsp;received&nbsp;from&nbsp;Chinedu.<br>Amount:&nbsp;₦45,000<br>Reference:&nbsp;TXN-82K91<br>Date:&nbsp;11&nbsp;August&nbsp;2026"""</span><br><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;">#&nbsp;gpt-4o-mini遇到格式特殊的消息时,经常会把金额和流水号合并到同一个字段</span><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;">#&nbsp;所以这里仍使用完整版模型,尽管成本更高。等mini模型能力跟上后再评估替换</span><br>completion&nbsp;=&nbsp;client.beta.chat.completions.parse(<br>&nbsp;&nbsp;&nbsp;&nbsp;model=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"gpt-4o"</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;messages=[<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"system"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"Extract&nbsp;the&nbsp;transaction&nbsp;details."</span>},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"user"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;document},<br>&nbsp;&nbsp;&nbsp;&nbsp;],<br>&nbsp;&nbsp;&nbsp;&nbsp;response_format=Transaction,<br>)<br>txn&nbsp;=&nbsp;completion.choices[<span class="hljs-number" style="color: #d19a66; line-height: 26px;">0</span>].message.parsed<br>logger.info(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"parsed&nbsp;txn&nbsp;%s"</span>,&nbsp;txn.transaction_id)<br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">用干净规范的消息测试,这段代码完全符合预期。所有字段齐全、类型正确,不需要额外写<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">try/except</code>去处理 Markdown 代码块这类干扰内容。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">但如果收到这样一条转发消息:</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;">document&nbsp;=&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"""Payment&nbsp;received&nbsp;from&nbsp;Chinedu.<br>Amount:&nbsp;₦45,000<br>Reference:&nbsp;TXN-82K91"""</span><br><span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;">#&nbsp;这条消息不含日期</span><br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">然而数据模型并不会感知原文缺少日期。只要字段标记为必填,就必须填入内容,模型定义不会自动妥协。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">于是模型会寻找任何可以生成合法值的内容来填充:任务当前日期、训练截止时间,或是一个看起来合理的猜测。
返回结果可以完美通过类型校验,但内容完全是编造的,并且返回结果本身,没有任何标识能区分哪些字段是原文真实存在、哪些是猜测出来的。</p>
<h2 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px; text-align: left; margin: 20px 10px 0px 0px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-family: STHeitiSC-Light; font-size: 18px; font-weight: bolder; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(248,57,41);">为不确定性设计数据模型</span><span class="suffix"></span></h2>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">解决这个问题更多是思路转变,而非大量代码改动。
空字段并不代表提取失败,很多时候它只是客观事实。将字段设置为可空,就能消除模型编造内容的压力:</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;"><span class="hljs-class" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">class</span>&nbsp;<span class="hljs-title" style="color: #e6c07b; line-height: 26px;">Transaction</span><span class="hljs-params" style="line-height: 26px;">(BaseModel)</span>:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;sender:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;amount:&nbsp;float&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_id:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_date:&nbsp;date&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">如果原文没有日期,模型可以直接返回空。同时这也帮我们分清两个容易混淆的概念:<strong style="font-weight: border; color: rgb(248,57,41);">提取</strong>和<strong style="font-weight: border; color: rgb(248,57,41);">推理</strong>。</p>
<ul data-tool="mdnice编辑器" style="margin-top: 8px; margin-bottom: 8px; padding-left: 25px; color: black; list-style-type: disc; font-size: 14px;">
<li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; text-align: left; color: rgb(1,1,1); font-weight: 500; font-size: 13px;"><p style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">提取:提取文本里<strong style="font-weight: border; color: rgb(248,57,41);">明确写出来</strong>的内容。</p>
</section></li><li><section style="margin-top: 5px; margin-bottom: 5px; line-height: 26px; text-align: left; color: rgb(1,1,1); font-weight: 500; font-size: 13px;"><p style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">推理:推导文本隐含的信息。</p>
</section></li></ul>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">比如消息写着 “周二完成付款”,而你的模型要求输出 ISO 标准日期格式,这本质就是推理,无论你是否有意这样设计。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">有些场景下推理正是我们需要的,但这个选择权应该交给开发者,而不是让模型默认替我们做决定。可空字段把判断权交还业务代码:</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">if</span>&nbsp;transaction.transaction_date&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">is</span>&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span>:<br>&nbsp;&nbsp;&nbsp;&nbsp;request_missing_info(transaction_id=transaction.transaction_id)<br></code></pre>
<h2 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px; text-align: left; margin: 20px 10px 0px 0px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-family: STHeitiSC-Light; font-size: 18px; font-weight: bolder; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(248,57,41);">证据与溯源</span><span class="suffix"></span></h2>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">可空字段解决了 “凭空捏造数值” 的问题,但还有另一个更棘手的问题:模型返回了一个值,你无法判断这个值是从原文读取,还是依靠模式匹配猜出来的。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">普通对话回复里,至少还能看到模型的推理过程。结构化输出会直接输出最终结果,跳过推理步骤。
于是我在每个业务字段旁新增一个配套字段,保存支撑该字段取值的原文片段。</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span>&nbsp;pydantic&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;Field<br><br><span class="hljs-class" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">class</span>&nbsp;<span class="hljs-title" style="color: #e6c07b; line-height: 26px;">Extracted</span><span class="hljs-params" style="line-height: 26px;">(BaseModel)</span>:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"""通用包装类,避免为每种字段类型重复编写几乎一样的类"""</span><br>&nbsp;&nbsp;&nbsp;&nbsp;value:&nbsp;float&nbsp;|&nbsp;date&nbsp;|&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;evidence:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span>&nbsp;=&nbsp;Field(desc ription=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"支撑该取值的原文引用,找不到则留空"</span>)<br><br><span class="hljs-class" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">class</span>&nbsp;<span class="hljs-title" style="color: #e6c07b; line-height: 26px;">Transaction</span><span class="hljs-params" style="line-height: 26px;">(BaseModel)</span>:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;sender:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;amount:&nbsp;Extracted<br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_id:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_date:&nbsp;Extracted<br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这个通用<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">Extracted</code>包装类属于便捷写法,并非行业最佳实践。<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">value</code>使用联合类型,会损失原模型一部分类型安全能力。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">当模型字段较多时,这个取舍是值得的;如果单独为每种类型编写<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">ExtractedFloat</code>、<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">ExtractedDate</code>、<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">ExtractedString</code>只会增加重复工作量。但如果仅有一两个字段,建议单独定义专用类,结构会更整洁。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这个设计有两点核心价值:
把<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">evidence</code>放在<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">value</code>前面很关键。JSON 会按顺序生成键,模型必须先写下它参考的原文,再输出结果,相当于强制留下推导依据。
同时,复核人员不用重读原始文本,就能拿到可核验的依据。如果<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">value</code>有值,但<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">evidence</code>为空,或者证据文本根本不存在于源文档,这种不匹配本身就是幻觉的信号。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这套方案有成本。在几百条交易消息的批量测试中,给所有字段增加证据字段后,输出 token 数量增加约三分之一,延迟上涨,在大规模流水线中不可忽视。
如果只是提取 5 位邮编这类简单信息,不值得这么做。但金融数据这类会直接影响业务决策的场景,投入成本完全值得。</p>
<h2 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px; text-align: left; margin: 20px 10px 0px 0px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-family: STHeitiSC-Light; font-size: 18px; font-weight: bolder; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(248,57,41);">生成与校验的边界</span><span class="suffix"></span></h2>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">到这一步,模型结构已经承载了多重能力:可空类型防止编造数据,证据字段用于捕捉幻觉。
但还有一类错误无法被二者捕获:输出的值是否符合现实常识。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">模型结构只能保证<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">amount</code>是浮点数,无法校验这个数字不能为负数,也无法判断<code style="font-size: 14px; word-wrap: break-word; padding: 2px 4px; border-radius: 4px; margin: 0 2px; background-color: rgba(27,31,35,.05); font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; word-break: break-all; color: rgb(271,93,108);">transaction_date</code>会不会是未来三天的日期。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">早期我尝试在提示词增加约束,例如 “金额必须大于 0”。事后回想,让大模型做这类强制校验本身就不合理。大模型不是计算器。
使用校验器来完成这件事,稳定、准确,且没有额外开销:</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">from</span>&nbsp;pydantic&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">import</span>&nbsp;model_validator,&nbsp;Validation error<br><br><span class="hljs-class" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">class</span>&nbsp;<span class="hljs-title" style="color: #e6c07b; line-height: 26px;">Transaction</span><span class="hljs-params" style="line-height: 26px;">(BaseModel)</span>:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;sender:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;amount:&nbsp;float&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_id:&nbsp;str&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br>&nbsp;&nbsp;&nbsp;&nbsp;transaction_date:&nbsp;date&nbsp;|&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span><br><br><span class="hljs-me ta" style="color: #61aeee; line-height: 26px;">&nbsp;&nbsp;&nbsp;&nbsp;@model_validator(mode="after")</span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-function" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">def</span>&nbsp;<span class="hljs-title" style="color: #61aeee; line-height: 26px;">check_sane_values</span><span class="hljs-params" style="line-height: 26px;">(self)</span>&nbsp;-&gt;&nbsp;"Transaction":</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;">#&nbsp;历史中出现过两次负金额,都是原文描述退款而非收款场景</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">if</span>&nbsp;self.amount&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">is</span>&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">not</span>&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span>&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">and</span>&nbsp;self.amount&nbsp;&lt;=&nbsp;<span class="hljs-number" style="color: #d19a66; line-height: 26px;">0</span>:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">raise</span>&nbsp;ValueError(<span class="hljs-string" style="color: #98c379; line-height: 26px;">f"amount&nbsp;must&nbsp;be&nbsp;positive,&nbsp;got&nbsp;<span class="hljs-subst" style="color: #e06c75; line-height: 26px;">{self.amount}</span>"</span>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">if</span>&nbsp;self.transaction_date&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">is</span>&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">not</span>&nbsp;<span class="hljs-literal" style="color: #56b6c2; line-height: 26px;">None</span>&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">and</span>&nbsp;self.transaction_date&nbsp;&gt;&nbsp;date.today():<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">raise</span>&nbsp;ValueError(<span class="hljs-string" style="color: #98c379; line-height: 26px;">f"transaction_date&nbsp;<span class="hljs-subst" style="color: #e06c75; line-height: 26px;">{self.transaction_date}</span>&nbsp;is&nbsp;in&nbsp;the&nbsp;future"</span>)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">return</span>&nbsp;self<br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">现在,API 负责保证返回数据结构合法;数据被解析成对象时,Pydantic 负责校验业务合理性,整个校验过程完全不依赖大模型。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">当校验器抛出异常,你有两种选择:将记录转给人工审核;或者把错误信息回传给模型,让它重试。我选择后者,但严格限制最多重试 2 次:</p>
<pre class="custom" data-tool="mdnice编辑器" style="margin-top: 10px; margin-bottom: 10px;"><code class="hljs" style="overflow-x: auto; padding: 16px; color: #abb2bf; background: #282c34; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;">MAX_RETRIES&nbsp;=&nbsp;<span class="hljs-number" style="color: #d19a66; line-height: 26px;">2</span><br><span class="hljs-function" style="line-height: 26px;"><span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">def</span>&nbsp;<span class="hljs-title" style="color: #61aeee; line-height: 26px;">extract_with_retry</span><span class="hljs-params" style="line-height: 26px;">(document:&nbsp;str)</span>&nbsp;-&gt;&nbsp;Transaction:</span><br>&nbsp;&nbsp;&nbsp;&nbsp;history&nbsp;=&nbsp;[<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"system"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"Extract&nbsp;the&nbsp;transaction&nbsp;details."</span>},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"user"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;document},<br>&nbsp;&nbsp;&nbsp;&nbsp;]<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">for</span>&nbsp;attempt&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">in</span>&nbsp;range(MAX_RETRIES&nbsp;+&nbsp;<span class="hljs-number" style="color: #d19a66; line-height: 26px;">1</span>):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;completion&nbsp;=&nbsp;client.beta.chat.completions.parse(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;model=<span class="hljs-string" style="color: #98c379; line-height: 26px;">"gpt-4o"</span>,&nbsp;messages=history,&nbsp;response_format=Transaction<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;raw&nbsp;=&nbsp;completion.choices[<span class="hljs-number" style="color: #d19a66; line-height: 26px;">0</span>].message.content<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">try</span>:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">return</span>&nbsp;Transaction.model_validate_json(raw)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">except</span>&nbsp;Validation error&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">as</span>&nbsp;e:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">if</span>&nbsp;attempt&nbsp;==&nbsp;MAX_RETRIES:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="hljs-keyword" style="color: #c678dd; line-height: 26px;">raise</span>&nbsp;&nbsp;<span class="hljs-comment" style="color: #5c6370; font-style: italic; line-height: 26px;">#&nbsp;达到最大重试次数,交由上层转发人工处理</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;logger.warning(<span class="hljs-string" style="color: #98c379; line-height: 26px;">"validation&nbsp;failed&nbsp;on&nbsp;attempt&nbsp;%d:&nbsp;%s"</span>,&nbsp;attempt,&nbsp;e)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;history&nbsp;+=&nbsp;[<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"assistant"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;raw},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<span class="hljs-string" style="color: #98c379; line-height: 26px;">"role"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"user"</span>,&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">"content"</span>:&nbsp;<span class="hljs-string" style="color: #98c379; line-height: 26px;">f"That&nbsp;failed&nbsp;validation:&nbsp;<span class="hljs-subst" style="color: #e06c75; line-height: 26px;">{e}</span>.&nbsp;Fix&nbsp;only&nbsp;the&nbsp;bad&nbsp;field."</span>},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]<br></code></pre>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">最大重试次数的限制远比看上去重要。我一开始想设置无限重试,这是错误的。两次重试失败,基本代表原始文档本身存在问题,不是提示词的问题。继续调用 API 只会浪费成本,而人工十秒就能完成处理。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这套方案并非 OpenAI 专属,虽然示例代码基于它。换成 Claude 工具调用,或是 vLLM+Outlines 本地部署方案,Pydantic 模型代码几乎不用改动,只需要替换外层 API 调用代码。</p>
<h2 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 22px; text-align: left; margin: 20px 10px 0px 0px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-family: STHeitiSC-Light; font-size: 18px; font-weight: bolder; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(248,57,41);">重新思考信息提取的目标</span><span class="suffix"></span></h2>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">项目刚跑通的时候,我的成功标准低得离谱:模型是否成功填充对象、没有解析报错。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">回头看,这个标准奖励了错误的行为。一个急于填满所有字段、无视原文真实内容的模型并不可靠,它只是看起来很自信,而自信的幻觉更加危险。</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">结构化输出确实擅长它本职工作:保证返回数据结构,但<strong style="font-weight: border; color: rgb(248,57,41);">不保证内容真实</strong>。当你不再操心括号、转义引号这类格式问题,真正的问题依旧摆在面前:对象里每一个值,是否都有真实依据?</p>
<p data-tool="mdnice编辑器" style="padding-top: 8px; padding-bottom: 8px; color: black; margin: 10px 10px; line-height: 1.75; letter-spacing: 0.2em; font-size: 14px; word-spacing: 0.1em;">这个问题从始至终都是难点,只是过去数据模型把它掩盖住了。</p>
<h3 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 14px; color: rgb(165,213,93);">推荐学习书籍 《<strong style="font-weight: border; color: rgb(248,57,41);">CDA一级教材</strong>》适合CDA一级考生备考,也适合业务及数据分析岗位的从业者提升自我。完整电子版已上线CDA网校,累计已有10万+在读~ !</span><span class="suffix" style="display: none;"></span></h3>
<figure data-tool="mdnice编辑器" style="margin: 0; margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;"><img src="https://file.haoxueai.cn/haoxue/img/4502d41c-fb3a-43a8-bf50-9e14aedde094.png" alt style="max-width: 100%; border-radius: 0px 0px 5px 5px; display: block; margin: 20px auto; width: 85%; height: 100%; ob ject-fit: contain; box-shadow: #84A1A8 0px 10px 15px;"></figure>
<h3 data-tool="mdnice编辑器" style="margin-top: 30px; margin-bottom: 15px; padding: 0px; font-weight: bold; color: black; font-size: 20px;"><span class="prefix" style="display: none;"></span><span class="content" style="font-size: 14px; color: rgb(165,213,93);">免费加入阅读:<a href="https://edu.cda.cn/goods/show/3151?targetId=5147&amp;preview=0" style="text-decoration: none; word-wrap: break-word; font-weight: bold; color: rgb(248,57,41); border-bottom: 1px solid #ff3502; font-family: STHeitiSC-Light;">https://edu.cda.cn/goods/show/3151?targetId=5147&amp;preview=0</a></span><span class="suffix" style="display: none;"></span></h3>
</section>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝


您需要登录后才可以回帖 登录 | 我要注册

本版微信群
扫码
拉您进交流群
GMT+8, 2026-11-25 20:12