Files
myWiki/concepts/just-in-time-retrieval.md

41 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Just-in-Time Retrieval即时检索"
created: 2026-06-29
updated: 2026-06-29
type: concept
tags: [context-engineering, retrieval, optimization]
sources: [[prompt-to-loop-engineering-2026]]
confidence: high
---
# Just-in-Time Retrieval (JIT Retrieval)
> [[context-engineering|Context Engineering]] 的核心方法论之一:初始阶段仅维护资料的轻量引用(如路径或 ID运行时按需实时加载。
## 设计哲学
借鉴制造业的 JITJust-in-Time生产理念
- **不全量预加载**:不在请求开始时把所有可能需要的资料塞入上下文
- **按需拉取**:模型在执行中识别需要时,通过引用(路径/ID触发加载
- **与渐进式披露配合**:先暴露名称或摘要,模型判断需要时再展开完整内容
## 业界实践
- **Anthropic Skills**:采用 JIT 设计哲学——Skills 不预加载全文,模型按需调用
- **Hermes Agent Skills**`skill_view(name)` 模式——先列出名称,按需加载 SKILL.md
## 与相关模式的对比
| 模式 | 加载时机 | 上下文占用 |
|------|---------|-----------|
| 全量预加载 | 请求开始 | 最大 |
| [[minimum-viable-context|MVC]] | 请求开始时精选 | 中等 |
| JIT 检索 | 运行时按需 | 最小 |
## 相关概念
- [[context-engineering|Context Engineering]]
- [[minimum-viable-context|MVC]]
- [[context-failure-modes|上下文故障模式]]