Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete existing documents #314

Open
bwalker5 opened this issue Apr 22, 2024 · 4 comments
Open

Delete existing documents #314

bwalker5 opened this issue Apr 22, 2024 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@bwalker5
Copy link

bwalker5 commented Apr 22, 2024

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 bwalker5 changed the title Delete documents and re-index Delete existing documents Apr 22, 2024
@ahass
Copy link

ahass commented Jun 20, 2024

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

@Csepi
Copy link

Csepi commented Jul 8, 2024

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

@ahass
Copy link

ahass commented Jul 9, 2024

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

@elbruno
Copy link
Collaborator

elbruno commented Sep 16, 2024

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 elbruno self-assigned this Sep 16, 2024
@elbruno elbruno added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 16, 2024
@elbruno elbruno added this to the 2024-September milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants