Skip to main content
All CollectionsAPIs & Integrations
Adding your data source in Azure
Adding your data source in Azure

This is part 3 of 4 for setting up your data source in Azure, that the OpenAI message part will pull from in The Bot Platform

Melita Gandham avatar
Written by Melita Gandham
Updated over 5 months ago

Once you have set up your resource, storage account and search service in Azure, it's time to add your data source. This data source will contain all the information that your bot will pull from via the OpenAI message part.

Add your data source

1) Go back to Resource Groups and select the same Resource Group as last time: https://portal.azure.com/#view/HubsExtension/BrowseResourceGroups

2) Click your OpenAI resource:

3) Click "Go to Azure OpenAI studio" and click "Chat" in the side-menu:

4) Click "Add your data (preview)".

5) Click "Add a data source".

6) Select "Upload files" as the data source.

7) Select Azure storage service resource you created earlier.

8) Click "Turn on CORS".

9) Select the Azure AI search resource you created earlier.

10) Select an index name.

11) Tick to acknowledge the cost implications.

12) Hit "Next":

13) Upload your files, then hit "Next".

14) Select "Keyword" as the search type, hit "Save and Close" and wait for ingestion to complete.

15) Chat to your bot on the right hand panel “Chat Session”.

16) Click "View code" to see how to integrate/get config options.

Testing your data

Before connecting up the OpenAI message part to your bot, you can test how your data will be pulled through via your prompts in the Chat Playground in Azure. Steps on how to do this are outlined below:

1) Go to Resource Groups and select the resource group: https://portal.azure.com/#view/HubsExtension/BrowseResourceGroups. Click your OpenAI resource.

2) Click "Go to Azure OpenAI studio":

3) Click "Chat" in the side-menu:

4) Click "Add your data (preview)":

5) Click "Add a data source".

6) Select "Azure AI search" from the dropdown:

7) Select your search service and index.

8) Click "Acknowledge usage" and "Next".

9) Hit "Next".

10) Select "Keyword" as search type.

11) Hit "Next" then "Save and Close".

12) Chat on the right hand panel:

Once you're happy that your OpenAI setup is working as expected, you can add more data sources to your environment, or go onto set up the OpenAI message part in the TBP CMS.

Did this answer your question?