To perform deletion of index data from vector db for documents removed from prompt-studio.
Why
The index data on vector db was not removed for deleted documents from prompt-studio projects.
How
Utilizing Django post_delete signal so that the function will be executed every time an instance of IndexManager is deleted from the database. Uses ref_doc_id to remove from vector db.
Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
This removes indexed data from vectorDB for documents removed from project using document_id.
Notes on Testing
Uploaded, indexed and removed documents to check if the id and history is removed from vectorDB side, results verified.
Screenshots
Checklist
I have read and understood the [Contribution Guidelines]().
What
Why
How
post_delete
signal so that the function will be executed every time an instance ofIndexManager
is deleted from the database. Usesref_doc_id
to remove from vector db.Can this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
document_id
.Notes on Testing
Screenshots
Checklist
I have read and understood the [Contribution Guidelines]().