逐日AI微信小程序
← 返回全部课程题库

5 天上下文工程

课程题库 · 15 / 15 道题

D1 上下文是最稀缺的资源:窗口、注意力衰减与成本,从提示词工程走到上下文工程

  • 一次 Agent 请求的上下文里都有什么?哪一块最容易失控,为什么?What actually goes into the context of a single agent request, and which part is most likely to blow up?
    国内高频海外高频基础#context-window#token-budget

    🔒 解锁 D1 后查看答题要点。

  • 窗口越来越大了,为什么不能把所有可能有用的资料都塞进去?Context windows keep growing. Why not just put everything potentially relevant into the prompt?
    国内高频海外高频进阶#context-rot#attention-budget#cost

    🔒 解锁 D1 后查看答题要点。

  • 提示词工程和上下文工程的分界在哪?什么时候该从前者切换到后者?Where is the line between prompt engineering and context engineering, and when do you switch?
    国内高频海外高频进阶#prompt-engineering#context-engineering#scoping

    🔒 解锁 D1 后查看答题要点。

D2 系统提示与指令层次:高度适中、持久指令文件、渐进披露,少即是多

  • 系统提示的高度怎么把握?写太具体和写太笼统各会出什么问题?How do you calibrate the altitude of a system prompt, and what goes wrong at each extreme?
    国内高频海外高频进阶#system-prompt#altitude

    🔒 解锁 D2 后查看答题要点。

  • 哪些内容该进系统提示,哪些该进持久指令文件,哪些该按需加载?What belongs in the system prompt, what belongs in a persistent instruction file, and what should be loaded on demand?
    国内高频海外高频进阶#instruction-hierarchy#progressive-disclosure

    🔒 解锁 D2 后查看答题要点。

  • 系统提示越写越长是怎么发生的?你会怎么止住这个过程?How do system prompts keep growing, and how would you stop it?
    国内高频海外高频基础#prompt-bloat#maintenance

    🔒 解锁 D2 后查看答题要点。

D3 工具结果与检索的上下文管理:按需加载、摘要与裁剪、结构化返回

  • Agent 挂了三十个工具,明显吃不消了。你会怎么裁?依据是什么?An agent has thirty tools mounted and it is clearly struggling. How do you cut the list, and on what basis?
    国内高频海外高频进阶#tool-design#tool-budget

    🔒 解锁 D3 后查看答题要点。

  • 按需加载和预先检索怎么选?混合策略应该怎么搭?How do you choose between just-in-time loading and pre-inference retrieval, and how would you combine them?
    国内高频海外高频进阶#retrieval#just-in-time#hybrid

    🔒 解锁 D3 后查看答题要点。

  • 为什么说工具返回的内容是不可信输入?做了字段白名单裁剪之后还需要担心吗?Why are tool results untrusted input, and does field whitelisting make the concern go away?
    国内高频海外高频深入#prompt-injection#trust-boundary

    🔒 解锁 D3 后查看答题要点。

D4 长时程会话:压缩、笔记与记忆文件、子代理隔离与交接摘要

  • 什么时候该压缩上下文,什么时候该直接换一个更大的窗口?When should you compact the context, and when should you just move to a larger context window?
    国内高频海外高频进阶#compaction#context-rot

    🔒 解锁 D4 后查看答题要点。

  • 压缩最容易丢什么?你怎么验证一次压缩没有丢掉关键信息?What does compaction lose most easily, and how do you verify that a given compaction kept what mattered?
    国内高频海外高频深入#compaction#verification

    🔒 解锁 D4 后查看答题要点。

  • 子代理为什么只回传摘要而不回传全过程?主代理该怎么写交接要求?Why does a subagent return only a summary instead of its full transcript, and how should the lead agent specify the handoff?
    国内高频海外高频深入#subagents#handoff#cost

    🔒 解锁 D4 后查看答题要点。

D5 度量与调优:token 账单、上下文利用率、失败模式排查与综合面试专题

  • 怎么给一个 Agent 算一次任务的 token 账单?哪些部分是可以被缓存掉的?How do you compute the token bill for one agent task, and which parts can be cached away?
    国内高频海外高频深入#token-accounting#prompt-caching

    🔒 解锁 D5 后查看答题要点。

  • 上下文出问题的时候,你怎么定位是四块里的哪一块?When context is the problem, how do you localize which of the four buckets is at fault?
    国内高频海外高频进阶#diagnostics#metrics

    🔒 解锁 D5 后查看答题要点。

  • 上下文工程做到什么程度算够?你怎么知道该停手了?How much context engineering is enough, and how do you know when to stop?
    国内高频海外高频进阶#tuning#stopping-criteria

    🔒 解锁 D5 后查看答题要点。