Type: url

Original: https://jimmysong.io/zh/book/ai-handbook/context/overview/

Status: generated

Summary

A draft chapter of Jimmy Song’s 智能体构建指南 on context engineering, which opens with a conceptual correction it treats as prerequisite to the rest: a Session is the complete, persisted interaction record whose goal is to lose nothing, while a Context is the payload constructed dynamically before each inference whose goal is to carry only what is relevant. It argues that conflating the two produces two engineering consequences — quality degradation, because irrelevant information acts as noise rather than as background, and uncontrolled cost, because a session grows without bound while the context window has a hard limit — and therefore frames the practice not as giving the model more but as building a Context Construction Pipeline that filters, compresses, reorders and validates. The remainder treats agents, query augmentation, retrieval, chunking, memory tiers and tools/MCP as components of that one pipeline.

Generated pages