共用方式為


開始使用 Knowledge Agent (預覽)

注意事項

本文適用於 SharePoint 中知識代理程式的預覽版。

Microsoft 365 Government - GCC、GCC High、DoD 或 Office 365 氣隙雲端環境目前不支援知識代理程式。

知識代理程式是一項內建的 SharePoint 功能,旨在協助您的組織準備 AI 內容。 它以結構化、權威格式豐富、組織和維護 SharePoint 內容,並針對 Microsoft 365 Copilot 代理程式進行最佳化。

對於符合條件的租戶,SharePoint 介面的右下角會出現一個新的代理按鈕,讓符合條件的使用者可以存取進階 AI 功能。 其中包括自動內容豐富、元數據優化和智能頁面摘要。

必要條件

網站存取的角色定義

  • 網站擁有者:具有完整網站擁有者權限的使用者。
  • 內容管理員:具有讀取、寫入和清單權限的使用者。
  • 內容建立者:具有網站內容讀取和寫入許可權或至少具有網站成員群組存取權的使用者。
  • 內容取用者:至少具有網站內容讀取許可權或至少具有網站訪客群組存取權的任何使用者。

啟用知識代理程式

針對預覽版,您可以使用 PowerShell 來設定可用性。 您可以使用 KnowledgeAgent 中的 Set-SPOTenant 參數來啟用所有網站的 Knowledge Agent、選擇性地包含網站或選擇性地排除網站。

對於多地理位置租用戶,必須在每個地理位置中執行 PowerShell 指令碼,才能在該區域中啟用知識代理程式。

啟用程式將會變更為正式發行。

使用 SharePoint Online 管理命令介面 16.0.26615.12013 版或更新版本來管理具有 Copilot 授權的使用者對知識代理程式預覽的存取權。 如需設定指示,請參閱開始使用 SharePoint Online 管理命令介面

如果您已安裝 SharePoint Online 管理命令介面,請確定您以系統管理模式執行下列命令來執行最新版本:Update-Module -Name Microsoft.Online.SharePoint.PowerShell

解決版本設定錯誤

如果您收到下列錯誤,可能表示您安裝了多個或衝突版本的 SharePoint Online 管理命令介面:

Set-SPOTenant : A parameter cannot be found that matches parameter name 'KnowledgeAgentScope'

若要解決此問題,請執行下列步驟:

  1. 開啟 [ 新增或移除程式],然後搜尋 [SharePoint],以移除衝突的 SharePoint 模組。 解除安裝您找到的任何 SharePoint 系統管理模組。

  2. 執行下列命令來檢查已安裝的模組:

    Get-Module -Name *SharePoint* -ListAvailable

    如果列出多個版本,請使用下列方法將其移除:

    Uninstall-Module -Name <ModuleName>

  3. 手動刪除剩餘的模組。 如果您在卸載過程中遇到異常,請使用以下命令找到模組路徑:

    (Get-Module -Name *SharePoint* -ListAvailable).Path

    導覽至父資料夾並手動刪除它。

  4. 重新啟動 PowerShell。 關閉終端機並重新開啟以清除記憶體中載入的任何模組。

  5. 重複清理。 重複步驟 2 和 3,直到沒有 SharePoint Online PowerShell 模組為止。

  6. 若要安裝最新的 SharePoint Online PowerShell 模組,請執行:

    Install-Module -Name Microsoft.Online.SharePoint.PowerShell

    注意事項

    若要驗證已安裝的版本,請使用下列命令:

    (Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable).Version

    如果出現多個版本,請重複先前的清理步驟。

知識代理範圍

  • 描述:允許管理員控制知識代理程式功能在哪些 SharePoint 網站上可用。

  • 有效值

    • AllSites:Knowledge Agent 可在所有網站上使用。

    • IncludeSelectedSites:Knowledge Agent 僅適用於 KnowledgeAgentSelectedSitesList 中指定的網站

    • ExcludeSelectedSites:Knowledge Agent 可在所有站台上使用,但 KnowledgeAgentSelectedSitesList 中指定的站台除外。

    • NoSites:Knowledge Agent 在任何網站上都無法使用。 (這是預設值 )

  • 附註: 需要 Microsoft 365 Copilot 授權。

KnowledgeAgentSelectedSites清單

  • 描述:允許系統管理員傳遞 SharePoint 網站 URL 清單,以包含在或排除在知識代理程式功能中。

  • 當 KnowledgeAgentScope = ExcludeSelectedSites 時:清單會被視為要 排除 (網站選擇退出清單) 的網站。

    • 當 KnowledgeAgentScope = IncludeSelectedSites 時:清單會被視為要 包含 (網站選擇加入清單) 的網站。
  • 依預設,這會以提供的清單覆寫任何現有清單。

  • 只有在設定為 IncludeSelectedSitesExcludeSelectedSitesKnowledgeAgentScope,才能呼叫此參數。

  • 網站 URL 清單不能超過 100 個項目。

  • 附註: 需要 Microsoft 365 Copilot 授權。

KnowledgeAgentSelectedSitesList作業

  • 描述:指定要對 Knowledge Agent 功能的目前網站清單執行的作業。

  • 有效值

    • Overwrite:以預設) 覆寫現有網站清單 (。

    • Append:將網站的輸入清單附加至現有網站清單。

    • Remove:從現有網站清單中移除網站的輸入清單。

  • 注意:呼叫此參數沒有 KnowledgeAgentSelectedSitesList 效果。

使用範例

在所有網站上啟用 Knowledge Agent

# Connect to SharePoint Online admin center
Connect-SPOService https://yourtenant-admin.sharepoint.com

# Enable Knowledge Agent for all sites in the tenant
Set-SPOTenant -KnowledgeAgentScope AllSites

# Verify the configuration
Get-SPOTenant | Select-Object KnowledgeAgentScope

在指定的網站上啟用 Knowledge Agent

# Connect to SharePoint Online admin center 
Connect-SPOService https://yourtenant-admin.sharepoint.com 

# Set Knowledge Agent to be available only on the included sites 
Set-SPOTenant -KnowledgeAgentScope IncludeSelectedSites 

# Specify sites to enable Knowledge Agent (initial inclusion list) 
Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/site5", "https://yourtenant.sharepoint.com/sites/site7") 

# Add additional sites to the existing inclusion list (if needed) 
Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/site3") -KnowledgeAgentSelectedSitesListOperation Append 

# Verify the inclusion configuration 
Get-SPOTenant | Select-Object KnowledgeAgentScope, KnowledgeAgentSelectedSitesList 

在指定網站以外的所有網站上啟用 Knowledge Agent

# Connect to SharePoint Online admin center
Connect-SPOService https://yourtenant-admin.sharepoint.com

# Set Knowledge Agent to be available on all sites except selected sites
Set-SPOTenant -KnowledgeAgentScope ExcludeSelectedSites

# Specify sites to exclude from Knowledge Agent (initial exclusion list)
Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/site1", "https://yourtenant.sharepoint.com/sites/site2")

# Add additional sites to the existing exclusion list (if needed)
Set-SPOTenant -KnowledgeAgentSelectedSitesList @("https://yourtenant.sharepoint.com/sites/site3") -KnowledgeAgentSelectedSitesListOperation Append

# Verify the exclusion configuration
Get-SPOTenant | Select-Object KnowledgeAgentScope, KnowledgeAgentSelectedSitesList

停用知識代理程式

# Connect to SharePoint Online admin center
Connect-SPOService https://yourtenant-admin.sharepoint.com

# Disable Knowledge Agent for all sites in the tenant
Set-SPOTenant -KnowledgeAgentScope NoSites

# Verify Knowledge Agent is disabled
Get-SPOTenant | Select-Object KnowledgeAgentScope