上下文压缩

Documentation Index

Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.

上下文压缩

上下文窗口(Context Window) 可以理解成 AI 的“短期记忆”,它决定了模型在一次对话中能够“记住”并处理的信息总量。就像人脑的短期记忆有限一样,AI 会话的上下文窗口也有上限。当前 Qoder 选择支持 200K 上下文长度。

## 工作原理

Qoder 的上下文压缩功能为你提供会话上下文窗口的可见性,让你可实时查看当前会话的上下文用量,并引导你在不同场景下适时采取相应措施。

压缩当前会话(Compact Chat)

  • 适用场景: 围绕同一主题持续深入开发,会话变得冗长,上下文窗口快“撑满”时。

  • 操作: 点击「压缩当前会话」,将自动为会话“划重点做总结”:

  • 智能总结: 保留关键代码逻辑等信息,剔除冗余内容,同时保留核心脉络。

  • 效果立现: 有效降低 Credits 消耗,同时提升 AI 响应速度。

新建会话(New Chat)

  • 适用场景: 需要切换一个全新的话题或任务,例如从 Bug 修复转向新功能开发时。

  • 操作: 点击「新建会话」,即可开启一个全新会话,为思路和成本双双“减负”。

  • 更准: 摆脱无关历史上下文干扰,让 AI 响应更精准。

  • 更省: 避免因无关上下文导致的 Credits 浪费。

由于上下文压缩会影响生成质量,为了最大限度保障质量,上下文压缩在两种情况下会被禁用:

  • 对话的早期阶段,此时节省的 Credits 较少。
  • 当 AI 正在生成回复时,此时压缩会中断或影响回复生成。

暂无介绍....

延伸阅读:

行间会话

Documentation IndexFetch the complete documentation index at...

Allen
2026年4月3日
概览

Documentation IndexFetch the complete documentation index at...

Allen
2026年4月3日
工具

Documentation IndexFetch the complete documentation index at...

Allen
2026年4月3日
上下文压缩

Documentation IndexFetch the complete documentation index at...

Allen
2026年4月3日
Experts 模式

Documentation IndexFetch the complete documentation index at...

Allen
2026年4月3日