Migrate QnA Maker to Azure OpenAI on your data

QnA Maker was designed to be a cloud-based Natural Language Processing (NLP) service that allowed users to create a natural conversational layer over their data. This service is being retired, having been replaced by custom question answering. AI runtimes however, are evolving due to the development of Large Language Models (LLMs), such as GPT-35-Turbo and GPT-4 offered by Azure OpenAI, which can address many chat-based use cases. Use this article to learn how to migrate your existing QnA Maker projects to Azure OpenAI.

Prerequisites

Migrate to Azure OpenAI

  1. Log into the Azure portal and navigate to an existing QnA Maker project. Then select it to open the Overview section.

    A screenshot showing a QnA Maker project in the Azure portal.

  2. Verify that the QnA Maker project you've selected is the one you want to migrate, including its Azure subscription and resource group.

  3. Go to the associated resource group and filter the resources by search service to find the associated Cognitive Search service.

    A screenshot showing a QnA Maker project's search service in the Azure portal.

  4. Select the search service and open its Overview section. Note down the details, such as the Azure Search resource name, subscription, and location. You will need this information when you migrate to Azure OpenAI.

    A screenshot showing a QnA Maker project's search service details in the Azure portal.

  5. Navigate to the Search management > Indexes section on the left menu and note the index that you want to migrate to Azure OpenAI.

    A screenshot showing a search index name in the Azure portal.

  6. Go to Azure OpenAI Studio and select Bring your own data.

    A screenshot showing the Azure OpenAI studio.

    You can also select Chat playground and then select Add your data.

    A screenshot showing the chat playground in Azure OPenAI studio.

  7. In the pane that appears, select Azure Cognitive Search under Select or add data source. This will update the screen with Data field mapping options depending on your data source. Select the subscription, Azure AI Search service and Azure AI Search Index associated with your QnA maker project. Select the acknowledgment that connecting it will incur usage on your account. Then select Next.

    A screenshot showing the data source selections in Azure OpenAI Studio.

  8. On the Index data field mapping screen, select answer for Content data field. The other fields such as File name, Title and URL are optional depending on the nature of your data source.

    A screenshot showing index field mapping information for Azure AI Search in Azure OpenAI Studio.

  9. Select Next. Select a search type from the dropdown menu. You can choose Keyword or Semantic. semantic” search requires an existing semantic search configuration, which may or may not be available for your project.

    A screenshot showing the data management options for Azure AI Search indexes.

  10. Review the information you provided, and select Save and close.

    A screenshot showing the confirmation screen.

  11. Your data source has now been added. Select your model's deployment name under the Configuration > Deployment tab on the menu to the right.

    A screenshot of the playground page of the Azure OpenAI Studio with sections highlighted.

You can now start exploring Azure OpenAI capabilities with a no-code approach through the chat playground. It's simply a text box where you can submit a prompt to generate a completion. From this page, you can quickly iterate and experiment with the capabilities. You can also launch a web app to chat with the model over the web.

Next steps