azure-search-openai-demo-csharp
azure-search-openai-demo-csharp copied to clipboard
Delete existing documents
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.
Very good question. Still have the same problem...
@bwalker5 or @ahass or anyone... have you find the answer?
no not yet, still on add documents and find information in these..
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