Files
myWiki/concepts/context-prefetch-vs-agentic.md

1.5 KiB
Raw Blame History

title, created, updated, type, tags, sources
title created updated type tags sources
上下文预取 vs 按需加载Context Prefetch vs Agentic 2026-07-03 2026-07-03 concept
agent
context
latency
token-economics
https://mp.weixin.qq.com/s/iiTmgbtrYHMMjQ7dn7CDrg

上下文预取 vs 按需加载

Harness 要明确规定哪些提前带入Prefetch哪些按需读取Agentic

核心定义

workspace-first-architecture 中,上下文加载被拆成两种模式:

模式 触发时机 内容 特点
Prefetch 进入工作区时自动 用户偏好、近期工作事件、常用经验 短、准、可控
Agentic 模型主动请求 完整文档详情、历史会议纪要 按需触发,增加交互轮次

设计权衡

  • 预取过多 → 抬高上下文成本,大量不相关内容占据注意力
  • 全部按需读取 → 增加交互轮次和失败点,延迟上升
  • 最优策略:核心信息 prefetch + 详情按需 agentic

与记忆召回的关系

Prefetch/Agentic 是上下文层的加载策略,memory-recall-fast-slow 是记忆层对同一思路的实现——fast 对应 prefetchslow 对应 agentic。

参考