How to delete files uploaded for the AI Persona

I was looking for a way to actually delete files that are uploaded to discourse for the AI Persona, but I didn’t see a way for it to be done.

I did find some code where the work appears to be started here: discourse-ai/config/routes.rb at 8b81ff45b8dadfdd489cf0f8a86621080dee2af3 · discourse/discourse-ai · GitHub but it doesn’t seem to be implemented at this time.

Are there plans to be able to manage the files that are uploaded to discourse? I did notice that I can remove the file from the Persona by using the PUT method, but the file is still actually stored in the database with no way to remove it as far as I can tell.

5 Likes

I’m curious about this as well. This seems to be quite a limitation in regard to making a rag persona. Bit I imagine that playing with the vector database is gonna make things real tricky

I’m wondering if there are any updates on this matter? :thinking:

This has been implemented for quite a while:

The file itself will be send to the tombstone and eventually removed once retention period passed.

I guess the feature request here is for “immediate purge” on remove?

Moving this to feature.

2 Likes

That’s splendid! :heart_eyes: But yes, I know that we for example have many edge cases where it would be best to just wipe the embeddings immediately just for security reasons.

Am I correct in thinking that this retention period is the same as this in Understanding Uploads, Images, and Attachments ?

1 Like

Yes this is correct.

1 Like

The embeddings are wiped right away, the upload is the only thing that is left. Not against wiping it early, but it is an edge case for sure.

Ah okay I see now. Thank you very much for this information :grinning:. We will be having a high number of personalized RAG chatbots, and there may be times when they have to suddenly be removed. Certainly our use case is a niche edge case in and of itself anyway :stuck_out_tongue_winking_eye:

2 Likes