微信扫码
添加专属顾问
我要投稿
其实在发表这个观点之前,吴恩达老师还专门做了一个Agentic的翻译工作流,用来更好地解释什么是Agentic。
这篇文章,就结合公开的核心代码,讲解一下什么叫做Agentic工作流以及这个过程中最重要的是什么。
吴老师公开的这个小项目真的很小,核心代码就一个文件——src/translation_agent/utils.py,虽然这个文件有近700行,但是简单看下,就只有12个函数。这12个函数,可以按照下面来分析:
我们这里只分析下短文本的翻译流程,因为这是Agentic翻译工作流的重点:
这三个步骤,仅仅通过提示词的构造,便可以实现。
正是因为这个工作流中有了反思与改进,才使得这个工作流比仅仅通过一个直译的工作流要更加Agentic。
紧接着,对于一个具体的任务,该如何让大模型对初始结果进行反思和改进?这就需要业务专家来制定了。我们来通过具体的提示词来说明。
When writing suggestions, pay attention to whether there are ways to improve the translation's
(i) accuracy (by correcting errors of addition, mistranslation, omission, or untranslated text),
(ii) fluency (by applying {target_lang} grammar, spelling and punctuation rules, and ensuring there are no unnecessary repetitions),
(iii) style (by ensuring the translations reflect the style of the source text and takes into account any cultural context),
(iv) terminology (by ensuring terminology use is consistent and reflects the source text domain; and by only ensuring you use equivalent idioms {target_lang}).
Write a list of specific, helpful and constructive suggestions for improving the translation.
Each suggestion should address one specific part of the translation.
可以看到,代码里着重强调了在直译基础上,增加对准确性、流畅性、风格、术语方面的建议。当然,也许你在翻译某些领域的内容时,会有不同的建议,那你也可以仿照上面的形式,增加反思的点。
Please take into account the expert suggestions when editing the translation. Edit the translation by ensuring:
(i) accuracy (by correcting errors of addition, mistranslation, omission, or untranslated text),
(ii) fluency (by applying {target_lang} grammar, spelling and punctuation rules and ensuring there are no unnecessary repetitions),
(iii) style (by ensuring the translations reflect the style of the source text)
(iv) terminology (inappropriate for context, inconsistent use), or
(v) other errors.
Output only the new translation and nothing else.
这里改进的关键词,则与反思中的建议一一对应,指引大模型按照上面的建议对直译的结果进行修改,并直接输出修改后的内容。
通过这个简短的翻译例子,我们可以看到Agentic工作流其实可以看成是一种结构化的prompt工程,结构化具体的体现就是在原始的直接输出结果的prompt之上,通过引入反思和改进,来优化大模型完成具体任务的效果。而具体prompt的构造,则需要对业务流程的深入理解。
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2026-06-27
OpenAI深夜引爆GPT-5.6,三箭齐发全面围剿Anthropic
2026-06-27
Agent 发邮件踩坑全记录:从 SMTP 翻车到 Agently Mail
2026-06-27
AgentTeams 和 Claude Tag 都进入群聊模式,是新范式还是新叙事?
2026-06-27
GPT-5.6 Sol深夜炸场发布!OpenAI最强模型碾压Claude 5!
2026-06-26
腾讯混元AI Infra如何优化Hy3 Preview:一次大模型推理性能提升的技术拆解
2026-06-26
多智能体的记忆接线:同一任务,每个角色看到的不一样
2026-06-26
Agent 从 Demo 到生产级,中间到底差什么?
2026-06-26
Loop Engineering 到底是什么?看这一篇就够了
2026-04-15
2026-04-07
2026-04-07
2026-03-31
2026-04-24
2026-04-17
2026-03-31
2026-04-05
2026-04-02
2026-04-05
2026-06-27
2026-06-26
2026-06-25
2026-06-18
2026-06-18
2026-06-10
2026-06-10
2026-06-07