引导式测验 · 中等 等级

上下文压缩和对话历史记录管理测验

测试截断与滚动摘要、代理压缩和工具结果清除的工作原理,以及为什么基于令牌的阈值很重要。

问题 1 的 8

为什么长时间的聊天会话变得越来越昂贵?

预览每个问题8 问题

当您参加测验时,就会出现答案和解释。

  1. 为什么长时间的聊天会话变得越来越昂贵?
    • The model stores a copy of the chat on every server
    • Providers bill by the number of days a chat stays open
    • Most chat APIs are stateless, so every request resends the full conversation so far
    • The model retrains itself on each new message
  2. 滑动窗口截断的主要弱点是什么?
    • It forgets early facts, such as constraints the user stated at the start
    • It is the most expensive strategy
    • It requires a second model to run
    • It rewrites the system prompt
  3. 滚动汇总特有哪些风险?
    • Summaries cannot be generated by language models
    • It increases the number of tokens per request
    • It only works with image inputs
    • Summaries lose detail, and errors can compound when a summary is summarized again
  4. 压缩通常在代理工具中产生什么?
    • An empty history with no information carried over
    • A structured handoff of goal, progress, decisions and open problems that seeds a fresh context
    • A full copy of every file the agent has opened
    • A newly fine-tuned model
  5. 为什么在代理会话中清除旧工具结果如此有效?
    • Large outputs from searches, file reads and commands are often the biggest token consumers and are rarely needed again
    • Tool results are always incorrect
    • APIs forbid tool results after the first turn
    • It makes the tokenizer run faster
  6. Why should thresholds be based on token counts rather than message counts?
    • Messages cannot be counted programmatically
    • Tokens are free, while messages are billed
    • A single tool result can outweigh many chat turns
    • Providers bill only by message count
  7. When clearing a tool result, why replace its content instead of deleting the message?
    • To make the history longer
    • Many APIs reject a history in which a tool call has no matching result
    • Placeholders make the model more creative
    • Replacing content encrypts it
  8. According to the guide, where does continuity in a long session actually come from?
    • The model's permanent memory of all past chats
    • The GPU's internal cache
    • The user's web browser
    • What the application chooses to resend or retrieve