教程 3:将 CKE 添加到 Snowflake Intelligence¶
分步说明¶
可轻松为 Snowflake Intelligence 添加 Cortex Knowledge Extension。您的账户中有了 CKE 之后,您可以通过在 Snowsight 中将 CKE 添加到代理来将其添加到 Snowflake Intelligence。
重要
在开始之前,请确保 Snowflake Intelligence 可以访问 CKE:
-- Grant Snowflake Intelligence the right access to the CKE so it can be added as an agent
grant imported privileges on database <CKE_DATABASE_NAME> to role <SNOWFLAKE_INTELLIGENCE_ROLE>;
登录 Snowsight。
导航到 AI & ML 区域并选择 Agents。
在 Agents 屏幕中,选择 Create Agent 并为代理命名。
在 Knowledge 下方,点击 + Search service。
选择具有 CKE 的数据库,然后选择 CKE 的“Search Service”。
为 CKE 提供一个显示名称。
指明 CKE 中引用基础内容 URL 的列。这有助于为用户提供更多背景信息,并让他们有机会深入了解归因。
点击 Create。
导航到左侧的 Snowflake Intelligence。
选择文本框下方的下拉列表,以选择 CKE 与之关联的新代理。
向所选代理提问,并通过 CKE 查看引用的答案以及指向来源内容的链接。