arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.04258cs.AIcs.HC
收藏

上下文工程:一种结构化的人机协作实践方法论

Context Engineering: A Practitioner Methodology for Structured Human-AI Collaboration

Elias Calboreanu

AI总结:

本文提出上下文工程方法,通过结构化方式构建、声明和排序AI提示的完整信息负载,提升输出质量。实验显示,结构化上下文可减少迭代次数并提高首次通过率。

摘要:

AI生成输出的质量常归因于提示技术,但大量实证观察表明,上下文完整性更强烈关联输出质量。本文引入上下文工程,一种结构化方法用于构建、声明和排序伴随提示的完整信息负载。上下文工程定义了五角色上下文包结构(权威、范例、约束、准则、元数据),应用四阶段流水线(审阅者到设计者到建造者到审计者),并应用可靠性工程和信息理论的正式模型作为事后解释透镜。在对200个跨四个AI工具(Claude、ChatGPT、Cowork、Codex)的交互的观察研究中,不完整上下文与72%的迭代周期相关。结构化上下文构建将平均迭代次数从3.8降至2.0,首次通过率从32%提升至55%。在结构化交互中,110/200被首次接受,而基准交互仅16/50;允许迭代时,最终成功率达91.5%(183/200)。这些结果为观察性,反映单操作员数据集,无受控比较。初步验证由一个配套生产自动化系统提供,该系统有11个运行车道和2132张分类工单。

英文摘要:

The quality of AI-generated output is often attributed to prompting technique, but extensive empirical observation suggests that context completeness may be more strongly associated with output quality. This paper introduces Context Engineering, a structured methodology for assembling, declaring, and sequencing the complete informational payload that accompanies a prompt to an AI tool. Context Engineering defines a five-role context package structure (Authority, Exemplar, Constraint, Rubric, Metadata), applies a staged four-phase pipeline (Reviewer to Design to Builder to Auditor), and applies formal models from reliability engineering and information theory as post hoc interpretive lenses on context quality. In an observational study of 200 documented interactions across four AI tools (Claude, ChatGPT, Cowork, Codex), incomplete context was associated with 72% of iteration cycles. Structured context assembly was associated with a reduction from 3.8 to 2.0 average iteration cycles per task and an improvement in first-pass acceptance from 32% to 55%. Among structured interactions, 110 of 200 were accepted on first pass compared with 16 of 50 baseline interactions; when iteration was permitted, the final success rate reached 91.5% (183 of 200). These results are observational and reflect a single-operator dataset without controlled comparison. Preliminary corroboration is provided by a companion production automation system with eleven operating lanes and 2,132 classified tickets.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑