Hello,
To connect SharePoint with Azure OpenAI for automatic document processing, you would need to create a bridge between SharePoint and Azure. Unfortunately, the Azure OpenAI demo repository does not provide direct support for SharePoint integration. However, you can achieve this by using SharePoint's APIs to fetch the documents and then process them using Azure OpenAI.
Here are the general steps you might follow:
SharePoint provides REST APIs that can be used to fetch documents from a SharePoint library. You can use these APIs to fetch the documents from your SharePoint site.
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest
You could also use Azure Data Factory in order to copy the files to the blob storage.
Once you have the documents, you can then use Azure OpenAI to process them. The Azure OpenAI demo repository provides a good starting point for this.
https://github.com/Azure-Samples/azure-search-openai-demo
After processing the documents, you can then store the resulting embeddings and vector indexes in Azure AI Search.
Hope this helps
Regards
If you found this answer useful, please consider marking it as 'Accepted.' This helps other users easily find and benefit from this information