技巧精选

优化提示词无法修复上下文管道问题

精选理由

Weaviate 分享了智能体RAG的5个关键系统,告诉你为什么优化提示词没用,以及如何真正控制信息流。

可靠智能体RAG依赖控制信息如何到达模型、何时到达以及以何种形式到达。上下文工程分为5个相互关联的系统:1.

图片来源 · Weaviate
正文

查询增强,用户输入混乱,需重写、扩展或分解查询以匹配检索系统。2.

检索,分块存在权衡,小分块提高精度但丢失上下文,大分块增加上下文但消耗更多窗口。3.

记忆,完整对话历史会产生噪音,长期记忆应存储在模型外部并定期维护。4.

工具,工具描述和选择消耗上下文,暴露过多 poorly described 工具会降低效率。5.

智能体,连接所有部分但会放大上游错误。

原文 · Weaviate

Better prompts won't fix a broken context pipeline. Reliable agentic RAG depends on controlling 𝘄𝗵𝗮𝘁 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻 𝗿𝗲𝗮𝗰𝗵𝗲𝘀 𝘁𝗵𝗲 𝗺𝗼𝗱𝗲𝗹, 𝘄𝗵𝗲𝗻 𝗶𝘁 𝗮𝗿𝗿𝗶𝘃𝗲𝘀, 𝗮𝗻𝗱 𝗶𝗻 𝘄𝗵𝗮𝘁 𝗳𝗼𝗿𝗺. In @victorialslocum ’s latest video, she breaks context engineering into 5 interconnected systems: 𝟭. 𝗤𝘂𝗲𝗿𝘆 𝗮𝘂𝗴𝗺𝗲𝗻𝘁𝗮𝘁𝗶𝗼𝗻 User input is messy. Rewriting, expanding, or decomposing queries helps translate intent into something your retrieval system can actually use. No retrieval technique can compensate for misunderstood intent. 𝟮. 𝗥𝗲𝘁𝗿𝗶𝗲𝘃𝗮𝗹 Chunking creates a real trade-off: small chunks improve precision but lose surrounding meaning, while large chunks add context but consume more of the window. Start with a simple baseline, then benchmark recursive or semantic chunking on representative data. 𝟯. 𝗠𝗲𝗺𝗼𝗿𝘆 Dumping complete conversation history into the prompt creates noise. Long-term memory should live outside the model and only be retrieved when relevant. It also needs maintenance: pruning stale information, merging duplicates, resolving contradictions, and deliberately forgetting what is no longer useful. 𝟰. 𝗧𝗼𝗼𝗹𝘀 Tool descriptions, argument formats, and tool selection all consume context. Exposing 100 poorly described tools doesn't make an agent more capable. It makes the relevant tool harder to find. 𝟱. 𝗔𝗴𝗲𝗻𝘁𝘀 Agents connect everything together by deciding what to retrieve, which tools to call, what to retain, and how to recover when a step fails. But they also compound upstream errors. Wrong chunks, stale memories, and malformed tool calls propagate through the entire pipeline. The model is only one part youtu.be/sUoNoaatRvU?si… ble agentic RAG comes from engineering how context flows around it. Watch here: https://t.co/0nxtfBfxZm

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:RAG、智能体、提示词工程、上下文工程,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「Weaviate」(@weaviate_io),经 AITOP 多维评分管线结构化提炼。

发现摘要或翻译有误? 告诉我们