azure-search-openai-demo
azure-search-openai-demo copied to clipboard
How to trigger indexing of a user-uploaded file without running prepdocs
I need to upload files to blob storage from a server using Rest API, and I need the files to be added to the search index. Any way to trigger the script from an external server? Thanks
By user upload, do you actually mean a user of your app uploading? In that case, the per-file upload is already supported. Can you describe more what you mean?
Sure, I have a server that already stores documents, and I want to be able to use this demo to search over these documents. I am able to upload documents from my server to Azure Blob Storage using Rest API: https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob?tabs=microsoft-entra-id
I need a way to trigger the indexing of the newly uploaded documents, either automatically when a new one appears in storage, or by somehow triggering the prepdocs script through a Rest API.
Hope this is clearer :)
Hi, any update on this? Trying to figure out how to index a new document. Thanks.
Sure, I have a server that already stores documents, and I want to be able to use this demo to search over these documents. I am able to upload documents from my server to Azure Blob Storage using Rest API: https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob?tabs=microsoft-entra-id
I need a way to trigger the indexing of the newly uploaded documents, either automatically when a new one appears in storage, or by somehow triggering the prepdocs script through a Rest API.
Hope this is clearer :)
I needed to do something similar, so I created an indexer (data source to my Azure Blob) and created a new index, then changed the default index name from "value": "${AZURE_SEARCH_INDEX=azureblob-index}" to "value": "${AZURE_SEARCH_INDEX=mynewindex}" in main.parameters.json