知识卡片
提准的次序:提示、检索、微调
提高 AI 应用准确率有三种基本手段,按成本由低到高排列,也应按这个顺序尝试。
第一步是提示工程:实验不同的提示写法,看哪种能得到更好的结果。成本几乎只有时间,且不改变系统结构。第二步是检索增强生成:当需要特定领域知识或较新信息时,在运行时把资料提供给模型。它把问题从”让模型记住”转为”让模型读到”,可控性明显提高。第三步是微调:用领域数据再训练模型,仅适用于执行高度专门化任务的场景,因为需要显著的专业知识与资源。
顺序背后的判断是:越靠前的办法越容易改、越容易回滚,也越不锁定。提示词是文本,检索是数据组织,两者都能在不换模型的前提下反复迭代;微调则产出一个需要维护的模型资产,一旦数据或任务变化就要重做。
这也解释了为什么把提示词管理做成重型基础设施并不划算——真正需要平台化的是评估、检索与模型接入这些更稳定的部分(见 [[提示词不该成为平台的核心资产]])。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- AI Applications and Their Lifecycle · 查看原书依据
And finally, for applications executing highly specific tasks, fine-tuning an LLM on domain-specific data can be an additional strategy. However, as this requires significant expertise and resources, it should only be considered when other strategies are insufficient.
参考来源
- 位置:《Building AI Agent Platforms》第01章《AI Applications and Their Lifecycle》(源文件:extracted/Building AI Agent Platforms/_epub-src/OEBPS/ch01.html,来源项目 book-source)
- 结论依据:原文依次给出提示工程、RAG、微调三种策略,并明确微调因需要显著专门知识与资源,只应在其他策略不足时考虑。
- 原始内容:And finally, for applications executing highly specific tasks, fine-tuning an LLM on domain-specific data can be an additional strategy. However, as this requires significant expertise and resources, it should only be considered when other strategies are insufficient.