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

Delete existing documents

Open bwalker5 opened this issue 1 year ago • 4 comments

What's the recommended method for deleting existing sample documents and indexing new ones? I deleted files out of the blob container which removed them from the app since there doesn't appear to be a delete option. Then I uploaded new files, deleted the existing index and re-created the index. This indexed the new files, but when I try to open the PDF linked citations in the chat, I get errors that the blob resource isn't found even though the PDF files were chunked and searchable in the chat.

bwalker5 avatar Apr 22 '24 13:04 bwalker5

Very good question. Still have the same problem...

ahass avatar Jun 20 '24 13:06 ahass

@bwalker5 or @ahass or anyone... have you find the answer?

Csepi avatar Jul 08 '24 09:07 Csepi

no not yet, still on add documents and find information in these..

ahass avatar Jul 09 '24 10:07 ahass

Hi

You can use the 'PrepareDocs' console app to delete existing files. The function [ProcessSingleFileAsync] include the logic to delete the file from the blob and also from the Azure Index

Sample: https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/main/app/prepdocs/PrepareDocs/Program.cs#L43

We will add a sample step-by-step paragraph on how to do this.

Best

elbruno avatar Sep 16 '24 15:09 elbruno