Connect custom question answering with Azure OpenAI on your data

Custom question answering enables you to create a conversational layer on your data based on sophisticated Natural Language Processing (NLP) capabilities with enhanced relevance using a deep learning ranker, precise answers, and end-to-end region support. Most use cases for custom question answering rely on finding appropriate answers for inputs by integrating it with chat bots, social media applications and speech-enabled desktop applications.

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 can address many chat-based use cases, which you may want to integrate with.

At the same time, customers often require a custom answer authoring experience to achieve more granular control over the quality and content of question-answer pairs, and allow them to address content issues in production. Read this article to learn how to integrate Azure OpenAI On Your Data (Preview) with question-answer pairs from your custom question answering project, using your project's underlying Azure AI Search indexes.

Prerequisites

Connect Azure OpenAI on your data and custom question answering

  1. Sign in to Language Studio and navigate to your custom question answering project with an existing deployment.

    A screenshot showing a custom question answering deployment.

  2. Select the Azure Search tab on the navigation menu to the left.

  3. Make a note of your Azure Search details, such as Azure Search resource name, subscription, and location. You will need this information when you connect your Azure AI Search index to Azure OpenAI.

    A screenshot showing the Azure search section for a custom question answering project.

  4. Navigate to Azure OpenAI Studio and sign-in with credentials that have access to your Azure OpenAI resource.

  5. Select the Bring your own data tile to start connecting your search index. You can also select the Chat playground tile.

    A screenshot of the Azure OpenAI Studio landing page.

    And on the Assistant setup tile, select Add your data (preview) > + Add a data source.

    A screenshot showing the button for adding your data in Azure OpenAI Studio.

  6. In the pane that appears, select Azure AI Search under Select or add data source. This will update the screen with Data field mapping options depending on your data source.

    A screenshot showing data selection options in Azure OpenAI Studio.

  7. Select the subscription, Azure AI Search service and Azure AI Search Index associated with your custom question Answering project. Select the acknowledgment that connecting it will incur usage on your account. Then select Next.

    A screenshot showing selection information for Azure AI Search 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