# 第一章 上下文工程概述

在人工智能快速发展的今天，大语言模型已经从实验室走向千家万户。然而，当我们试图将这些强大的模型应用于复杂的实际场景时，一个关键问题逐渐浮出水面：**如何让模型获得正确的信息，以产生可靠的输出？**

这正是上下文工程要解决的核心问题。

本章将带领读者认识上下文工程这一新兴学科，理解它的定义、起源、价值，以及它与传统提示词工程的本质区别。无论是刚接触 AI 应用开发的新手，还是希望提升系统可靠性的资深工程师，本章都将为后续学习奠定坚实的基础。

## 本章内容

* [1.1 什么是上下文工程](/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview/1.1_definition.md)
* [1.2 从提示词工程到上下文工程](/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview/1.2_evolution.md)
* [1.3 上下文工程的核心价值](/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview/1.3_value.md)
* [1.4 本书结构与学习路径](/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview/1.4_roadmap.md)
* [本章小结](/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview/summary.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yeasy.gitbook.io/context_engineering_guide/di-yi-bu-fen-ren-shi-shang-xia-wen-gong-cheng/01_overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
