azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

How to trigger indexing of a user-uploaded file without running prepdocs

Open syonip opened this issue 7 months ago • 4 comments
trafficstars

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

syonip avatar Mar 26 '25 07:03 syonip

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?

pamelafox avatar Mar 27 '25 04:03 pamelafox

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 :)

syonip avatar Mar 27 '25 07:03 syonip

Hi, any update on this? Trying to figure out how to index a new document. Thanks.

syonip avatar Apr 09 '25 04:04 syonip

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

PatrickGallucci avatar May 01 '25 00:05 PatrickGallucci