将智能体锚定到知识源

使用 Microsoft Copilot Studio 构建 Agent

Nia Joseph

AI Product Manager, Microsoft

为何锚定很重要

 

 

  • 未锚定 → 来自通用训练的回答
  • 已锚定 → 来自可信来源的回答
  • 防止自信编造的最大手段

未锚定的猜测 vs 来自您来源的锚定回答

使用 Microsoft Copilot Studio 构建 Agent

打开 Knowledge 选项卡

  • 打开您的智能体
  • 转到 Knowledge 选项卡

智能体的 Knowledge 选项卡,含 Add knowledge 按钮

使用 Microsoft Copilot Studio 构建 Agent

添加知识来源

 

 

  • Add knowledge → upload a file
  • 推荐使用 PDF 手册
  • 关闭 Web Search → 仅用该文件作为来源

 

Add knowledge 的 Upload file 区域,上方的 Web Search 开关为 Disabled

使用 Microsoft Copilot Studio 构建 Agent

等待处理完成

测试前等待索引完成

 

 

  • Studio 会读取并索引文档
  • 预计 5 到 10 分钟
  • 过早测试 → 会出现 "can't find it"
使用 Microsoft Copilot Studio 构建 Agent

将提示限定到来源

 

 

  • 仅添加来源还不够
  • 要求智能体只在其中查找
  • 用 "Using only the policy handbook..." 将其引导到该来源

 

限定范围的提示让智能体只在手册内回答

使用 Microsoft Copilot Studio 构建 Agent

进行测试

 

 

基于手册范围的问题与引用回答

 

 

  • 打开 Test 面板
  • 提问您的限定问题
  • 查看回复
使用 Microsoft Copilot Studio 构建 Agent

阅读锚定回答

 

 

  • 表述来自您的文档
  • 带有引用指向来源
  • 点击引用以核对

 

引用将回答链接回来源段落

使用 Microsoft Copilot Studio 构建 Agent

当来源中没有时

 

锚定的智能体会说明手册未提及,而非编造

 

 

  • 优秀的智能体 → 会说 "the handbook doesn't mention that"
  • 比编造数字更好
  • 说明您的锚定已生效
使用 Microsoft Copilot Studio 构建 Agent

让我们一起练习吧!

使用 Microsoft Copilot Studio 构建 Agent

Preparing Video For Download...