使用 QnA Maker 入口網站新增問題和答案

注意

Azure Open AI On Your Data 會利用大型語言模型 (LLM) 來產生與 QnA Maker 類似的結果。 如果您想要將 QnA Maker 專案移轉至 Azure Open AI On Your Data,請參閱我們的 指南

建立 知識庫 之後,請新增具有元數據的問答組,以篩選答案。 下表中的問題與 Azure 服務限制有關,但每個問題都與不同的 Azure 搜尋服務有關。

注意

QnA Maker 服務即將於 2025 年 3 月 31 日淘汰。 較新版的問題和解答功能現在隨附於 Azure AI 語言。 如需瞭解語言服務內的問題解答功能,請參閱問題解答。 從 2022 年 10 月 1 日開始,您將無法建立新的 QnA Maker 資源。 如需將現有 QnA Maker 知識庫移轉至問題解答的相關資訊,請參閱移轉指南

配對 問題 解答 中繼資料
#1 How large a knowledge base can I create?

What is the max size of a knowledge base?

How many GB of data can a knowledge base hold?
The size of the knowledge base depends on the SKU of Azure search you choose when creating the QnA Maker service. Read [here](../concepts/azure-resources.md) for more details. service=qna_maker
link_in_answer=true
#2 How many knowledge bases can I have for my QnA Maker service?

I selected an Azure Cognitive Search tier that holds 15 knowledge bases, but I can only create 14 - what is going on?

What is the connection between the number of knowledge bases in my QnA Maker service and the Azure Cognitive Search service size?
Each knowledge base uses 1 index, and all the knowledge bases share a test index. You can have N-1 knowledge bases where N is the number of indexes your Azure Cognitive Search tier supports. service=search
link_in_answer=false

一旦元數據新增至 QnA 配對,用戶端應用程式就可以:

  • 要求只符合特定元數據的解答。
  • 根據每個答案的元數據,接收所有答案,但後續處理答案。

必要條件

登入 QnA Maker 入口網站

  1. 登入 QnA Maker 入口網站

  2. 從上一個快速入門中選取現有的 知識庫。

新增其他片語問題

目前的 知識庫 具有 QnA Maker 疑難解答 QnA 配對。 這些配對是在建立程序期間將URL新增至 知識庫 時建立的。

匯入此 URL 時,只會建立一個有一個答案的問題。 在此程式中,新增其他問題。

  1. 從 [ 編輯 ] 頁面,使用問答組上方的搜尋文字框來尋找問題 How large a knowledge base can I create?

  2. 在 [問題] 數據行中,選取 [+ 新增替代片語],然後新增下表中提供的每個新片語。

    替代片語
    What is the max size of a knowledge base?
    How many GB of data can a knowledge base hold?
  3. 選取 [儲存並訓練] 以重新定型 知識庫。

  4. 選取 [ 測試],然後輸入接近其中一個新替代片語的問題,但並非完全相同的措辭:

    What GB size can a knowledge base be?

    正確答案會以 Markdown 格式傳回:

    The size of the knowledge base depends on the SKU of Azure search you choose when creating the QnA Maker service. Read [here](../concepts/azure-resources.md) for more details.

    如果您在傳回的答案下選取 [ 檢查 ],您可以看到更多答案符合問題,但無法以相同的高度信賴度。

    請勿新增替代片語的每個可能組合。 當您開啟 QnA Maker 的作用中學習時,這會找到最能協助您 知識庫 符合使用者需求的替代片語。

  5. 再次選取 [ 測試 ] 以關閉測試視窗。

新增元數據以篩選答案

將元數據新增至問答組,可讓您的用戶端應用程式要求篩選的答案。 套用第一個和第二個排名器之前,會套用此篩選。

  1. 本快速入門的第一個數據表新增第二個問答組,但不含元數據,然後繼續進行下列步驟。

  2. 選取 [ 檢視選項],然後選取 [ 顯示元數據]。

  3. 針對您剛才新增的 QnA 配對,選取 [新增元數據標籤],然後新增 的名稱 service 和 的值 search。 看起來像這樣: service:search

  4. 新增另一個具有 名稱和 link_in_answer 值的 false元數據標記。 看起來像這樣: link_in_answer:false

  5. 在資料表中搜尋第一個答案。 How large a knowledge base can I create?

  6. 為相同的兩個元數據標記新增元數據組:

    link_in_answer : true
    service: qna_maker

    您現在有兩個問題,其中具有相同的元數據標記具有不同的值。

  7. 選取 [儲存並訓練] 以重新定型 知識庫。

  8. 選取 頂端選單中的 [發佈 ] 以移至 [發佈] 頁面。

  9. 選取 [發佈] 按鈕,將目前的 知識庫 發佈至端點。

  10. 發佈 知識庫 之後,請繼續進行下一個快速入門,以瞭解如何從您的 知識庫 產生答案。

您完成了什麼?

您編輯了您的 知識庫,以支援更多問題,並提供的名稱/值組,以支援在傳回答案或答案之後搜尋前幾個答案或後置處理期間的篩選。

清除資源

如果您未繼續進行下一個快速入門,請刪除 Azure 入口網站 中的 QnA Maker 和 Bot 架構資源。

下一步