Add "Delete" button for users to be able to delete files in copilot-chat-app sample #89
Add "Delete" button for users to be able to delete files in copilot-chat-app sample #89kenzabenjelloun wants to merge 12 commits intomicrosoft:mainfrom
Conversation
Removing empty file
|
@teresaqhoang @TaoChenOSU I think you may be working on something similar already? |
f7bfeb9 to
c7d252c
Compare
|
Hello @kenzabenjelloun, Thank you for your PR! This is a very nice feature to add, and we are happy that you are considering it. Document handling is an essential part of the chat copilot app. Each imported document will generate data in 3 places:
To completely remove a document, we need to remove the date generated in all these 3 places. This PR only removes the memory sources. We encourage you to add implementation to complete the deletion of documents. P.s. To delete a resource, you should use the delete request: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE. |
crickman
left a comment
There was a problem hiding this comment.
Is the document still present in vector database (Document Memory)?
|
Hi @kenzabenjelloun - This is a great start! I've added some additional suggestions on top of what my colleagues said earlier. Are you still interested in pursuing this PR? I just want to check since I haven't seen any updates from you in a couple weeks.
|
|
Hi @gitri-ms ! Yes, I would still like to work on it. Can I just get some pointers on when the embeddings are generated in the code ? I'm having a bit of trouble figuring it out (I thought it would be directly after the document is imported but I don't see it in DocumentImportController?) |
|
Hi @kenzabenjelloun - thank you again for this contribution. However, given the large refactor coming with #152, we are unable to accept this change at this time. For that reason, I am going to close this PR for now. We may be interested in revisiting it with you once the semantic memory refactor code comes in. However, I do want to note that while we welcome community contributions, we have limited engineering resources to assist with implementation of features that aren't in our project roadmap. Going forward, for new features like this, we would appreciate if you would first open an issue with us to discuss the feature you want to bring in and its design/prioritization. Alternatively, you are always welcome to maintain a fork of Chat Copilot and build on it there! I also encourage you to join our Discord community to engage with other developers building on SK and Chat Copilot, as they might have ideas on how to go about implementing new features like this. |
…-chat-extension-as-dependency Reference azure open ai chat extension as dependency
Hello !
I was trying to add a "delete" button in the copilot-chat-app sample to be able to delete files, it seems to work but I don't know if I'm doing it right. I am still a beginner in building webapps, so I was wondering if I could get some help here. (I don't know if a pull request is the best way to do it ? but I thought it might be a nice feature to add to the sample). I made a couple of changes in DocumentsTab and useFile and added DocumentDeleteService and DocumentDeleteController, if someone can help me pinpoint where I might be doing something wrong, I would be really grateful.
Thank you !