A Survey of Context Engineering for Large Language Models
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of California, Merced(加州大学默塞德分校);The University of Queensland(昆士兰大学);Peking University(北京大学);Tsinghua University(清华大学);University of Chinese Academy of Sciences(中国科学院大学)
The performance of Large Language Models (LLMs) is fundamentally determined by the contextual information provided during inference. This survey introduces Context Engineering, a formal discipline that transcends simple prompt design to encompass the systematic optimization of information payloads for LLMs. We present a comprehensive taxonomy decomposing Context Engineering into its foundational components and the sophisticated implementations that integrate them into intelligent systems. We first examine the foundational components: context retrieval and generation, context processing and context management. We then explore how these components are architecturally integrated to create sophisticated system implementations: retrieval-augmented generation (RAG), memory systems and tool-integrated reasoning, and multi-agent systems. Through this systematic analysis of over 1400 research papers, our survey not only establishes a technical roadmap for the field but also reveals a critical research gap: a fundamental asymmetry exists between model capabilities. While current models, augmented by advanced context engineering, demonstrate remarkable proficiency in understanding complex contexts, they exhibit pronounced limitations in generating equally sophisticated, long-form outputs. Addressing this gap is a defining priority for future research. Ultimately, this survey provides a unified framework for both researchers and engineers advancing context-aware AI.
The Prompt Report: A Systematic Survey of Prompt Engineering Techniques
University of Maryland(马里兰大学);Learn Prompting;OpenAI;Stanford(斯坦福大学);Microsoft(微软公司);Vanderbilt(范德堡大学);Princeton(普林斯顿大学);Texas State University(德克萨斯州立大学);Icahn School of Medicine(伊坎医学院);ASST Brianza(布里安扎综合医院);Mount Sinai Beth Israel(西奈山 Beth Israel 医院);Instituto de Telecomunicações(电信研究所);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)
A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System
Digital Trust Centre, Nanyang Technological University, Singapore(南洋理工大学数字信任中心);College of Computing and Data Science, Nanyang Technological University, Singapore(南洋理工大学计算与数据科学学院);The Hong Kong University of Science and Technology, Hong Kong(香港科学与技术大学);School of Computer Science, Shanghai Jiao Tong University, Shanghai, China(上海交通大学计算机科学学院);School of Computing and Data Science, The University of Hong Kong, Hong Kong(香港大学计算与数据科学学院);School of Computer Science and Technology, The University of Cambridge, UK(剑桥大学计算机科学与技术学院)
From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future
School of Electrical and Computer Engineering, The University of Sydney(悉尼大学电气与计算机工程学院);University at Buffalo, SUNY(纽约州立大学布法罗分校);University of Chicago(芝加哥大学)
Advances and Frontiers of LLM-based Issue Resolution in Software Engineering: A Comprehensive Survey
Sun Yat-sen University(中山大学);Hangzhou Normal University(杭州师范大学);Zhejiang University(浙江大学);Huawei Technologies Co, Ltd(华为技术有限公司);Chongqing University(重庆大学)
Agents in Software Engineering: Survey, Landscape, and Vision
Sun Yat-sen University(中山大学);Xi’an Jiaotong University(西安交通大学);Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Xiamen University(厦门大学);Huawei Cloud Computing Technologies Co., Ltd.(华为云计算技术有限公司)
ACE-GraphRAG: Agentic Context Engineering for Hierarchical GraphRAG
The Chinese University of Hong Kong(香港中文大学);Wuhan University of Technology(武汉理工大学);The Hong Kong University of Science and Technology(香港科技大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)