Skip to main content
All CollectionsAPIs & Integrations
Adding more or removing data sources to Azure
Adding more or removing data sources to Azure

This is part 4 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 a week ago

Adding more than one data source will require some extra set up. You will need to make use of the indexers within your search service. The steps for this are outlined below.

Adding more documents to an index

1) Under storage accounts, find the storage account for your bot.

2) Click storage browser on the left.

3) Click blob containers.

4) Click the container for your files, e.g. fileupload-infosec.

5) Add your files and click Upload.

6) Go to Azure AI services → AI Search →<your AI search index> → Indexers.

7) Click your indexer.

8) Click Run, and confirm, wait a moment and refresh.

NOTE: will only show you the number of new documents it’s indexed in the result.

9) Add a data source in AI search pointing to the storage account/container. In our example, our AI search is called "infosec".

10) Add an indexer pointing at the storage account and index:

Configure your schedule, indexed extensions (i.e. the file types that contain your data sources) and your PDF Text rotation algorithm.

11) Hit save, then hit Indexer Definition (JSON).

12) Edit the fieldMappings as outlined below:

You should replace the section highlighted above with the section highlighted below. A draft on this input can be found below the screenshot.

"fieldMappings": [ { "sourceFieldName": "metadata_storage_path", "targetFieldName": "id", "mappingFunction": { "name": "base64Encode", "parameters": null } }, { "sourceFieldName": "metadata_storage_path", "targetFieldName": "url", "mappingFunction": null }, { "sourceFieldName": "metadata_storage_name", "targetFieldName": "title", "mappingFunction": null }, { "sourceFieldName": "metadata_storage_last_modified", "targetFieldName": "last_updated", "mappingFunction": null } ],

Deleting assets and resources

Assuming everything is deployed in the same resource group, you can simply delete the resource group to remove your data sources. Otherwise delete the storage service, Azure AI search and OpenAI resources created, then any resource groups created for this deployment.

⚠️ Before deleting any resource groups, please double check that the ones selected aren't being used for any other resources, or else that data will be lost. Please make sure that you are only deleting the necessary data from your resource group.

Did this answer your question?